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

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

Issue 9151011: Revert 116894 - Factor more colors into NativeTheme. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: 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
« no previous file with comments | « ui/gfx/native_theme_base.cc ('k') | ui/gfx/native_theme_chromeos.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) 2011 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_CHROMEOS_H_ 5 #ifndef UI_GFX_NATIVE_THEME_CHROMEOS_H_
6 #define UI_GFX_NATIVE_THEME_CHROMEOS_H_ 6 #define UI_GFX_NATIVE_THEME_CHROMEOS_H_
7 7
8 #include <map> 8 #include <map>
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "ui/gfx/native_theme_base.h" 10 #include "ui/gfx/native_theme_base.h"
11 11
12 class SkBitmap; 12 class SkBitmap;
13 13
14 namespace gfx { 14 namespace gfx {
15 15
16 class NativeThemeChromeos : public NativeThemeBase { 16 class NativeThemeChromeos : public NativeThemeBase {
17 public: 17 public:
18 static const NativeThemeChromeos* instance(); 18 static const NativeThemeChromeos* instance();
19 19
20 private: 20 private:
21 NativeThemeChromeos(); 21 NativeThemeChromeos();
22 virtual ~NativeThemeChromeos(); 22 virtual ~NativeThemeChromeos();
23 23
24 // NativeTheme overrides 24 // NativeTheme overrides
25 virtual gfx::Size GetPartSize(Part part, 25 virtual gfx::Size GetPartSize(Part part,
26 State state, 26 State state,
27 const ExtraParams& extra) const OVERRIDE; 27 const ExtraParams& extra) const OVERRIDE;
28 virtual SkColor GetSystemColor(ColorId color_id) const OVERRIDE;
29 28
30 // NativeThemeBase overrides 29 // NativeThemeLinux overrides
31 virtual void PaintScrollbarTrack(SkCanvas* canvas, 30 virtual void PaintScrollbarTrack(SkCanvas* canvas,
32 Part part, State state, 31 Part part, 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 PaintArrowButton(SkCanvas* canvas, 34 virtual void PaintArrowButton(SkCanvas* canvas,
36 const gfx::Rect& rect, Part direction, State state) const OVERRIDE; 35 const gfx::Rect& rect, Part direction, State state) const OVERRIDE;
37 virtual void PaintScrollbarThumb(SkCanvas* canvas, 36 virtual void PaintScrollbarThumb(SkCanvas* canvas,
38 Part part, State state, const gfx::Rect& rect) const OVERRIDE; 37 Part part, State state, const gfx::Rect& rect) const OVERRIDE;
39 38
40 // Draw the checkbox. 39 // Draw the checkbox.
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 // ownership of the pointers. 99 // ownership of the pointers.
101 typedef std::map<int, SkBitmap*> SkImageMap; 100 typedef std::map<int, SkBitmap*> SkImageMap;
102 mutable SkImageMap horizontal_bitmaps_; 101 mutable SkImageMap horizontal_bitmaps_;
103 102
104 DISALLOW_COPY_AND_ASSIGN(NativeThemeChromeos); 103 DISALLOW_COPY_AND_ASSIGN(NativeThemeChromeos);
105 }; 104 };
106 105
107 } // namespace gfx 106 } // namespace gfx
108 107
109 #endif // UI_GFX_NATIVE_THEME_CHROMEOS_H_ 108 #endif // UI_GFX_NATIVE_THEME_CHROMEOS_H_
OLDNEW
« no previous file with comments | « ui/gfx/native_theme_base.cc ('k') | ui/gfx/native_theme_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698