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

Side by Side Diff: ui/native_theme/native_theme_aura.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
« no previous file with comments | « ui/native_theme/native_theme.h ('k') | ui/native_theme/native_theme_aura.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 UI_NATIVE_THEME_NATIVE_THEME_AURA_H_ 5 #ifndef UI_NATIVE_THEME_NATIVE_THEME_AURA_H_
6 #define UI_NATIVE_THEME_NATIVE_THEME_AURA_H_ 6 #define UI_NATIVE_THEME_NATIVE_THEME_AURA_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 namespace ui { 11 namespace ui {
12 12
13 // Aura implementation of native theme support. 13 // Aura implementation of native theme support.
14 class NATIVE_THEME_EXPORT NativeThemeAura : public NativeThemeBase { 14 class NATIVE_THEME_EXPORT NativeThemeAura : public NativeThemeBase {
15 public: 15 public:
16 static NativeThemeAura* instance(); 16 static NativeThemeAura* instance();
17 static NativeThemeAura* web_instance(); 17 static NativeThemeAura* web_instance();
18 18
19 protected: 19 protected:
20 explicit NativeThemeAura(bool use_overlay_scrollbars); 20 explicit NativeThemeAura(bool use_overlay_scrollbars);
21 ~NativeThemeAura() override; 21 ~NativeThemeAura() override;
22 22
23 // Overridden from NativeThemeBase: 23 // Overridden from NativeThemeBase:
24 SkColor GetSystemColor(ColorId color_id) const override; 24 SkColor GetSystemColor(ColorId color_id) const override;
25 void PaintMenuPopupBackground( 25 void PaintMenuPopupBackground(
26 SkCanvas* canvas, 26 CdlCanvas* canvas,
27 const gfx::Size& size, 27 const gfx::Size& size,
28 const MenuBackgroundExtraParams& menu_background) const override; 28 const MenuBackgroundExtraParams& menu_background) const override;
29 void PaintMenuItemBackground( 29 void PaintMenuItemBackground(
30 SkCanvas* canvas, 30 CdlCanvas* canvas,
31 State state, 31 State state,
32 const gfx::Rect& rect, 32 const gfx::Rect& rect,
33 const MenuItemExtraParams& menu_item) const override; 33 const MenuItemExtraParams& menu_item) const override;
34 void PaintArrowButton(SkCanvas* gc, 34 void PaintArrowButton(CdlCanvas* gc,
35 const gfx::Rect& rect, 35 const gfx::Rect& rect,
36 Part direction, 36 Part direction,
37 State state) const override; 37 State state) const override;
38 void PaintScrollbarTrack(SkCanvas* canvas, 38 void PaintScrollbarTrack(CdlCanvas* canvas,
39 Part part, 39 Part part,
40 State state, 40 State state,
41 const ScrollbarTrackExtraParams& extra_params, 41 const ScrollbarTrackExtraParams& extra_params,
42 const gfx::Rect& rect) const override; 42 const gfx::Rect& rect) const override;
43 void PaintScrollbarThumb(SkCanvas* canvas, 43 void PaintScrollbarThumb(CdlCanvas* canvas,
44 Part part, 44 Part part,
45 State state, 45 State state,
46 const gfx::Rect& rect, 46 const gfx::Rect& rect,
47 ScrollbarOverlayColorTheme theme) const override; 47 ScrollbarOverlayColorTheme theme) const override;
48 void PaintScrollbarCorner(SkCanvas* canvas, 48 void PaintScrollbarCorner(CdlCanvas* canvas,
49 State state, 49 State state,
50 const gfx::Rect& rect) const override; 50 const gfx::Rect& rect) const override;
51 gfx::Size GetPartSize(Part part, 51 gfx::Size GetPartSize(Part part,
52 State state, 52 State state,
53 const ExtraParams& extra) const override; 53 const ExtraParams& extra) const override;
54 54
55 private: 55 private:
56 bool use_overlay_scrollbars_; 56 bool use_overlay_scrollbars_;
57 57
58 DISALLOW_COPY_AND_ASSIGN(NativeThemeAura); 58 DISALLOW_COPY_AND_ASSIGN(NativeThemeAura);
59 }; 59 };
60 60
61 } // namespace ui 61 } // namespace ui
62 62
63 #endif // UI_NATIVE_THEME_NATIVE_THEME_AURA_H_ 63 #endif // UI_NATIVE_THEME_NATIVE_THEME_AURA_H_
OLDNEW
« no previous file with comments | « ui/native_theme/native_theme.h ('k') | ui/native_theme/native_theme_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698