Chromium Code Reviews| 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 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 // Returns if the given |accelerator| is registered by an extension. | |
|
Finnur
2014/09/10 10:15:16
nit: s/if/whether/
David Tseng
2014/09/10 21:19:07
Done.
| |
| 98 bool IsExtensionCommandRegistered(const ui::Accelerator& accelerator); | |
| 99 | |
| 97 // Shows the app (wrench) menu. |for_drop| indicates whether the menu is | 100 // Shows the app (wrench) menu. |for_drop| indicates whether the menu is |
| 98 // opened for a drag-and-drop operation. | 101 // opened for a drag-and-drop operation. |
| 99 void ShowAppMenu(bool for_drop); | 102 void ShowAppMenu(bool for_drop); |
| 100 | 103 |
| 101 // Accessors. | 104 // Accessors. |
| 102 Browser* browser() const { return browser_; } | 105 Browser* browser() const { return browser_; } |
| 103 BrowserActionsContainer* browser_actions() const { return browser_actions_; } | 106 BrowserActionsContainer* browser_actions() const { return browser_actions_; } |
| 104 ReloadButton* reload_button() const { return reload_; } | 107 ReloadButton* reload_button() const { return reload_; } |
| 105 LocationBarView* location_bar() const { return location_bar_; } | 108 LocationBarView* location_bar() const { return location_bar_; } |
| 106 views::MenuButton* app_menu() const; | 109 views::MenuButton* app_menu() const; |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 252 | 255 |
| 253 // A list of listeners to call when the menu opens. | 256 // A list of listeners to call when the menu opens. |
| 254 ObserverList<views::MenuListener> menu_listeners_; | 257 ObserverList<views::MenuListener> menu_listeners_; |
| 255 | 258 |
| 256 content::NotificationRegistrar registrar_; | 259 content::NotificationRegistrar registrar_; |
| 257 | 260 |
| 258 DISALLOW_IMPLICIT_CONSTRUCTORS(ToolbarView); | 261 DISALLOW_IMPLICIT_CONSTRUCTORS(ToolbarView); |
| 259 }; | 262 }; |
| 260 | 263 |
| 261 #endif // CHROME_BROWSER_UI_VIEWS_TOOLBAR_TOOLBAR_VIEW_H_ | 264 #endif // CHROME_BROWSER_UI_VIEWS_TOOLBAR_TOOLBAR_VIEW_H_ |
| OLD | NEW |