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

Unified Diff: views/view.cc

Issue 6529037: Rename ProcessPaint to Paint() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 10 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 75035)
+++ views/view.cc (working copy)
@@ -629,6 +629,17 @@
}
}
+void View::PaintChildren(gfx::Canvas* canvas) {
+ for (int i = 0, count = child_count(); i < count; ++i) {
+ View* child = GetChildViewAt(i);
+ if (!child) {
+ NOTREACHED() << "Should not have a NULL child View for index in bounds";
+ continue;
+ }
+ child->Paint(canvas);
+ }
+}
+
void View::OnPaint(gfx::Canvas* canvas) {
OnPaintBackground(canvas);
OnPaintFocusBorder(canvas);
@@ -658,7 +669,7 @@
parent()->PaintNow();
}
-void View::ProcessPaint(gfx::Canvas* canvas) {
+void View::Paint(gfx::Canvas* canvas) {
if (!IsVisible())
return;
@@ -703,17 +714,6 @@
canvas->Restore();
}
-void View::PaintChildren(gfx::Canvas* canvas) {
- for (int i = 0, count = child_count(); i < count; ++i) {
- View* child = GetChildViewAt(i);
- if (!child) {
- NOTREACHED() << "Should not have a NULL child View for index in bounds";
- continue;
- }
- child->ProcessPaint(canvas);
- }
-}
-
ThemeProvider* View::GetThemeProvider() const {
const Widget* widget = GetWidget();
return widget ? widget->GetThemeProvider() : NULL;
« 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