Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(156)

Side by Side Diff: chrome/browser/ui/libgtk2ui/native_theme_gtk2.h

Issue 239093007: Update Windows UI on system color changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Restore change from bad rebase. Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/ui/libgtk2ui/gtk2_ui.cc ('k') | chrome/browser/ui/libgtk2ui/native_theme_gtk2.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698