| 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 // 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 Loading... |
| 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_ |
| OLD | NEW |