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

Side by Side Diff: ui/native_theme/native_theme_aura_overlay.h

Issue 2480063002: Split NativeThemeAura into Overlay and NonOverlay versions. (Closed)
Patch Set: Fix Created 4 years, 1 month 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_aura.cc ('k') | ui/native_theme/native_theme_aura_overlay.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 2016 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_OVERLAY_H_
6 #define UI_NATIVE_THEME_NATIVE_THEME_AURA_H_ 6 #define UI_NATIVE_THEME_NATIVE_THEME_AURA_OVERLAY_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "ui/native_theme/native_theme_aura.h"
9 #include "ui/native_theme/native_theme_base.h" 10 #include "ui/native_theme/native_theme_base.h"
10 11
11 namespace ui { 12 namespace ui {
12 13
13 // Aura implementation of native theme support. 14 // Aura implementation of native theme support.
14 class NATIVE_THEME_EXPORT NativeThemeAura : public NativeThemeBase { 15 class NATIVE_THEME_EXPORT NativeThemeAuraOverlay : public NativeThemeAura {
15 public: 16 public:
16 static NativeThemeAura* instance(); 17 static NativeThemeAuraOverlay* instance();
17 18
18 protected: 19 protected:
19 NativeThemeAura(); 20 NativeThemeAuraOverlay();
20 ~NativeThemeAura() override; 21 ~NativeThemeAuraOverlay() override;
21 22
22 // Overridden from NativeThemeBase: 23 // Overridden from NativeThemeAura:
23 SkColor GetSystemColor(ColorId color_id) const override;
24 void PaintMenuPopupBackground(
25 SkCanvas* canvas,
26 const gfx::Size& size,
27 const MenuBackgroundExtraParams& menu_background) const override;
28 void PaintMenuItemBackground(
29 SkCanvas* canvas,
30 State state,
31 const gfx::Rect& rect,
32 const MenuItemExtraParams& menu_item) const override;
33 void PaintArrowButton(SkCanvas* gc,
34 const gfx::Rect& rect,
35 Part direction,
36 State state) const override;
37 void PaintScrollbarTrack(SkCanvas* canvas, 24 void PaintScrollbarTrack(SkCanvas* canvas,
38 Part part, 25 Part part,
39 State state, 26 State state,
40 const ScrollbarTrackExtraParams& extra_params, 27 const ScrollbarTrackExtraParams& extra_params,
41 const gfx::Rect& rect) const override; 28 const gfx::Rect& rect) const override;
42 void PaintScrollbarThumb(SkCanvas* canvas, 29 void PaintScrollbarThumb(SkCanvas* canvas,
43 Part part, 30 Part part,
44 State state, 31 State state,
45 const gfx::Rect& rect, 32 const gfx::Rect& rect,
46 ScrollbarOverlayColorTheme theme) const override; 33 ScrollbarOverlayColorTheme theme) const override;
47 void PaintScrollbarCorner(SkCanvas* canvas, 34 void PaintScrollbarCorner(SkCanvas* canvas,
48 State state, 35 State state,
49 const gfx::Rect& rect) const override; 36 const gfx::Rect& rect) const override;
50 gfx::Size GetPartSize(Part part, 37 gfx::Size GetPartSize(Part part,
51 State state, 38 State state,
52 const ExtraParams& extra) const override; 39 const ExtraParams& extra) const override;
53 40
54 private: 41 private:
55 DISALLOW_COPY_AND_ASSIGN(NativeThemeAura); 42 DISALLOW_COPY_AND_ASSIGN(NativeThemeAuraOverlay);
56 }; 43 };
57 44
58 } // namespace ui 45 } // namespace ui
59 46
60 #endif // UI_NATIVE_THEME_NATIVE_THEME_AURA_H_ 47 #endif // UI_NATIVE_THEME_NATIVE_THEME_AURA_OVERLAY_H_
48
OLDNEW
« no previous file with comments | « ui/native_theme/native_theme_aura.cc ('k') | ui/native_theme/native_theme_aura_overlay.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698