Backed out 2 changesets (bug 1830022) for causing multiple failures. CLOSED TREE
[gecko.git] / browser / components / shell / nsGNOMEShellDBusHelper.h
blobac879ef992986130d20584570858389bfa176193
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/. */
8 #ifndef __nsGNOMEShellDBusHelper_h__
9 #define __nsGNOMEShellDBusHelper_h__
11 #include <gio/gio.h>
12 #include "nsINavHistoryService.h"
14 #define MAX_SEARCH_RESULTS_NUM 9
15 #define KEYWORD_SEARCH_STRING "special:search"
16 #define KEYWORD_SEARCH_STRING_LEN 14
18 class nsGNOMEShellHistorySearchResult;
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);
32 const char* GetDBusBusName();
33 const char* GetDBusObjectPath();
35 #endif // __nsGNOMEShellDBusHelper_h__