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

Unified Diff: views/view.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 | « views/view.h ('k') | views/view_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/view.cc
===================================================================
--- views/view.cc (revision 16147)
+++ views/view.cc (working copy)
@@ -10,7 +10,7 @@
#endif
#include "app/drag_drop_types.h"
-#include "app/gfx/chrome_canvas.h"
+#include "app/gfx/canvas.h"
#include "app/l10n_util.h"
#include "base/logging.h"
#include "base/message_loop.h"
@@ -299,28 +299,28 @@
SchedulePaint(gfx::Rect(x, y, w, h), false);
}
-void View::Paint(ChromeCanvas* canvas) {
+void View::Paint(gfx::Canvas* canvas) {
PaintBackground(canvas);
PaintFocusBorder(canvas);
PaintBorder(canvas);
}
-void View::PaintBackground(ChromeCanvas* canvas) {
+void View::PaintBackground(gfx::Canvas* canvas) {
if (background_.get())
background_->Paint(canvas, this);
}
-void View::PaintBorder(ChromeCanvas* canvas) {
+void View::PaintBorder(gfx::Canvas* canvas) {
if (border_.get())
border_->Paint(*this, canvas);
}
-void View::PaintFocusBorder(ChromeCanvas* canvas) {
+void View::PaintFocusBorder(gfx::Canvas* canvas) {
if (HasFocus() && IsFocusable())
canvas->DrawFocusRect(0, 0, width(), height());
}
-void View::PaintChildren(ChromeCanvas* canvas) {
+void View::PaintChildren(gfx::Canvas* canvas) {
int i, c;
for (i = 0, c = GetChildViewCount(); i < c; ++i) {
View* child = GetChildViewAt(i);
@@ -332,7 +332,7 @@
}
}
-void View::ProcessPaint(ChromeCanvas* canvas) {
+void View::ProcessPaint(gfx::Canvas* canvas) {
if (!IsVisible()) {
return;
}
« no previous file with comments | « views/view.h ('k') | views/view_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698