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_GTK_BROWSER_TOOLBAR_GTK_H_ | 5 #ifndef CHROME_BROWSER_UI_GTK_BROWSER_TOOLBAR_GTK_H_ |
6 #define CHROME_BROWSER_UI_GTK_BROWSER_TOOLBAR_GTK_H_ | 6 #define CHROME_BROWSER_UI_GTK_BROWSER_TOOLBAR_GTK_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <gtk/gtk.h> | 9 #include <gtk/gtk.h> |
10 #include <string> | 10 #include <string> |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 // Overridden from MenuGtk::Delegate: | 90 // Overridden from MenuGtk::Delegate: |
91 virtual void StoppedShowing(); | 91 virtual void StoppedShowing(); |
92 virtual GtkIconSet* GetIconSetForId(int idr); | 92 virtual GtkIconSet* GetIconSetForId(int idr); |
93 virtual bool AlwaysShowIconForCmd(int command_id) const; | 93 virtual bool AlwaysShowIconForCmd(int command_id) const; |
94 | 94 |
95 // Overridden from ui::AcceleratorProvider: | 95 // Overridden from ui::AcceleratorProvider: |
96 virtual bool GetAcceleratorForCommandId(int id, | 96 virtual bool GetAcceleratorForCommandId(int id, |
97 ui::Accelerator* accelerator); | 97 ui::Accelerator* accelerator); |
98 | 98 |
99 // NotificationObserver implementation. | 99 // NotificationObserver implementation. |
100 virtual void Observe(NotificationType type, | 100 virtual void Observe(int type, |
101 const NotificationSource& source, | 101 const NotificationSource& source, |
102 const NotificationDetails& details); | 102 const NotificationDetails& details); |
103 | 103 |
104 Profile* profile() { return profile_; } | 104 Profile* profile() { return profile_; } |
105 void SetProfile(Profile* profile); | 105 void SetProfile(Profile* profile); |
106 | 106 |
107 // Message that we should react to a state change. | 107 // Message that we should react to a state change. |
108 void UpdateTabContents(TabContents* contents, bool should_restore_state); | 108 void UpdateTabContents(TabContents* contents, bool should_restore_state); |
109 | 109 |
110 private: | 110 private: |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 // rendering. | 209 // rendering. |
210 OwnedWidgetGtk offscreen_entry_; | 210 OwnedWidgetGtk offscreen_entry_; |
211 | 211 |
212 // Manages the home button drop signal handler. | 212 // Manages the home button drop signal handler. |
213 scoped_ptr<ui::GtkSignalRegistrar> drop_handler_; | 213 scoped_ptr<ui::GtkSignalRegistrar> drop_handler_; |
214 | 214 |
215 DISALLOW_COPY_AND_ASSIGN(BrowserToolbarGtk); | 215 DISALLOW_COPY_AND_ASSIGN(BrowserToolbarGtk); |
216 }; | 216 }; |
217 | 217 |
218 #endif // CHROME_BROWSER_UI_GTK_BROWSER_TOOLBAR_GTK_H_ | 218 #endif // CHROME_BROWSER_UI_GTK_BROWSER_TOOLBAR_GTK_H_ |
OLD | NEW |