Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(33)

Unified Diff: chrome/browser/extensions/api/omnibox/omnibox_api.h

Issue 10535155: Hook the activeTab permission up to the omnibox, page action, and context menu APIs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: compile Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/api/omnibox/omnibox_api.h
diff --git a/chrome/browser/extensions/api/omnibox/omnibox_api.h b/chrome/browser/extensions/api/omnibox/omnibox_api.h
index bb731f340170be991e85084941c0f739de828e7e..c171272991c83edefa589970d47ffd6258be3f8d 100644
--- a/chrome/browser/extensions/api/omnibox/omnibox_api.h
+++ b/chrome/browser/extensions/api/omnibox/omnibox_api.h
@@ -14,6 +14,7 @@
#include "chrome/browser/autocomplete/autocomplete_match.h"
#include "chrome/browser/extensions/extension_function.h"
+class TabContents;
class TemplateURL;
namespace base {
class ListValue;
@@ -33,12 +34,14 @@ class ExtensionOmniboxEventRouter {
// keyword session. Returns true if someone is listening to this event, and
// thus we have some degree of confidence we'll get a response.
static bool OnInputChanged(
- Profile* profile, const std::string& extension_id,
+ Profile* profile,
+ const std::string& extension_id,
const std::string& input, int suggest_id);
// The user has accepted the omnibox input.
static void OnInputEntered(
- Profile* profile, const std::string& extension_id,
+ TabContents* tab_contents,
+ const std::string& extension_id,
const std::string& input);
// The user has cleared the keyword, or closed the omnibox popup. This is
« no previous file with comments | « chrome/browser/extensions/active_tab_permission_manager.cc ('k') | chrome/browser/extensions/api/omnibox/omnibox_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698