tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

nsGNOMEShellDBusHelper.h (1457B)


      1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
      2 /* vim:expandtab:shiftwidth=2:tabstop=2:
      3 */
      4 /* This Source Code Form is subject to the terms of the Mozilla Public
      5 * License, v. 2.0. If a copy of the MPL was not distributed with this
      6 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
      7 
      8 #ifndef __nsGNOMEShellDBusHelper_h__
      9 #define __nsGNOMEShellDBusHelper_h__
     10 
     11 #include <gio/gio.h>
     12 #include "nsINavHistoryService.h"
     13 
     14 #define MAX_SEARCH_RESULTS_NUM 9
     15 #define KEYWORD_SEARCH_STRING "special:search"
     16 #define KEYWORD_SEARCH_STRING_LEN 14
     17 
     18 class nsGNOMEShellHistorySearchResult;
     19 
     20 void DBusHandleResultSet(RefPtr<nsGNOMEShellHistorySearchResult> aSearchResult,
     21                         GVariant* aParameters, bool aInitialSearch,
     22                         GDBusMethodInvocation* aReply);
     23 void DBusHandleResultMetas(
     24    RefPtr<nsGNOMEShellHistorySearchResult> aSearchResult,
     25    GVariant* aParameters, GDBusMethodInvocation* aReply);
     26 void DBusActivateResult(RefPtr<nsGNOMEShellHistorySearchResult> aSearchResult,
     27                        GVariant* aParameters, GDBusMethodInvocation* aReply);
     28 void DBusLaunchSearch(RefPtr<nsGNOMEShellHistorySearchResult> aSearchResult,
     29                      GVariant* aParameters, GDBusMethodInvocation* aReply);
     30 bool IsHistoryResultNodeURI(nsINavHistoryResultNode* aHistoryNode);
     31 
     32 const char* GetDBusBusName();
     33 const char* GetDBusObjectPath();
     34 
     35 #endif  // __nsGNOMEShellDBusHelper_h__