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

Side by Side Diff: chrome/browser/ui/libgtkui/native_theme_gtk.h

Issue 2523673004: [NOT FOR COMMIT] Fully replace SkCanvas uses.
Patch Set: Support Android build. Created 4 years 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
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_LIBGTKUI_NATIVE_THEME_GTK_H_ 5 #ifndef CHROME_BROWSER_UI_LIBGTKUI_NATIVE_THEME_GTK_H_
6 #define CHROME_BROWSER_UI_LIBGTKUI_NATIVE_THEME_GTK_H_ 6 #define CHROME_BROWSER_UI_LIBGTKUI_NATIVE_THEME_GTK_H_
7 7
8 #include <gtk/gtk.h> 8 #include <gtk/gtk.h>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "ui/native_theme/native_theme_base.h" 11 #include "ui/native_theme/native_theme_base.h"
12 12
13 namespace libgtkui { 13 namespace libgtkui {
14 14
15 // A version of NativeTheme that uses GTK2 supplied colours instead of the 15 // A version of NativeTheme that uses GTK2 supplied colours instead of the
16 // default aura colours. Analogue to NativeThemeWin, except that can't be 16 // default aura colours. Analogue to NativeThemeWin, except that can't be
17 // compiled into the main chrome binary like the Windows code can. 17 // compiled into the main chrome binary like the Windows code can.
18 class NativeThemeGtk2 : public ui::NativeThemeBase { 18 class NativeThemeGtk2 : public ui::NativeThemeBase {
19 public: 19 public:
20 static NativeThemeGtk2* instance(); 20 static NativeThemeGtk2* instance();
21 21
22 // Overridden from ui::NativeThemeBase: 22 // Overridden from ui::NativeThemeBase:
23 SkColor GetSystemColor(ColorId color_id) const override; 23 SkColor GetSystemColor(ColorId color_id) const override;
24 void PaintMenuPopupBackground( 24 void PaintMenuPopupBackground(
25 SkCanvas* canvas, 25 CdlCanvas* canvas,
26 const gfx::Size& size, 26 const gfx::Size& size,
27 const MenuBackgroundExtraParams& menu_background) const override; 27 const MenuBackgroundExtraParams& menu_background) const override;
28 void PaintMenuItemBackground( 28 void PaintMenuItemBackground(
29 SkCanvas* canvas, 29 CdlCanvas* canvas,
30 State state, 30 State state,
31 const gfx::Rect& rect, 31 const gfx::Rect& rect,
32 const MenuItemExtraParams& menu_item) const override; 32 const MenuItemExtraParams& menu_item) const override;
33 33
34 // Gets a ChromeGtkFrame theme color; returns true on success. Always returns 34 // Gets a ChromeGtkFrame theme color; returns true on success. Always returns
35 // false in GTK3. 35 // false in GTK3.
36 bool GetChromeStyleColor(const char* style_property, 36 bool GetChromeStyleColor(const char* style_property,
37 SkColor* ret_color) const; 37 SkColor* ret_color) const;
38 38
39 // Returns various widgets for theming use. 39 // Returns various widgets for theming use.
(...skipping 10 matching lines...) Expand all
50 private: 50 private:
51 NativeThemeGtk2(); 51 NativeThemeGtk2();
52 ~NativeThemeGtk2() override; 52 ~NativeThemeGtk2() override;
53 53
54 DISALLOW_COPY_AND_ASSIGN(NativeThemeGtk2); 54 DISALLOW_COPY_AND_ASSIGN(NativeThemeGtk2);
55 }; 55 };
56 56
57 } // namespace libgtkui 57 } // namespace libgtkui
58 58
59 #endif // CHROME_BROWSER_UI_LIBGTKUI_NATIVE_THEME_GTK_H_ 59 #endif // CHROME_BROWSER_UI_LIBGTKUI_NATIVE_THEME_GTK_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/extensions/icon_with_badge_image_source.cc ('k') | chrome/browser/ui/libgtkui/native_theme_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698