OLD | NEW |
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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 // Executes |command| registered by |extension|. | 91 // Executes |command| registered by |extension|. |
92 void ExecuteExtensionCommand(const extensions::Extension* extension, | 92 void ExecuteExtensionCommand(const extensions::Extension* extension, |
93 const extensions::Command& command); | 93 const extensions::Command& command); |
94 | 94 |
95 // Shows the extension's page action, if present. | 95 // Shows the extension's page action, if present. |
96 void ShowPageActionPopup(const extensions::Extension* extension); | 96 void ShowPageActionPopup(const extensions::Extension* extension); |
97 | 97 |
98 // Shows the extension's browser action, if present. | 98 // Shows the extension's browser action, if present. |
99 void ShowBrowserActionPopup(const extensions::Extension* extension); | 99 void ShowBrowserActionPopup(const extensions::Extension* extension); |
100 | 100 |
| 101 // Shows the app (wrench) menu. |for_drop| indicates whether the menu is |
| 102 // opened for a drag-and-drop operation. |
| 103 void ShowAppMenu(bool for_drop); |
| 104 |
101 // Accessors. | 105 // Accessors. |
102 Browser* browser() const { return browser_; } | 106 Browser* browser() const { return browser_; } |
103 BrowserActionsContainer* browser_actions() const { return browser_actions_; } | 107 BrowserActionsContainer* browser_actions() const { return browser_actions_; } |
104 ReloadButton* reload_button() const { return reload_; } | 108 ReloadButton* reload_button() const { return reload_; } |
105 LocationBarView* location_bar() const { return location_bar_; } | 109 LocationBarView* location_bar() const { return location_bar_; } |
106 views::MenuButton* app_menu() const; | 110 views::MenuButton* app_menu() const; |
107 HomeButton* home_button() const { return home_; } | 111 HomeButton* home_button() const { return home_; } |
108 | 112 |
109 // AccessiblePaneView: | 113 // AccessiblePaneView: |
110 virtual bool SetPaneFocus(View* initial_focus) OVERRIDE; | 114 virtual bool SetPaneFocus(View* initial_focus) OVERRIDE; |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
260 | 264 |
261 // A list of listeners to call when the menu opens. | 265 // A list of listeners to call when the menu opens. |
262 ObserverList<views::MenuListener> menu_listeners_; | 266 ObserverList<views::MenuListener> menu_listeners_; |
263 | 267 |
264 content::NotificationRegistrar registrar_; | 268 content::NotificationRegistrar registrar_; |
265 | 269 |
266 DISALLOW_IMPLICIT_CONSTRUCTORS(ToolbarView); | 270 DISALLOW_IMPLICIT_CONSTRUCTORS(ToolbarView); |
267 }; | 271 }; |
268 | 272 |
269 #endif // CHROME_BROWSER_UI_VIEWS_TOOLBAR_TOOLBAR_VIEW_H_ | 273 #endif // CHROME_BROWSER_UI_VIEWS_TOOLBAR_TOOLBAR_VIEW_H_ |
OLD | NEW |