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

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

Issue 2527513002: Update ash shelf/tray focus rects. (Closed)
Patch Set: fixes 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
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 416 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 // DEPRECATED in favor of the RectF version below.
432 // TODO(funkysidd): Remove this (http://crbug.com/553726) 432 // TODO(funkysidd): Remove this (http://crbug.com/553726)
433 void DrawSolidFocusRect(const Rect& rect, SkColor color); 433 void DrawSolidFocusRect(const Rect& rect, SkColor color);
434 434
435 // Draws a |rect| in the specified region with the specified |color| with a 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. 436 // with of one logical pixel which might be more device pixels.
437 void DrawSolidFocusRect(const RectF& rect, SkColor color); 437 void DrawSolidFocusRect(const RectF& rect, SkColor color, float thickness);
438 438
439 // Tiles the image in the specified region. 439 // Tiles the image in the specified region.
440 // Parameters are specified relative to current canvas scale not in pixels. 440 // Parameters are specified relative to current canvas scale not in pixels.
441 // Thus, |x| is 2 pixels if canvas scale = 2 & |x| = 1. 441 // Thus, |x| is 2 pixels if canvas scale = 2 & |x| = 1.
442 void TileImageInt(const ImageSkia& image, 442 void TileImageInt(const ImageSkia& image,
443 int x, 443 int x,
444 int y, 444 int y,
445 int w, 445 int w,
446 int h); 446 int h);
447 void TileImageInt(const ImageSkia& image, 447 void TileImageInt(const ImageSkia& image,
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
517 // but canvas_owner_ will be null. 517 // but canvas_owner_ will be null.
518 std::unique_ptr<SkCanvas> canvas_owner_; 518 std::unique_ptr<SkCanvas> canvas_owner_;
519 SkCanvas* canvas_; 519 SkCanvas* canvas_;
520 520
521 DISALLOW_COPY_AND_ASSIGN(Canvas); 521 DISALLOW_COPY_AND_ASSIGN(Canvas);
522 }; 522 };
523 523
524 } // namespace gfx 524 } // namespace gfx
525 525
526 #endif // UI_GFX_CANVAS_H_ 526 #endif // UI_GFX_CANVAS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698