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

Side by Side Diff: chrome/browser/ui/views/toolbar/toolbar_view.h

Issue 489183005: Make a ShowExtensionActionPopup function (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Peter's Created 6 years, 3 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_UI_VIEWS_TOOLBAR_TOOLBAR_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_TOOLBAR_TOOLBAR_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_TOOLBAR_TOOLBAR_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_TOOLBAR_TOOLBAR_VIEW_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 // Returns the view to which the bookmark bubble should be anchored. 87 // Returns the view to which the bookmark bubble should be anchored.
88 views::View* GetBookmarkBubbleAnchor(); 88 views::View* GetBookmarkBubbleAnchor();
89 89
90 // Returns the view to which the Translate bubble should be anchored. 90 // Returns the view to which the Translate bubble should be anchored.
91 views::View* GetTranslateBubbleAnchor(); 91 views::View* GetTranslateBubbleAnchor();
92 92
93 // Executes |command| registered by |extension|. 93 // Executes |command| registered by |extension|.
94 void ExecuteExtensionCommand(const extensions::Extension* extension, 94 void ExecuteExtensionCommand(const extensions::Extension* extension,
95 const extensions::Command& command); 95 const extensions::Command& command);
96 96
97 // Shows the extension's page action, if present.
98 void ShowPageActionPopup(const extensions::Extension* extension);
99
100 // Shows the extension's browser action, if present.
101 void ShowBrowserActionPopup(const extensions::Extension* extension);
102
103 // Shows the app (wrench) menu. |for_drop| indicates whether the menu is 97 // Shows the app (wrench) menu. |for_drop| indicates whether the menu is
104 // opened for a drag-and-drop operation. 98 // opened for a drag-and-drop operation.
105 void ShowAppMenu(bool for_drop); 99 void ShowAppMenu(bool for_drop);
106 100
107 // Accessors. 101 // Accessors.
108 Browser* browser() const { return browser_; } 102 Browser* browser() const { return browser_; }
109 BrowserActionsContainer* browser_actions() const { return browser_actions_; } 103 BrowserActionsContainer* browser_actions() const { return browser_actions_; }
110 ReloadButton* reload_button() const { return reload_; } 104 ReloadButton* reload_button() const { return reload_; }
111 LocationBarView* location_bar() const { return location_bar_; } 105 LocationBarView* location_bar() const { return location_bar_; }
112 views::MenuButton* app_menu() const; 106 views::MenuButton* app_menu() const;
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 252
259 // A list of listeners to call when the menu opens. 253 // A list of listeners to call when the menu opens.
260 ObserverList<views::MenuListener> menu_listeners_; 254 ObserverList<views::MenuListener> menu_listeners_;
261 255
262 content::NotificationRegistrar registrar_; 256 content::NotificationRegistrar registrar_;
263 257
264 DISALLOW_IMPLICIT_CONSTRUCTORS(ToolbarView); 258 DISALLOW_IMPLICIT_CONSTRUCTORS(ToolbarView);
265 }; 259 };
266 260
267 #endif // CHROME_BROWSER_UI_VIEWS_TOOLBAR_TOOLBAR_VIEW_H_ 261 #endif // CHROME_BROWSER_UI_VIEWS_TOOLBAR_TOOLBAR_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/toolbar/browser_actions_container.cc ('k') | chrome/browser/ui/views/toolbar/toolbar_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698