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

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

Issue 456473002: MacViews: Implement scrollbar theming. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Draw corner view, refine painting. Created 6 years, 4 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 | « no previous file | 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 "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 193
194 // Paint the common parts of the checkboxes and radio buttons. 194 // Paint the common parts of the checkboxes and radio buttons.
195 // borderRadius specifies how rounded the corners should be. 195 // borderRadius specifies how rounded the corners should be.
196 SkRect PaintCheckboxRadioCommon( 196 SkRect PaintCheckboxRadioCommon(
197 SkCanvas* canvas, 197 SkCanvas* canvas,
198 State state, 198 State state,
199 const gfx::Rect& rect, 199 const gfx::Rect& rect,
200 const SkScalar borderRadius) const; 200 const SkScalar borderRadius) const;
201 201
202 unsigned int scrollbar_width_; 202 unsigned int scrollbar_width_;
203
204 // The length of the arrow buttons, 0 means no buttons are drawn.
203 unsigned int scrollbar_button_length_; 205 unsigned int scrollbar_button_length_;
204 206
205 DISALLOW_COPY_AND_ASSIGN(NativeThemeBase); 207 DISALLOW_COPY_AND_ASSIGN(NativeThemeBase);
206 }; 208 };
207 209
208 } // namespace ui 210 } // namespace ui
209 211
210 #endif // UI_NATIVE_THEME_NATIVE_THEME_BASE_H_ 212 #endif // UI_NATIVE_THEME_NATIVE_THEME_BASE_H_
OLDNEW
« no previous file with comments | « no previous file | ui/native_theme/native_theme_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698