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

Unified Diff: chrome/browser/extensions/api/extension_action/extension_actions_api.h

Issue 10695070: Implement scriptBadge.requestToAct. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix more of Aaron's comments. Created 8 years, 5 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/extension_action/extension_actions_api.h
diff --git a/chrome/browser/extensions/api/extension_action/extension_actions_api.h b/chrome/browser/extensions/api/extension_action/extension_actions_api.h
index 5ab8043412919f25377ee8bbb310e428678250ac..fe13cd3f1094ae468cbd3c1263f09b737dc200b7 100644
--- a/chrome/browser/extensions/api/extension_action/extension_actions_api.h
+++ b/chrome/browser/extensions/api/extension_action/extension_actions_api.h
@@ -11,6 +11,7 @@
namespace base {
class DictionaryValue;
}
+class ExtensionTabHelper;
class TabContents;
// Implementation of the browserAction, pageAction, and scriptBadge APIs.
@@ -34,6 +35,10 @@ class ExtensionActionFunction : public SyncExtensionFunction {
void NotifyLocationBarChange();
bool SetVisible(bool visible);
+ // Extension-related information for |tab_id_|.
+ // CHECK-fails if there is no tab.
+ ExtensionTabHelper& tab_helper() const;
+
// All the extension action APIs take a single argument called details that
// is a dictionary.
base::DictionaryValue* details_;

Powered by Google App Engine
This is Rietveld 408576698