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

Side by Side Diff: ui/base/native_theme/native_theme_base.h

Issue 11367041: Adds View::GetNativeTheme() to get the NativeTheme. The interesting (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix include Created 8 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 | Annotate | Revision Log
« no previous file with comments | « ui/base/native_theme/native_theme_aura.cc ('k') | ui/ui.gyp » ('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) 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_BASE_NATIVE_THEME_NATIVE_THEME_BASE_H_ 5 #ifndef UI_BASE_NATIVE_THEME_NATIVE_THEME_BASE_H_
6 #define UI_BASE_NATIVE_THEME_NATIVE_THEME_BASE_H_ 6 #define UI_BASE_NATIVE_THEME_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/base/native_theme/native_theme.h" 11 #include "ui/base/native_theme/native_theme.h"
12 12
13 namespace gfx { 13 namespace gfx {
14 class ImageSkia; 14 class ImageSkia;
15 class Rect; 15 class Rect;
16 class Size; 16 class Size;
17 } 17 }
18 18
19 namespace ui { 19 namespace ui {
20 20
21 // Theme support for non-Windows toolkits. 21 // Theme support for non-Windows toolkits.
22 class NativeThemeBase : public NativeTheme { 22 class UI_EXPORT NativeThemeBase : public NativeTheme {
23 public: 23 public:
24 // NativeTheme implementation: 24 // NativeTheme implementation:
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 void Paint(SkCanvas* canvas, 28 virtual void Paint(SkCanvas* canvas,
29 Part part, 29 Part part,
30 State state, 30 State state,
31 const gfx::Rect& rect, 31 const gfx::Rect& rect,
32 const ExtraParams& extra) const OVERRIDE; 32 const ExtraParams& extra) const OVERRIDE;
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 190
191 unsigned int scrollbar_width_; 191 unsigned int scrollbar_width_;
192 unsigned int scrollbar_button_length_; 192 unsigned int scrollbar_button_length_;
193 193
194 DISALLOW_COPY_AND_ASSIGN(NativeThemeBase); 194 DISALLOW_COPY_AND_ASSIGN(NativeThemeBase);
195 }; 195 };
196 196
197 } // namespace ui 197 } // namespace ui
198 198
199 #endif // UI_BASE_NATIVE_THEME_NATIVE_THEME_BASE_H_ 199 #endif // UI_BASE_NATIVE_THEME_NATIVE_THEME_BASE_H_
OLDNEW
« no previous file with comments | « ui/base/native_theme/native_theme_aura.cc ('k') | ui/ui.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698