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 // A helper class that contains the gtk widgets that make up the titlebar. The | 5 // A helper class that contains the gtk widgets that make up the titlebar. The |
6 // titlebar consists of the tabstrip and if the custom chrome frame is turned | 6 // titlebar consists of the tabstrip and if the custom chrome frame is turned |
7 // on, it includes the taller titlebar and minimize, restore, maximize, and | 7 // on, it includes the taller titlebar and minimize, restore, maximize, and |
8 // close buttons. | 8 // close buttons. |
9 | 9 |
10 #ifndef CHROME_BROWSER_UI_GTK_BROWSER_TITLEBAR_H_ | 10 #ifndef CHROME_BROWSER_UI_GTK_BROWSER_TITLEBAR_H_ |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 // -- Context Menu ----------------------------------------------------------- | 154 // -- Context Menu ----------------------------------------------------------- |
155 | 155 |
156 // SimpleMenuModel::Delegate implementation: | 156 // SimpleMenuModel::Delegate implementation: |
157 virtual bool IsCommandIdEnabled(int command_id) const; | 157 virtual bool IsCommandIdEnabled(int command_id) const; |
158 virtual bool IsCommandIdChecked(int command_id) const; | 158 virtual bool IsCommandIdChecked(int command_id) const; |
159 virtual void ExecuteCommand(int command_id); | 159 virtual void ExecuteCommand(int command_id); |
160 virtual bool GetAcceleratorForCommandId(int command_id, | 160 virtual bool GetAcceleratorForCommandId(int command_id, |
161 ui::Accelerator* accelerator); | 161 ui::Accelerator* accelerator); |
162 | 162 |
163 // Overridden from NotificationObserver: | 163 // Overridden from NotificationObserver: |
164 virtual void Observe(NotificationType type, | 164 virtual void Observe(int type, |
165 const NotificationSource& source, | 165 const NotificationSource& source, |
166 const NotificationDetails& details); | 166 const NotificationDetails& details); |
167 | 167 |
168 // Overriden from ActiveWindowWatcher::Observer. | 168 // Overriden from ActiveWindowWatcher::Observer. |
169 virtual void ActiveWindowChanged(GdkWindow* active_window); | 169 virtual void ActiveWindowChanged(GdkWindow* active_window); |
170 | 170 |
171 bool IsTypePanel(); | 171 bool IsTypePanel(); |
172 | 172 |
173 // Pointers to the browser window that owns us and it's GtkWindow. | 173 // Pointers to the browser window that owns us and it's GtkWindow. |
174 BrowserWindowGtk* browser_window_; | 174 BrowserWindowGtk* browser_window_; |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
257 // Shown in the profile button. Only used to register a notification observer. | 257 // Shown in the profile button. Only used to register a notification observer. |
258 StringPrefMember usernamePref_; | 258 StringPrefMember usernamePref_; |
259 | 259 |
260 // Theme provider for building buttons. | 260 // Theme provider for building buttons. |
261 GtkThemeService* theme_service_; | 261 GtkThemeService* theme_service_; |
262 | 262 |
263 NotificationRegistrar registrar_; | 263 NotificationRegistrar registrar_; |
264 }; | 264 }; |
265 | 265 |
266 #endif // CHROME_BROWSER_UI_GTK_BROWSER_TITLEBAR_H_ | 266 #endif // CHROME_BROWSER_UI_GTK_BROWSER_TITLEBAR_H_ |
OLD | NEW |