OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_GTK_BROWSER_ACTIONS_TOOLBAR_GTK_H_ | 5 #ifndef CHROME_BROWSER_GTK_BROWSER_ACTIONS_TOOLBAR_GTK_H_ |
6 #define CHROME_BROWSER_GTK_BROWSER_ACTIONS_TOOLBAR_GTK_H_ | 6 #define CHROME_BROWSER_GTK_BROWSER_ACTIONS_TOOLBAR_GTK_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 virtual void BrowserActionRemoved(const Extension* extension); | 110 virtual void BrowserActionRemoved(const Extension* extension); |
111 virtual void BrowserActionMoved(const Extension* extension, int index); | 111 virtual void BrowserActionMoved(const Extension* extension, int index); |
112 virtual void ModelLoaded(); | 112 virtual void ModelLoaded(); |
113 | 113 |
114 // AnimationDelegate implementation. | 114 // AnimationDelegate implementation. |
115 virtual void AnimationProgressed(const Animation* animation); | 115 virtual void AnimationProgressed(const Animation* animation); |
116 virtual void AnimationEnded(const Animation* animation); | 116 virtual void AnimationEnded(const Animation* animation); |
117 | 117 |
118 // SimpleMenuModel::Delegate implementation. | 118 // SimpleMenuModel::Delegate implementation. |
119 // In our case, |command_id| is be the index into the model's extension list. | 119 // In our case, |command_id| is be the index into the model's extension list. |
120 virtual bool IsCommandIdChecked(int command_id) const { return false; } | 120 virtual bool IsCommandIdChecked(int command_id) const; |
121 virtual bool IsCommandIdEnabled(int command_id) const { return true; } | 121 virtual bool IsCommandIdEnabled(int command_id) const; |
122 virtual bool GetAcceleratorForCommandId( | 122 virtual bool GetAcceleratorForCommandId( |
123 int command_id, | 123 int command_id, |
124 menus::Accelerator* accelerator) { | 124 menus::Accelerator* accelerator); |
125 return false; | |
126 } | |
127 virtual void ExecuteCommand(int command_id); | 125 virtual void ExecuteCommand(int command_id); |
128 | 126 |
129 // MenuGtk::Delegate implementation. | 127 // MenuGtk::Delegate implementation. |
130 virtual void StoppedShowing(); | 128 virtual void StoppedShowing(); |
131 virtual bool AlwaysShowIconForCmd(int command_id) const; | 129 virtual bool AlwaysShowIconForCmd(int command_id) const; |
132 | 130 |
133 // Called by the BrowserActionButton in response to drag-begin. | 131 // Called by the BrowserActionButton in response to drag-begin. |
134 void DragStarted(BrowserActionButton* button, GdkDragContext* drag_context); | 132 void DragStarted(BrowserActionButton* button, GdkDragContext* drag_context); |
135 | 133 |
136 // Sets the width of the button area of the toolbar to |new_width|, clamping | 134 // Sets the width of the button area of the toolbar to |new_width|, clamping |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 GtkSignalRegistrar signals_; | 214 GtkSignalRegistrar signals_; |
217 | 215 |
218 NotificationRegistrar registrar_; | 216 NotificationRegistrar registrar_; |
219 | 217 |
220 ScopedRunnableMethodFactory<BrowserActionsToolbarGtk> method_factory_; | 218 ScopedRunnableMethodFactory<BrowserActionsToolbarGtk> method_factory_; |
221 | 219 |
222 DISALLOW_COPY_AND_ASSIGN(BrowserActionsToolbarGtk); | 220 DISALLOW_COPY_AND_ASSIGN(BrowserActionsToolbarGtk); |
223 }; | 221 }; |
224 | 222 |
225 #endif // CHROME_BROWSER_GTK_BROWSER_ACTIONS_TOOLBAR_GTK_H_ | 223 #endif // CHROME_BROWSER_GTK_BROWSER_ACTIONS_TOOLBAR_GTK_H_ |
OLD | NEW |