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

Unified Diff: ui/views/controls/button/text_button.cc

Issue 9705063: ui/gfx: Rename almost all entries from gfx::CanvasSkia to gfx::Canvas. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/gfx/render_text_linux.cc ('k') | ui/views/controls/glow_hover_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/button/text_button.cc
diff --git a/ui/views/controls/button/text_button.cc b/ui/views/controls/button/text_button.cc
index a1549eb61727e8bfbe22b109d162bf324c64be89..6339317270c209e43135f68acd0656aea7c990d3 100644
--- a/ui/views/controls/button/text_button.cc
+++ b/ui/views/controls/button/text_button.cc
@@ -410,7 +410,7 @@ void TextButtonBase::CalculateTextSize(gfx::Size* text_size, int max_width) {
if (!multi_line_)
flags |= gfx::Canvas::NO_ELLIPSIS;
- gfx::CanvasSkia::SizeStringInt(text_, font_, &w, &h, flags);
+ gfx::Canvas::SizeStringInt(text_, font_, &w, &h, flags);
// Add 2 extra pixels to width and height when text halo is used.
if (has_text_halo_) {
@@ -509,7 +509,7 @@ void TextButtonBase::PaintButton(gfx::Canvas* canvas, PaintButtonMode mode) {
SkColor text_color = (show_multiple_icon_states_ &&
(state() == BS_HOT || state() == BS_PUSHED)) ? color_hover_ : color_;
- int draw_string_flags = gfx::CanvasSkia::DefaultCanvasTextAlignment() |
+ int draw_string_flags = gfx::Canvas::DefaultCanvasTextAlignment() |
ComputeCanvasStringFlags();
if (mode == PB_FOR_DRAG) {
« no previous file with comments | « ui/gfx/render_text_linux.cc ('k') | ui/views/controls/glow_hover_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698