summaryrefslogtreecommitdiffstats
path: root/views/view.cc
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-16 00:13:01 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-16 00:13:01 +0000
commita8add2b949474a43d9852966b98c2774af060e1e (patch)
treee50a9987226f3d32b4ec8fbc188403ca67490792 /views/view.cc
parente118ff727561aa0472333ea0fef9ff3b9ed8c541 (diff)
downloadchromium_src-a8add2b949474a43d9852966b98c2774af060e1e.zip
chromium_src-a8add2b949474a43d9852966b98c2774af060e1e.tar.gz
chromium_src-a8add2b949474a43d9852966b98c2774af060e1e.tar.bz2
Rename Paint* -> OnPaint*
http://crbug.com/72040 TEST=none TBR=sky Review URL: http://codereview.chromium.org/6499030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75033 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/view.cc')
-rw-r--r--views/view.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/views/view.cc b/views/view.cc
index 6ab44bf..594c6d9 100644
--- a/views/view.cc
+++ b/views/view.cc
@@ -629,23 +629,23 @@ void View::SchedulePaintInRect(const gfx::Rect& r, bool urgent) {
}
}
-void View::Paint(gfx::Canvas* canvas) {
- PaintBackground(canvas);
- PaintFocusBorder(canvas);
- PaintBorder(canvas);
+void View::OnPaint(gfx::Canvas* canvas) {
+ OnPaintBackground(canvas);
+ OnPaintFocusBorder(canvas);
+ OnPaintBorder(canvas);
}
-void View::PaintBackground(gfx::Canvas* canvas) {
+void View::OnPaintBackground(gfx::Canvas* canvas) {
if (background_.get())
background_->Paint(canvas, this);
}
-void View::PaintBorder(gfx::Canvas* canvas) {
+void View::OnPaintBorder(gfx::Canvas* canvas) {
if (border_.get())
border_->Paint(*this, canvas);
}
-void View::PaintFocusBorder(gfx::Canvas* canvas) {
+void View::OnPaintFocusBorder(gfx::Canvas* canvas) {
if (HasFocus() && (IsFocusable() || IsAccessibilityFocusableInRootView()))
canvas->DrawFocusRect(0, 0, width(), height());
}
@@ -689,7 +689,7 @@ void View::ProcessPaint(gfx::Canvas* canvas) {
canvas->ScaleInt(-1, 1);
}
- Paint(canvas);
+ OnPaint(canvas);
// We must undo the canvas mirroring once the View is done painting so that
// we don't pass the canvas with the mirrored transform to Views that