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

Unified Diff: chrome/browser/gtk/sad_tab_gtk.cc

Issue 113443: ChromeCanvas->gfx::Canvas (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 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 | « chrome/browser/gtk/download_item_gtk.cc ('k') | chrome/browser/gtk/tabs/tab_renderer_gtk.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/gtk/sad_tab_gtk.cc
===================================================================
--- chrome/browser/gtk/sad_tab_gtk.cc (revision 16147)
+++ chrome/browser/gtk/sad_tab_gtk.cc (working copy)
@@ -6,8 +6,8 @@
#include <string>
-#include "app/gfx/chrome_canvas.h"
-#include "app/gfx/chrome_font.h"
+#include "app/gfx/canvas.h"
+#include "app/gfx/font.h"
#include "app/l10n_util.h"
#include "app/resource_bundle.h"
#include "base/gfx/size.h"
@@ -80,7 +80,7 @@
}
gboolean SadTabGtk::OnExpose(GtkWidget* widget, GdkEventExpose* event) const {
- ChromeCanvasPaint canvas(event);
+ gfx::CanvasPaint canvas(event);
SkPaint paint;
paint.setShader(skia::CreateGradientShader(0, height_,
kBackgroundColor,
@@ -107,7 +107,7 @@
title_y_,
width_,
sad_tab_constants.title_font.height(),
- ChromeCanvas::TEXT_ALIGN_CENTER);
+ gfx::Canvas::TEXT_ALIGN_CENTER);
// Paint the explanatory message.
canvas.DrawStringInt(
@@ -118,9 +118,9 @@
message_y_,
width_,
99999, // Let the height be large, and we'll clip if needed.
- ChromeCanvas::TEXT_ALIGN_CENTER |
- ChromeCanvas::MULTI_LINE |
- ChromeCanvas::TEXT_VALIGN_TOP);
+ gfx::Canvas::TEXT_ALIGN_CENTER |
+ gfx::Canvas::MULTI_LINE |
+ gfx::Canvas::TEXT_VALIGN_TOP);
return TRUE;
}
« no previous file with comments | « chrome/browser/gtk/download_item_gtk.cc ('k') | chrome/browser/gtk/tabs/tab_renderer_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698