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

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

Issue 14424007: Use the default theme as the fallback UI in Blink (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use aura colors for fallback theme Created 7 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) 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/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "ui/native_theme/native_theme_base.h" 10 #include "ui/native_theme/native_theme_base.h"
11 11
12 namespace ui { 12 namespace ui {
13 13
14 // Aura implementation of native theme support. 14 // Aura implementation of native theme support.
15 class NATIVE_THEME_EXPORT NativeThemeAura : public NativeThemeBase { 15 class NATIVE_THEME_EXPORT NativeThemeAura : public NativeThemeBase {
16 public: 16 public:
17 static NativeThemeAura* instance(); 17 static NativeThemeAura* instance();
18 18
19 private: 19 private:
20 NativeThemeAura(); 20 NativeThemeAura();
21 virtual ~NativeThemeAura(); 21 virtual ~NativeThemeAura();
22 22
23 // Overridden from NativeThemeBase: 23 // Overridden from NativeThemeBase:
24 virtual SkColor GetSystemColor(ColorId color_id) const OVERRIDE;
25 virtual void PaintMenuPopupBackground( 24 virtual void PaintMenuPopupBackground(
26 SkCanvas* canvas, 25 SkCanvas* canvas,
27 const gfx::Size& size, 26 const gfx::Size& size,
28 const MenuBackgroundExtraParams& menu_background) const OVERRIDE; 27 const MenuBackgroundExtraParams& menu_background) const OVERRIDE;
29 virtual void PaintScrollbarTrack( 28 virtual void PaintScrollbarTrack(
30 SkCanvas* canvas, 29 SkCanvas* canvas,
31 Part part, 30 Part part,
32 State state, 31 State state,
33 const ScrollbarTrackExtraParams& extra_params, 32 const ScrollbarTrackExtraParams& extra_params,
34 const gfx::Rect& rect) const OVERRIDE; 33 const gfx::Rect& rect) const OVERRIDE;
35 virtual void PaintScrollbarThumb(SkCanvas* canvas, 34 virtual void PaintScrollbarThumb(SkCanvas* canvas,
36 Part part, 35 Part part,
37 State state, 36 State state,
38 const gfx::Rect& rect) const OVERRIDE; 37 const gfx::Rect& rect) const OVERRIDE;
39 38
40 DISALLOW_COPY_AND_ASSIGN(NativeThemeAura); 39 DISALLOW_COPY_AND_ASSIGN(NativeThemeAura);
41 }; 40 };
42 41
43 } // namespace ui 42 } // namespace ui
44 43
45 #endif // UI_NATIVE_THEME_NATIVE_THEME_AURA_H_ 44 #endif // UI_NATIVE_THEME_NATIVE_THEME_AURA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698