OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_LIBGTK2UI_NATIVE_THEME_GTK2_H_ | 5 #ifndef CHROME_BROWSER_UI_LIBGTK2UI_NATIVE_THEME_GTK2_H_ |
6 #define CHROME_BROWSER_UI_LIBGTK2UI_NATIVE_THEME_GTK2_H_ | 6 #define CHROME_BROWSER_UI_LIBGTK2UI_NATIVE_THEME_GTK2_H_ |
7 | 7 |
8 #include "chrome/browser/ui/libgtk2ui/owned_widget_gtk2.h" | 8 #include "chrome/browser/ui/libgtk2ui/owned_widget_gtk2.h" |
9 #include "ui/native_theme/native_theme_base.h" | 9 #include "ui/native_theme/native_theme_base.h" |
10 | 10 |
(...skipping 15 matching lines...) Expand all Loading... |
26 virtual void PaintMenuPopupBackground( | 26 virtual void PaintMenuPopupBackground( |
27 SkCanvas* canvas, | 27 SkCanvas* canvas, |
28 const gfx::Size& size, | 28 const gfx::Size& size, |
29 const MenuBackgroundExtraParams& menu_background) const OVERRIDE; | 29 const MenuBackgroundExtraParams& menu_background) const OVERRIDE; |
30 virtual void PaintMenuItemBackground( | 30 virtual void PaintMenuItemBackground( |
31 SkCanvas* canvas, | 31 SkCanvas* canvas, |
32 State state, | 32 State state, |
33 const gfx::Rect& rect, | 33 const gfx::Rect& rect, |
34 const MenuListExtraParams& menu_list) const OVERRIDE; | 34 const MenuListExtraParams& menu_list) const OVERRIDE; |
35 | 35 |
| 36 // A public helper to notify observers of native theme changes. |
| 37 void NotifyNativeThemeObservers(); |
| 38 |
36 private: | 39 private: |
37 NativeThemeGtk2(); | 40 NativeThemeGtk2(); |
38 virtual ~NativeThemeGtk2(); | 41 virtual ~NativeThemeGtk2(); |
39 | 42 |
40 // Implementation of GetSystemColor. | 43 // Implementation of GetSystemColor. |
41 GdkColor GetSystemGdkColor(ColorId color_id) const; | 44 GdkColor GetSystemGdkColor(ColorId color_id) const; |
42 | 45 |
43 // Returns styles associated with various widget types. | 46 // Returns styles associated with various widget types. |
44 GtkWidget* GetRealizedWindow() const; | 47 GtkWidget* GetRealizedWindow() const; |
45 GtkStyle* GetWindowStyle() const; | 48 GtkStyle* GetWindowStyle() const; |
(...skipping 12 matching lines...) Expand all Loading... |
58 | 61 |
59 mutable OwnedWidgetGtk fake_menu_; | 62 mutable OwnedWidgetGtk fake_menu_; |
60 mutable GtkWidget* fake_menu_item_; | 63 mutable GtkWidget* fake_menu_item_; |
61 | 64 |
62 DISALLOW_COPY_AND_ASSIGN(NativeThemeGtk2); | 65 DISALLOW_COPY_AND_ASSIGN(NativeThemeGtk2); |
63 }; | 66 }; |
64 | 67 |
65 } // namespace libgtk2ui | 68 } // namespace libgtk2ui |
66 | 69 |
67 #endif // CHROME_BROWSER_UI_LIBGTK2UI_NATIVE_THEME_GTK2_H_ | 70 #endif // CHROME_BROWSER_UI_LIBGTK2UI_NATIVE_THEME_GTK2_H_ |
OLD | NEW |