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

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

Issue 9101004: Factor more colors into NativeTheme. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Copyright. Created 8 years, 11 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) 2011 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_GFX_NATIVE_THEME_AURA_H_ 5 #ifndef UI_GFX_NATIVE_THEME_AURA_H_
6 #define UI_GFX_NATIVE_THEME_AURA_H_ 6 #define UI_GFX_NATIVE_THEME_AURA_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 10
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "ui/gfx/native_theme_base.h" 12 #include "ui/gfx/native_theme_base.h"
13 #include "ui/gfx/rect.h" 13 #include "ui/gfx/rect.h"
14 14
15 class SkBitmap; 15 class SkBitmap;
16 16
17 namespace gfx { 17 namespace gfx {
18 18
19 // Aura implementation of native theme support. 19 // Aura implementation of native theme support.
20 class NativeThemeAura : public NativeThemeBase { 20 class NativeThemeAura : public NativeThemeBase {
21 public: 21 public:
22 static const NativeThemeAura* instance(); 22 static const NativeThemeAura* instance();
23 23
24 private: 24 private:
25 NativeThemeAura(); 25 NativeThemeAura();
26 virtual ~NativeThemeAura(); 26 virtual ~NativeThemeAura();
27 27
28 // NativeThemeBase overrides 28 // NativeThemeBase overrides
29 virtual SkColor GetSystemColor(ColorId color_id) const OVERRIDE;
benrg 2012/01/06 19:38:01 This is a NativeTheme override. (Ditto in native_t
Emmanuel Saint-loubert-Bié 2012/01/06 21:51:07 Done.
30
29 virtual void PaintMenuPopupBackground( 31 virtual void PaintMenuPopupBackground(
30 SkCanvas* canvas, 32 SkCanvas* canvas,
31 State state, 33 State state,
32 const gfx::Rect& rect, 34 const gfx::Rect& rect,
33 const MenuListExtraParams& menu_list) const OVERRIDE; 35 const MenuListExtraParams& menu_list) const OVERRIDE;
34 36
35 virtual void PaintScrollbarTrack( 37 virtual void PaintScrollbarTrack(
36 SkCanvas* canvas, 38 SkCanvas* canvas,
37 Part part, 39 Part part,
38 State state, 40 State state,
(...skipping 18 matching lines...) Expand all
57 // ownership of the pointers. 59 // ownership of the pointers.
58 typedef std::map<int, SkBitmap*> SkImageMap; 60 typedef std::map<int, SkBitmap*> SkImageMap;
59 mutable SkImageMap horizontal_bitmaps_; 61 mutable SkImageMap horizontal_bitmaps_;
60 62
61 DISALLOW_COPY_AND_ASSIGN(NativeThemeAura); 63 DISALLOW_COPY_AND_ASSIGN(NativeThemeAura);
62 }; 64 };
63 65
64 } // namespace gfx 66 } // namespace gfx
65 67
66 #endif // UI_GFX_NATIVE_THEME_AURA_H_ 68 #endif // UI_GFX_NATIVE_THEME_AURA_H_
OLDNEW
« no previous file with comments | « ui/gfx/native_theme.h ('k') | ui/gfx/native_theme_aura.cc » ('j') | ui/gfx/native_theme_aura.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698