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 "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "base/observer_list.h" | 9 #include "base/observer_list.h" |
10 #include "base/prefs/pref_member.h" | 10 #include "base/prefs/pref_member.h" |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 views::View* GetTranslateBubbleAnchor(); | 90 views::View* GetTranslateBubbleAnchor(); |
91 | 91 |
92 // Executes |command| registered by |extension|. | 92 // Executes |command| registered by |extension|. |
93 void ExecuteExtensionCommand(const extensions::Extension* extension, | 93 void ExecuteExtensionCommand(const extensions::Extension* extension, |
94 const extensions::Command& command); | 94 const extensions::Command& command); |
95 | 95 |
96 // Shows the app (wrench) menu. |for_drop| indicates whether the menu is | 96 // Shows the app (wrench) menu. |for_drop| indicates whether the menu is |
97 // opened for a drag-and-drop operation. | 97 // opened for a drag-and-drop operation. |
98 void ShowAppMenu(bool for_drop); | 98 void ShowAppMenu(bool for_drop); |
99 | 99 |
| 100 // Closes the App Menu, if it's open. |
| 101 void CloseAppMenu(); |
| 102 |
100 // Accessors. | 103 // Accessors. |
101 Browser* browser() const { return browser_; } | 104 Browser* browser() const { return browser_; } |
102 BrowserActionsContainer* browser_actions() const { return browser_actions_; } | 105 BrowserActionsContainer* browser_actions() const { return browser_actions_; } |
103 ReloadButton* reload_button() const { return reload_; } | 106 ReloadButton* reload_button() const { return reload_; } |
104 LocationBarView* location_bar() const { return location_bar_; } | 107 LocationBarView* location_bar() const { return location_bar_; } |
105 WrenchToolbarButton* app_menu() const { return app_menu_; } | 108 WrenchToolbarButton* app_menu() const { return app_menu_; } |
106 HomeButton* home_button() const { return home_; } | 109 HomeButton* home_button() const { return home_; } |
107 | 110 |
108 // AccessiblePaneView: | 111 // AccessiblePaneView: |
109 bool SetPaneFocus(View* initial_focus) override; | 112 bool SetPaneFocus(View* initial_focus) override; |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
245 | 248 |
246 // A list of listeners to call when the menu opens. | 249 // A list of listeners to call when the menu opens. |
247 ObserverList<views::MenuListener> menu_listeners_; | 250 ObserverList<views::MenuListener> menu_listeners_; |
248 | 251 |
249 content::NotificationRegistrar registrar_; | 252 content::NotificationRegistrar registrar_; |
250 | 253 |
251 DISALLOW_IMPLICIT_CONSTRUCTORS(ToolbarView); | 254 DISALLOW_IMPLICIT_CONSTRUCTORS(ToolbarView); |
252 }; | 255 }; |
253 | 256 |
254 #endif // CHROME_BROWSER_UI_VIEWS_TOOLBAR_TOOLBAR_VIEW_H_ | 257 #endif // CHROME_BROWSER_UI_VIEWS_TOOLBAR_TOOLBAR_VIEW_H_ |
OLD | NEW |