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

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

Issue 8597015: Add a new GetSystemColor method to native theme. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more code motion Created 9 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 | Annotate | Revision Log
« no previous file with comments | « ui/gfx/native_theme.h ('k') | ui/gfx/native_theme_base.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) 2011 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_BASE_H_ 5 #ifndef UI_GFX_NATIVE_THEME_BASE_H_
6 #define UI_GFX_NATIVE_THEME_BASE_H_ 6 #define UI_GFX_NATIVE_THEME_BASE_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 "skia/ext/platform_canvas.h" 10 #include "skia/ext/platform_canvas.h"
11 #include "ui/gfx/native_theme.h" 11 #include "ui/gfx/native_theme.h"
12 12
13 namespace gfx { 13 namespace gfx {
14 class Rect; 14 class Rect;
15 class Size; 15 class Size;
16 16
17 // Theme support for non-Windows toolkits. 17 // Theme support for non-Windows toolkits.
18 class NativeThemeBase : public NativeTheme { 18 class NativeThemeBase : public NativeTheme {
19 public: 19 public:
20 // NativeTheme implementation: 20 // NativeTheme implementation:
21 virtual gfx::Size GetPartSize(Part part, 21 virtual gfx::Size GetPartSize(Part part,
22 State state, 22 State state,
23 const ExtraParams& extra) const OVERRIDE; 23 const ExtraParams& extra) const OVERRIDE;
24 virtual void Paint(SkCanvas* canvas, 24 virtual void Paint(SkCanvas* canvas,
25 Part part, 25 Part part,
26 State state, 26 State state,
27 const gfx::Rect& rect, 27 const gfx::Rect& rect,
28 const ExtraParams& extra) const OVERRIDE; 28 const ExtraParams& extra) const OVERRIDE;
29 virtual SkColor GetSystemColor(ColorId color_id) const OVERRIDE;
29 30
30 protected: 31 protected:
31 NativeThemeBase(); 32 NativeThemeBase();
32 virtual ~NativeThemeBase(); 33 virtual ~NativeThemeBase();
33 34
34 // Draw the arrow. Used by scrollbar and inner spin button. 35 // Draw the arrow. Used by scrollbar and inner spin button.
35 virtual void PaintArrowButton( 36 virtual void PaintArrowButton(
36 SkCanvas* gc, 37 SkCanvas* gc,
37 const gfx::Rect& rect, 38 const gfx::Rect& rect,
38 Part direction, 39 Part direction,
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 158
158 static unsigned int scrollbar_width_; 159 static unsigned int scrollbar_width_;
159 static unsigned int button_length_; 160 static unsigned int button_length_;
160 161
161 DISALLOW_COPY_AND_ASSIGN(NativeThemeBase); 162 DISALLOW_COPY_AND_ASSIGN(NativeThemeBase);
162 }; 163 };
163 164
164 } // namespace gfx 165 } // namespace gfx
165 166
166 #endif // UI_GFX_NATIVE_THEME_BASE_H_ 167 #endif // UI_GFX_NATIVE_THEME_BASE_H_
OLDNEW
« no previous file with comments | « ui/gfx/native_theme.h ('k') | ui/gfx/native_theme_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698