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

Unified Diff: ui/gfx/canvas.cc

Issue 16051006: ui/gfx: Use base::string16 now that string16 was moved into base namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/gfx/canvas.h ('k') | ui/gfx/canvas_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/canvas.cc
diff --git a/ui/gfx/canvas.cc b/ui/gfx/canvas.cc
index aac2c035bb77f79c9ca1aed1005d365a248781a9..2b0f5046cf0ced0cccf96b9274e1b8965af1e667 100644
--- a/ui/gfx/canvas.cc
+++ b/ui/gfx/canvas.cc
@@ -87,7 +87,7 @@ void Canvas::RecreateBackingCanvas(const gfx::Size& size,
}
// static
-int Canvas::GetStringWidth(const string16& text, const gfx::Font& font) {
+int Canvas::GetStringWidth(const base::string16& text, const gfx::Font& font) {
int width = 0, height = 0;
Canvas::SizeStringInt(text, font, &width, &height, 0, NO_ELLIPSIS);
return width;
@@ -409,14 +409,14 @@ void Canvas::DrawImageInPath(const gfx::ImageSkia& image,
canvas_->drawPath(path, p);
}
-void Canvas::DrawStringInt(const string16& text,
+void Canvas::DrawStringInt(const base::string16& text,
const gfx::Font& font,
SkColor color,
int x, int y, int w, int h) {
DrawStringInt(text, font, color, x, y, w, h, DefaultCanvasTextAlignment());
}
-void Canvas::DrawStringInt(const string16& text,
+void Canvas::DrawStringInt(const base::string16& text,
const gfx::Font& font,
SkColor color,
const gfx::Rect& display_rect) {
@@ -424,7 +424,7 @@ void Canvas::DrawStringInt(const string16& text,
display_rect.width(), display_rect.height());
}
-void Canvas::DrawStringInt(const string16& text,
+void Canvas::DrawStringInt(const base::string16& text,
const gfx::Font& font,
SkColor color,
int x, int y, int w, int h,
« no previous file with comments | « ui/gfx/canvas.h ('k') | ui/gfx/canvas_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698