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

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

Issue 12383065: Remove old-checkbox-style flag, code and assets (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix whitespace and merge with trunk Created 7 years, 9 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/ui_base_switches.cc ('k') | ui/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_NATIVE_THEME_NATIVE_THEME_BASE_H_ 5 #ifndef UI_NATIVE_THEME_NATIVE_THEME_BASE_H_
6 #define UI_NATIVE_THEME_NATIVE_THEME_BASE_H_ 6 #define UI_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"
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 int y, 154 int y,
155 const SkPaint& paint) const; 155 const SkPaint& paint) const;
156 void DrawBox(SkCanvas* canvas, 156 void DrawBox(SkCanvas* canvas,
157 const gfx::Rect& rect, 157 const gfx::Rect& rect,
158 const SkPaint& paint) const; 158 const SkPaint& paint) const;
159 SkScalar Clamp(SkScalar value, 159 SkScalar Clamp(SkScalar value,
160 SkScalar min, 160 SkScalar min,
161 SkScalar max) const; 161 SkScalar max) const;
162 SkColor OutlineColor(SkScalar* hsv1, SkScalar* hsv2) const; 162 SkColor OutlineColor(SkScalar* hsv1, SkScalar* hsv2) const;
163 163
164 // Returns whether the new vector-graphics based checkbox and radio button 164 // Paint the common parts of the checkboxes and radio buttons.
165 // style is enabled.
166 bool IsNewCheckboxStyleEnabled(SkCanvas* canvas) const;
167
168 // Paint the common parts of the new (experimental) checkboxes and radio
169 // buttons.
170 // borderRadius specifies how rounded the corners should be. 165 // borderRadius specifies how rounded the corners should be.
171 SkRect PaintCheckboxRadioNewCommon( 166 SkRect PaintCheckboxRadioCommon(
172 SkCanvas* canvas, 167 SkCanvas* canvas,
173 State state, 168 State state,
174 const gfx::Rect& rect, 169 const gfx::Rect& rect,
175 const SkScalar borderRadius) const; 170 const SkScalar borderRadius) const;
176 171
177 // Paint an (experimental) vector-graphics based checkbox on the supplied
178 // canvas at the specified co-ordinates.
179 void PaintCheckboxNew(
180 SkCanvas* canvas,
181 State state,
182 const gfx::Rect& rect,
183 const ButtonExtraParams& button) const;
184
185 // Paint an (experimental) vector-graphics based radio button on the
186 // supplied canbas at the specified co-ordinates.
187 void PaintRadioNew(
188 SkCanvas* canvas,
189 State state,
190 const gfx::Rect& rect,
191 const ButtonExtraParams& button) const;
192
193 unsigned int scrollbar_width_; 172 unsigned int scrollbar_width_;
194 unsigned int scrollbar_button_length_; 173 unsigned int scrollbar_button_length_;
195 174
196 DISALLOW_COPY_AND_ASSIGN(NativeThemeBase); 175 DISALLOW_COPY_AND_ASSIGN(NativeThemeBase);
197 }; 176 };
198 177
199 } // namespace ui 178 } // namespace ui
200 179
201 #endif // UI_NATIVE_THEME_NATIVE_THEME_BASE_H_ 180 #endif // UI_NATIVE_THEME_NATIVE_THEME_BASE_H_
OLDNEW
« no previous file with comments | « ui/base/ui_base_switches.cc ('k') | ui/native_theme/native_theme_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698