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

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

Issue 10310136: ui: Move NativeTheme files into ui/base/native_theme/ directory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix win Created 8 years, 7 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/base/native_theme/native_theme_aura.cc ('k') | ui/base/native_theme/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) 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_GFX_NATIVE_THEME_BASE_H_ 5 #ifndef UI_BASE_NATIVE_THEME_NATIVE_THEME_BASE_H_
6 #define UI_GFX_NATIVE_THEME_BASE_H_ 6 #define UI_BASE_NATIVE_THEME_NATIVE_THEME_BASE_H_
7 #pragma once
7 8
8 #include "base/basictypes.h" 9 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
10 #include "skia/ext/platform_canvas.h" 11 #include "skia/ext/platform_canvas.h"
11 #include "ui/gfx/native_theme.h" 12 #include "ui/base/native_theme/native_theme.h"
12 13
13 namespace gfx { 14 namespace gfx {
14 class Rect; 15 class Rect;
15 class Size; 16 class Size;
17 }
18
19 namespace ui {
16 20
17 // Theme support for non-Windows toolkits. 21 // Theme support for non-Windows toolkits.
18 class NativeThemeBase : public NativeTheme { 22 class NativeThemeBase : public NativeTheme {
19 public: 23 public:
20 // NativeTheme implementation: 24 // NativeTheme implementation:
21 virtual gfx::Size GetPartSize(Part part, 25 virtual gfx::Size GetPartSize(Part part,
22 State state, 26 State state,
23 const ExtraParams& extra) const OVERRIDE; 27 const ExtraParams& extra) const OVERRIDE;
24 virtual void Paint(SkCanvas* canvas, 28 virtual void Paint(SkCanvas* canvas,
25 Part part, 29 Part part,
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 SkScalar min, 159 SkScalar min,
156 SkScalar max) const; 160 SkScalar max) const;
157 SkColor OutlineColor(SkScalar* hsv1, SkScalar* hsv2) const; 161 SkColor OutlineColor(SkScalar* hsv1, SkScalar* hsv2) const;
158 162
159 unsigned int scrollbar_width_; 163 unsigned int scrollbar_width_;
160 unsigned int scrollbar_button_length_; 164 unsigned int scrollbar_button_length_;
161 165
162 DISALLOW_COPY_AND_ASSIGN(NativeThemeBase); 166 DISALLOW_COPY_AND_ASSIGN(NativeThemeBase);
163 }; 167 };
164 168
165 } // namespace gfx 169 } // namespace ui
166 170
167 #endif // UI_GFX_NATIVE_THEME_BASE_H_ 171 #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/base/native_theme/native_theme_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698