OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 | 7 |
8 #include <gtk/gtk.h> | 8 #include <gtk/gtk.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 ExtensionButtonMap; | 188 ExtensionButtonMap; |
189 ExtensionButtonMap extension_button_map_; | 189 ExtensionButtonMap extension_button_map_; |
190 | 190 |
191 // We use this animation for the smart resizing of the toolbar. | 191 // We use this animation for the smart resizing of the toolbar. |
192 SlideAnimation resize_animation_; | 192 SlideAnimation resize_animation_; |
193 // This is the final width we are animating towards. | 193 // This is the final width we are animating towards. |
194 int desired_width_; | 194 int desired_width_; |
195 // This is the width we were at when we started animating. | 195 // This is the width we were at when we started animating. |
196 int start_width_; | 196 int start_width_; |
197 | 197 |
| 198 // We only draw the browser action gripper when the user is hovering over it |
| 199 // or dragging it. |
| 200 bool draw_gripper_; |
| 201 |
198 GtkSignalRegistrar signals_; | 202 GtkSignalRegistrar signals_; |
199 | 203 |
200 ScopedRunnableMethodFactory<BrowserActionsToolbarGtk> method_factory_; | 204 ScopedRunnableMethodFactory<BrowserActionsToolbarGtk> method_factory_; |
201 | 205 |
202 DISALLOW_COPY_AND_ASSIGN(BrowserActionsToolbarGtk); | 206 DISALLOW_COPY_AND_ASSIGN(BrowserActionsToolbarGtk); |
203 }; | 207 }; |
204 | 208 |
205 #endif // CHROME_BROWSER_GTK_BROWSER_ACTIONS_TOOLBAR_GTK_H_ | 209 #endif // CHROME_BROWSER_GTK_BROWSER_ACTIONS_TOOLBAR_GTK_H_ |
OLD | NEW |