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

Side by Side 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: Sync 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_EXTENSIONS_LOCATION_BAR_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_LOCATION_BAR_CONTROLLER_H_
6 #define CHROME_BROWSER_EXTENSIONS_LOCATION_BAR_CONTROLLER_H_ 6 #define CHROME_BROWSER_EXTENSIONS_LOCATION_BAR_CONTROLLER_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 13 matching lines...) Expand all
24 ACTION_SHOW_POPUP, 24 ACTION_SHOW_POPUP,
25 ACTION_SHOW_CONTEXT_MENU, 25 ACTION_SHOW_CONTEXT_MENU,
26 ACTION_SHOW_SCRIPT_POPUP, 26 ACTION_SHOW_SCRIPT_POPUP,
27 }; 27 };
28 28
29 virtual ~LocationBarController() {} 29 virtual ~LocationBarController() {}
30 30
31 // Gets the action data for all extensions. 31 // Gets the action data for all extensions.
32 virtual std::vector<ExtensionAction*> GetCurrentActions() const = 0; 32 virtual std::vector<ExtensionAction*> GetCurrentActions() const = 0;
33 33
34 // Invites the user to click on |extension_id|'s script badge, due to a
35 // scriptBadge.getAttention() call.
36 virtual void GetAttentionFor(const std::string& extension_id) = 0;
37
34 // Notifies this that the badge for an extension has been clicked with some 38 // Notifies this that the badge for an extension has been clicked with some
35 // mouse button (1 for left, 2 for middle, and 3 for right click), and 39 // mouse button (1 for left, 2 for middle, and 3 for right click), and
36 // returns the action that should be taken in response (if any). 40 // returns the action that should be taken in response (if any).
37 // TODO(kalman): make mouse_button an enum. 41 // TODO(kalman): make mouse_button an enum.
38 virtual Action OnClicked(const std::string& extension_id, 42 virtual Action OnClicked(const std::string& extension_id,
39 int mouse_button) = 0; 43 int mouse_button) = 0;
40 44
41 // Notifies clients that the icons have changed. 45 // Notifies clients that the icons have changed.
42 virtual void NotifyChange() = 0; 46 virtual void NotifyChange() = 0;
43 }; 47 };
44 48
45 } // namespace extensions 49 } // namespace extensions
46 50
47 #endif // CHROME_BROWSER_EXTENSIONS_LOCATION_BAR_CONTROLLER_H_ 51 #endif // CHROME_BROWSER_EXTENSIONS_LOCATION_BAR_CONTROLLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_function_registry.cc ('k') | chrome/browser/extensions/page_action_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698