OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <set> | 9 #include <set> |
10 #include <vector> | 10 #include <vector> |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 virtual void OnInputInProgress(bool in_progress) OVERRIDE; | 103 virtual void OnInputInProgress(bool in_progress) OVERRIDE; |
104 | 104 |
105 // Overridden from CommandUpdater::CommandObserver: | 105 // Overridden from CommandUpdater::CommandObserver: |
106 virtual void EnabledStateChangedForCommand(int id, bool enabled) OVERRIDE; | 106 virtual void EnabledStateChangedForCommand(int id, bool enabled) OVERRIDE; |
107 | 107 |
108 // Overridden from views::BaseButton::ButtonListener: | 108 // Overridden from views::BaseButton::ButtonListener: |
109 virtual void ButtonPressed(views::Button* sender, const views::Event& event) | 109 virtual void ButtonPressed(views::Button* sender, const views::Event& event) |
110 OVERRIDE; | 110 OVERRIDE; |
111 | 111 |
112 // Overridden from NotificationObserver: | 112 // Overridden from NotificationObserver: |
113 virtual void Observe(NotificationType type, | 113 virtual void Observe(int type, |
114 const NotificationSource& source, | 114 const NotificationSource& source, |
115 const NotificationDetails& details) OVERRIDE; | 115 const NotificationDetails& details) OVERRIDE; |
116 | 116 |
117 // Overridden from ui::AcceleratorProvider: | 117 // Overridden from ui::AcceleratorProvider: |
118 virtual bool GetAcceleratorForCommandId( | 118 virtual bool GetAcceleratorForCommandId( |
119 int command_id, ui::Accelerator* accelerator) OVERRIDE; | 119 int command_id, ui::Accelerator* accelerator) OVERRIDE; |
120 | 120 |
121 // Overridden from views::View: | 121 // Overridden from views::View: |
122 virtual gfx::Size GetPreferredSize() OVERRIDE; | 122 virtual gfx::Size GetPreferredSize() OVERRIDE; |
123 virtual void Layout() OVERRIDE; | 123 virtual void Layout() OVERRIDE; |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 | 211 |
212 // Vector of listeners to receive callbacks when the menu opens. | 212 // Vector of listeners to receive callbacks when the menu opens. |
213 std::vector<views::MenuListener*> menu_listeners_; | 213 std::vector<views::MenuListener*> menu_listeners_; |
214 | 214 |
215 NotificationRegistrar registrar_; | 215 NotificationRegistrar registrar_; |
216 | 216 |
217 DISALLOW_IMPLICIT_CONSTRUCTORS(ToolbarView); | 217 DISALLOW_IMPLICIT_CONSTRUCTORS(ToolbarView); |
218 }; | 218 }; |
219 | 219 |
220 #endif // CHROME_BROWSER_UI_VIEWS_TOOLBAR_VIEW_H_ | 220 #endif // CHROME_BROWSER_UI_VIEWS_TOOLBAR_VIEW_H_ |
OLD | NEW |