| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_TOOLBAR_VIEW_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_TOOLBAR_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_TOOLBAR_VIEW_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 void AddMenuListener(views::MenuListener* listener); | 69 void AddMenuListener(views::MenuListener* listener); |
| 70 | 70 |
| 71 // Remove a menu listener. | 71 // Remove a menu listener. |
| 72 void RemoveMenuListener(views::MenuListener* listener); | 72 void RemoveMenuListener(views::MenuListener* listener); |
| 73 | 73 |
| 74 virtual bool GetAcceleratorInfo(int id, ui::Accelerator* accel); | 74 virtual bool GetAcceleratorInfo(int id, ui::Accelerator* accel); |
| 75 | 75 |
| 76 // Returns the view to which the bookmark bubble should be anchored. | 76 // Returns the view to which the bookmark bubble should be anchored. |
| 77 views::View* GetBookmarkBubbleAnchor(); | 77 views::View* GetBookmarkBubbleAnchor(); |
| 78 | 78 |
| 79 // Returns the view to which the Translate bubble should be anchored. |
| 80 views::View* GetTranslateBubbleAnchor(); |
| 81 |
| 79 // Accessors... | 82 // Accessors... |
| 80 Browser* browser() const { return browser_; } | 83 Browser* browser() const { return browser_; } |
| 81 BrowserActionsContainer* browser_actions() const { return browser_actions_; } | 84 BrowserActionsContainer* browser_actions() const { return browser_actions_; } |
| 82 ReloadButton* reload_button() const { return reload_; } | 85 ReloadButton* reload_button() const { return reload_; } |
| 83 LocationBarView* location_bar() const { return location_bar_; } | 86 LocationBarView* location_bar() const { return location_bar_; } |
| 84 views::MenuButton* app_menu() const; | 87 views::MenuButton* app_menu() const; |
| 85 | 88 |
| 86 // Overridden from AccessiblePaneView | 89 // Overridden from AccessiblePaneView |
| 87 virtual bool SetPaneFocus(View* initial_focus) OVERRIDE; | 90 virtual bool SetPaneFocus(View* initial_focus) OVERRIDE; |
| 88 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; | 91 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 | 226 |
| 224 // A list of listeners to call when the menu opens. | 227 // A list of listeners to call when the menu opens. |
| 225 ObserverList<views::MenuListener> menu_listeners_; | 228 ObserverList<views::MenuListener> menu_listeners_; |
| 226 | 229 |
| 227 content::NotificationRegistrar registrar_; | 230 content::NotificationRegistrar registrar_; |
| 228 | 231 |
| 229 DISALLOW_IMPLICIT_CONSTRUCTORS(ToolbarView); | 232 DISALLOW_IMPLICIT_CONSTRUCTORS(ToolbarView); |
| 230 }; | 233 }; |
| 231 | 234 |
| 232 #endif // CHROME_BROWSER_UI_VIEWS_TOOLBAR_VIEW_H_ | 235 #endif // CHROME_BROWSER_UI_VIEWS_TOOLBAR_VIEW_H_ |
| OLD | NEW |