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

Side by Side Diff: ui/gfx/canvas.h

Issue 2026833003: MD - update checkbox and radio buttons (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sky review Created 4 years, 6 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/gfx/BUILD.gn ('k') | ui/gfx/canvas.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_CANVAS_H_ 5 #ifndef UI_GFX_CANVAS_H_
6 #define UI_GFX_CANVAS_H_ 6 #define UI_GFX_CANVAS_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 242
243 // Draws a line with the given |paint| parameters. 243 // Draws a line with the given |paint| parameters.
244 void DrawLine(const Point& p1, const Point& p2, const SkPaint& paint); 244 void DrawLine(const Point& p1, const Point& p2, const SkPaint& paint);
245 void DrawLine(const PointF& p1, const PointF& p2, const SkPaint& paint); 245 void DrawLine(const PointF& p1, const PointF& p2, const SkPaint& paint);
246 246
247 // Draws a circle with the given |paint| parameters. 247 // Draws a circle with the given |paint| parameters.
248 void DrawCircle(const Point& center_point, 248 void DrawCircle(const Point& center_point,
249 int radius, 249 int radius,
250 const SkPaint& paint); 250 const SkPaint& paint);
251 251
252 // Draws a circle with the given |paint| parameters.
253 void DrawCircle(const PointF& center_point,
254 float radius,
255 const SkPaint& paint);
256
252 // Draws the given rectangle with rounded corners of |radius| using the 257 // Draws the given rectangle with rounded corners of |radius| using the
253 // given |paint| parameters. DEPRECATED in favor of the RectF version below. 258 // given |paint| parameters. DEPRECATED in favor of the RectF version below.
254 // TODO(mgiuca): Remove this (http://crbug.com/553726). 259 // TODO(mgiuca): Remove this (http://crbug.com/553726).
255 void DrawRoundRect(const Rect& rect, int radius, const SkPaint& paint); 260 void DrawRoundRect(const Rect& rect, int radius, const SkPaint& paint);
256 261
257 // Draws the given rectangle with rounded corners of |radius| using the 262 // Draws the given rectangle with rounded corners of |radius| using the
258 // given |paint| parameters. 263 // given |paint| parameters.
259 void DrawRoundRect(const RectF& rect, float radius, const SkPaint& paint); 264 void DrawRoundRect(const RectF& rect, float radius, const SkPaint& paint);
260 265
261 // Draws the given path using the given |paint| parameters. 266 // Draws the given path using the given |paint| parameters.
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
449 float image_scale_; 454 float image_scale_;
450 455
451 sk_sp<SkCanvas> canvas_; 456 sk_sp<SkCanvas> canvas_;
452 457
453 DISALLOW_COPY_AND_ASSIGN(Canvas); 458 DISALLOW_COPY_AND_ASSIGN(Canvas);
454 }; 459 };
455 460
456 } // namespace gfx 461 } // namespace gfx
457 462
458 #endif // UI_GFX_CANVAS_H_ 463 #endif // UI_GFX_CANVAS_H_
OLDNEW
« no previous file with comments | « ui/gfx/BUILD.gn ('k') | ui/gfx/canvas.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698