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

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

Issue 2680943002: ui: Clean up naming of paint-related identifiers (Closed)
Patch Set: Created 3 years, 10 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
« no previous file with comments | « ui/native_theme/native_theme_aura.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 <memory> 8 #include <memory>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 private: 162 private:
163 friend class NativeThemeAuraTest; 163 friend class NativeThemeAuraTest;
164 164
165 SkPath PathForArrow(const gfx::Rect& rect, Part direction) const; 165 SkPath PathForArrow(const gfx::Rect& rect, Part direction) const;
166 gfx::Rect BoundingRectForArrow(const gfx::Rect& rect) const; 166 gfx::Rect BoundingRectForArrow(const gfx::Rect& rect) const;
167 167
168 void DrawVertLine(cc::PaintCanvas* canvas, 168 void DrawVertLine(cc::PaintCanvas* canvas,
169 int x, 169 int x,
170 int y1, 170 int y1,
171 int y2, 171 int y2,
172 const cc::PaintFlags& paint) const; 172 const cc::PaintFlags& flags) const;
173 void DrawHorizLine(cc::PaintCanvas* canvas, 173 void DrawHorizLine(cc::PaintCanvas* canvas,
174 int x1, 174 int x1,
175 int x2, 175 int x2,
176 int y, 176 int y,
177 const cc::PaintFlags& paint) const; 177 const cc::PaintFlags& flags) const;
178 void DrawBox(cc::PaintCanvas* canvas, 178 void DrawBox(cc::PaintCanvas* canvas,
179 const gfx::Rect& rect, 179 const gfx::Rect& rect,
180 const cc::PaintFlags& paint) const; 180 const cc::PaintFlags& flags) const;
181 SkScalar Clamp(SkScalar value, 181 SkScalar Clamp(SkScalar value,
182 SkScalar min, 182 SkScalar min,
183 SkScalar max) const; 183 SkScalar max) const;
184 SkColor OutlineColor(SkScalar* hsv1, SkScalar* hsv2) const; 184 SkColor OutlineColor(SkScalar* hsv1, SkScalar* hsv2) const;
185 185
186 // Paint the common parts of the checkboxes and radio buttons. 186 // Paint the common parts of the checkboxes and radio buttons.
187 // borderRadius specifies how rounded the corners should be. 187 // borderRadius specifies how rounded the corners should be.
188 SkRect PaintCheckboxRadioCommon(cc::PaintCanvas* canvas, 188 SkRect PaintCheckboxRadioCommon(cc::PaintCanvas* canvas,
189 State state, 189 State state,
190 const gfx::Rect& rect, 190 const gfx::Rect& rect,
191 const SkScalar borderRadius) const; 191 const SkScalar borderRadius) const;
192 192
193 // The length of the arrow buttons, 0 means no buttons are drawn. 193 // The length of the arrow buttons, 0 means no buttons are drawn.
194 int scrollbar_button_length_; 194 int scrollbar_button_length_;
195 195
196 DISALLOW_COPY_AND_ASSIGN(NativeThemeBase); 196 DISALLOW_COPY_AND_ASSIGN(NativeThemeBase);
197 }; 197 };
198 198
199 } // namespace ui 199 } // namespace ui
200 200
201 #endif // UI_NATIVE_THEME_NATIVE_THEME_BASE_H_ 201 #endif // UI_NATIVE_THEME_NATIVE_THEME_BASE_H_
OLDNEW
« no previous file with comments | « ui/native_theme/native_theme_aura.cc ('k') | ui/native_theme/native_theme_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698