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_CUSTOM_BUTTON_H_ | 5 #ifndef CHROME_BROWSER_UI_GTK_CUSTOM_BUTTON_H_ |
6 #define CHROME_BROWSER_UI_GTK_CUSTOM_BUTTON_H_ | 6 #define CHROME_BROWSER_UI_GTK_CUSTOM_BUTTON_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <gtk/gtk.h> | 9 #include <gtk/gtk.h> |
10 | 10 |
11 #include "base/scoped_ptr.h" | 11 #include "base/scoped_ptr.h" |
12 #include "chrome/browser/ui/gtk/owned_widget_gtk.h" | 12 #include "chrome/browser/ui/gtk/owned_widget_gtk.h" |
13 #include "chrome/common/notification_observer.h" | 13 #include "chrome/common/notification_observer.h" |
14 #include "chrome/common/notification_registrar.h" | 14 #include "chrome/common/notification_registrar.h" |
15 #include "gfx/rect.h" | |
16 #include "third_party/skia/include/core/SkColor.h" | 15 #include "third_party/skia/include/core/SkColor.h" |
17 #include "ui/base/animation/animation_delegate.h" | 16 #include "ui/base/animation/animation_delegate.h" |
18 #include "ui/base/animation/slide_animation.h" | 17 #include "ui/base/animation/slide_animation.h" |
19 #include "ui/base/gtk/gtk_signal.h" | 18 #include "ui/base/gtk/gtk_signal.h" |
| 19 #include "ui/gfx/rect.h" |
20 | 20 |
21 class CairoCachedSurface; | 21 class CairoCachedSurface; |
22 class GtkThemeProvider; | 22 class GtkThemeProvider; |
23 class SkBitmap; | 23 class SkBitmap; |
24 | 24 |
25 // These classes implement two kinds of custom-drawn buttons. They're | 25 // These classes implement two kinds of custom-drawn buttons. They're |
26 // used on the toolbar and the bookmarks bar. | 26 // used on the toolbar and the bookmarks bar. |
27 | 27 |
28 // CustomDrawButtonBase provides the base for building a custom drawn button. | 28 // CustomDrawButtonBase provides the base for building a custom drawn button. |
29 // It handles managing the pixbufs containing all the static images used to draw | 29 // It handles managing the pixbufs containing all the static images used to draw |
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 // Our theme provider. | 218 // Our theme provider. |
219 GtkThemeProvider* theme_provider_; | 219 GtkThemeProvider* theme_provider_; |
220 | 220 |
221 // Used to listen for theme change notifications. | 221 // Used to listen for theme change notifications. |
222 NotificationRegistrar registrar_; | 222 NotificationRegistrar registrar_; |
223 | 223 |
224 DISALLOW_COPY_AND_ASSIGN(CustomDrawButton); | 224 DISALLOW_COPY_AND_ASSIGN(CustomDrawButton); |
225 }; | 225 }; |
226 | 226 |
227 #endif // CHROME_BROWSER_UI_GTK_CUSTOM_BUTTON_H_ | 227 #endif // CHROME_BROWSER_UI_GTK_CUSTOM_BUTTON_H_ |
OLD | NEW |