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

Unified Diff: chrome/browser/extensions/location_bar_controller.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/location_bar_controller.h
diff --git a/chrome/browser/extensions/location_bar_controller.h b/chrome/browser/extensions/location_bar_controller.h
index 7d5ca29c40c9b3ee987b88f7b1ea37a15f8b1ed1..4814b21ea49366268f124bb8ec52f47ddb4b65ea 100644
--- a/chrome/browser/extensions/location_bar_controller.h
+++ b/chrome/browser/extensions/location_bar_controller.h
@@ -31,6 +31,10 @@ class LocationBarController {
// Gets the action data for all extensions.
virtual std::vector<ExtensionAction*> GetCurrentActions() const = 0;
+ // Invites the user to click on |extension_id|'s script badge, due to a
+ // scriptBadge.getAttention() call.
+ virtual void GetAttentionFor(const std::string& extension_id) = 0;
+
// Notifies this that the badge for an extension has been clicked with some
// mouse button (1 for left, 2 for middle, and 3 for right click), and
// returns the action that should be taken in response (if any).

Powered by Google App Engine
This is Rietveld 408576698