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

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

Issue 2527513002: Update ash shelf/tray focus rects. (Closed)
Patch Set: rebase Created 4 years 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 | « ash/common/system/user/button_from_view.cc ('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 410 matching lines...) Expand 10 before | Expand all | Expand 10 after
421 // Draws a dotted gray rectangle used for focus purposes. 421 // Draws a dotted gray rectangle used for focus purposes.
422 // DEPRECATED in favor of the RectF version below. 422 // DEPRECATED in favor of the RectF version below.
423 // TODO(funkysidd): Remove this (http://crbug.com/553726) 423 // TODO(funkysidd): Remove this (http://crbug.com/553726)
424 void DrawFocusRect(const Rect& rect); 424 void DrawFocusRect(const Rect& rect);
425 425
426 // Draws a dotted gray rectangle used for focus purposes. 426 // Draws a dotted gray rectangle used for focus purposes.
427 void DrawFocusRect(const RectF& rect); 427 void DrawFocusRect(const RectF& rect);
428 428
429 // Draws a |rect| in the specified region with the specified |color| with a 429 // Draws a |rect| in the specified region with the specified |color| with a
430 // with of one logical pixel which might be more device pixels. 430 // with of one logical pixel which might be more device pixels.
431 // DEPRECATED in favor of the RectF version below. 431 void DrawSolidFocusRect(const RectF& rect, SkColor color, float thickness);
432 // TODO(funkysidd): Remove this (http://crbug.com/553726)
433 void DrawSolidFocusRect(const Rect& rect, SkColor color);
434
435 // Draws a |rect| in the specified region with the specified |color| with a
436 // with of one logical pixel which might be more device pixels.
437 void DrawSolidFocusRect(const RectF& rect, SkColor color);
438 432
439 // Tiles the image in the specified region. 433 // Tiles the image in the specified region.
440 // Parameters are specified relative to current canvas scale not in pixels. 434 // Parameters are specified relative to current canvas scale not in pixels.
441 // Thus, |x| is 2 pixels if canvas scale = 2 & |x| = 1. 435 // Thus, |x| is 2 pixels if canvas scale = 2 & |x| = 1.
442 void TileImageInt(const ImageSkia& image, 436 void TileImageInt(const ImageSkia& image,
443 int x, 437 int x,
444 int y, 438 int y,
445 int w, 439 int w,
446 int h); 440 int h);
447 void TileImageInt(const ImageSkia& image, 441 void TileImageInt(const ImageSkia& image,
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
517 // but canvas_owner_ will be null. 511 // but canvas_owner_ will be null.
518 std::unique_ptr<SkCanvas> canvas_owner_; 512 std::unique_ptr<SkCanvas> canvas_owner_;
519 SkCanvas* canvas_; 513 SkCanvas* canvas_;
520 514
521 DISALLOW_COPY_AND_ASSIGN(Canvas); 515 DISALLOW_COPY_AND_ASSIGN(Canvas);
522 }; 516 };
523 517
524 } // namespace gfx 518 } // namespace gfx
525 519
526 #endif // UI_GFX_CANVAS_H_ 520 #endif // UI_GFX_CANVAS_H_
OLDNEW
« no previous file with comments | « ash/common/system/user/button_from_view.cc ('k') | ui/gfx/canvas.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698