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

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

Issue 2640983002: Rename paint data structures (Closed)
Patch Set: DrawingDisplayItem Created 3 years, 10 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
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_GTK2_H_ 5 #ifndef CHROME_BROWSER_UI_LIBGTKUI_NATIVE_THEME_GTK2_H_
6 #define CHROME_BROWSER_UI_LIBGTKUI_NATIVE_THEME_GTK2_H_ 6 #define CHROME_BROWSER_UI_LIBGTKUI_NATIVE_THEME_GTK2_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "ui/native_theme/native_theme_base.h" 9 #include "ui/native_theme/native_theme_base.h"
10 10
11 typedef struct _GtkWidget GtkWidget; 11 typedef struct _GtkWidget GtkWidget;
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 cc::PaintCanvas* 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 cc::PaintCanvas* 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 private: 34 private:
35 NativeThemeGtk2(); 35 NativeThemeGtk2();
36 ~NativeThemeGtk2() override; 36 ~NativeThemeGtk2() override;
37 37
38 // Returns various widgets for theming use. 38 // Returns various widgets for theming use.
39 GtkWidget* GetWindow() const; 39 GtkWidget* GetWindow() const;
40 GtkWidget* GetEntry() const; 40 GtkWidget* GetEntry() const;
41 GtkWidget* GetLabel() const; 41 GtkWidget* GetLabel() const;
42 GtkWidget* GetButton() const; 42 GtkWidget* GetButton() const;
43 GtkWidget* GetBlueButton() const; 43 GtkWidget* GetBlueButton() const;
44 GtkWidget* GetTree() const; 44 GtkWidget* GetTree() const;
45 GtkWidget* GetTooltip() const; 45 GtkWidget* GetTooltip() const;
46 GtkWidget* GetMenu() const; 46 GtkWidget* GetMenu() const;
47 GtkWidget* GetMenuItem() const; 47 GtkWidget* GetMenuItem() const;
48 GtkWidget* GetSeparator() const; 48 GtkWidget* GetSeparator() const;
49 49
50 DISALLOW_COPY_AND_ASSIGN(NativeThemeGtk2); 50 DISALLOW_COPY_AND_ASSIGN(NativeThemeGtk2);
51 }; 51 };
52 52
53 } // namespace libgtkui 53 } // namespace libgtkui
54 54
55 #endif // CHROME_BROWSER_UI_LIBGTKUI_NATIVE_THEME_GTK2_H_ 55 #endif // CHROME_BROWSER_UI_LIBGTKUI_NATIVE_THEME_GTK2_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/extensions/icon_with_badge_image_source.cc ('k') | chrome/browser/ui/libgtkui/native_theme_gtk2.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698