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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 // CommandObserver: | 132 // CommandObserver: |
133 virtual void EnabledStateChangedForCommand(int id, bool enabled) OVERRIDE; | 133 virtual void EnabledStateChangedForCommand(int id, bool enabled) OVERRIDE; |
134 | 134 |
135 // views::ButtonListener: | 135 // views::ButtonListener: |
136 virtual void ButtonPressed(views::Button* sender, | 136 virtual void ButtonPressed(views::Button* sender, |
137 const ui::Event& event) OVERRIDE; | 137 const ui::Event& event) OVERRIDE; |
138 | 138 |
139 // views::WidgetObserver: | 139 // views::WidgetObserver: |
140 virtual void OnWidgetVisibilityChanged(views::Widget* widget, | 140 virtual void OnWidgetVisibilityChanged(views::Widget* widget, |
141 bool visible) OVERRIDE; | 141 bool visible) OVERRIDE; |
| 142 virtual void OnWidgetActivationChanged(views::Widget* widget, |
| 143 bool active) OVERRIDE; |
142 | 144 |
143 // content::NotificationObserver: | 145 // content::NotificationObserver: |
144 virtual void Observe(int type, | 146 virtual void Observe(int type, |
145 const content::NotificationSource& source, | 147 const content::NotificationSource& source, |
146 const content::NotificationDetails& details) OVERRIDE; | 148 const content::NotificationDetails& details) OVERRIDE; |
147 | 149 |
148 // ui::AcceleratorProvider: | 150 // ui::AcceleratorProvider: |
149 virtual bool GetAcceleratorForCommandId( | 151 virtual bool GetAcceleratorForCommandId( |
150 int command_id, ui::Accelerator* accelerator) OVERRIDE; | 152 int command_id, ui::Accelerator* accelerator) OVERRIDE; |
151 | 153 |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
252 | 254 |
253 // A list of listeners to call when the menu opens. | 255 // A list of listeners to call when the menu opens. |
254 ObserverList<views::MenuListener> menu_listeners_; | 256 ObserverList<views::MenuListener> menu_listeners_; |
255 | 257 |
256 content::NotificationRegistrar registrar_; | 258 content::NotificationRegistrar registrar_; |
257 | 259 |
258 DISALLOW_IMPLICIT_CONSTRUCTORS(ToolbarView); | 260 DISALLOW_IMPLICIT_CONSTRUCTORS(ToolbarView); |
259 }; | 261 }; |
260 | 262 |
261 #endif // CHROME_BROWSER_UI_VIEWS_TOOLBAR_TOOLBAR_VIEW_H_ | 263 #endif // CHROME_BROWSER_UI_VIEWS_TOOLBAR_TOOLBAR_VIEW_H_ |
OLD | NEW |