| 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/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 12 #include "chrome/browser/ui/gtk/owned_widget_gtk.h" | |
| 13 #include "content/common/notification_observer.h" | 12 #include "content/common/notification_observer.h" |
| 14 #include "content/common/notification_registrar.h" | 13 #include "content/common/notification_registrar.h" |
| 15 #include "third_party/skia/include/core/SkColor.h" | 14 #include "third_party/skia/include/core/SkColor.h" |
| 16 #include "ui/base/animation/animation_delegate.h" | 15 #include "ui/base/animation/animation_delegate.h" |
| 17 #include "ui/base/animation/slide_animation.h" | 16 #include "ui/base/animation/slide_animation.h" |
| 18 #include "ui/base/gtk/gtk_signal.h" | 17 #include "ui/base/gtk/gtk_signal.h" |
| 18 #include "ui/base/gtk/owned_widget_gtk.h" |
| 19 #include "ui/gfx/rect.h" | 19 #include "ui/gfx/rect.h" |
| 20 | 20 |
| 21 class CairoCachedSurface; | 21 class CairoCachedSurface; |
| 22 class GtkThemeService; | 22 class GtkThemeService; |
| 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. |
| (...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 // Our theme provider. | 222 // Our theme provider. |
| 223 GtkThemeService* theme_service_; | 223 GtkThemeService* theme_service_; |
| 224 | 224 |
| 225 // Used to listen for theme change notifications. | 225 // Used to listen for theme change notifications. |
| 226 NotificationRegistrar registrar_; | 226 NotificationRegistrar registrar_; |
| 227 | 227 |
| 228 DISALLOW_COPY_AND_ASSIGN(CustomDrawButton); | 228 DISALLOW_COPY_AND_ASSIGN(CustomDrawButton); |
| 229 }; | 229 }; |
| 230 | 230 |
| 231 #endif // CHROME_BROWSER_UI_GTK_CUSTOM_BUTTON_H_ | 231 #endif // CHROME_BROWSER_UI_GTK_CUSTOM_BUTTON_H_ |
| OLD | NEW |