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

Unified Diff: views/view.h

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 | « chrome/browser/ui/views/tabs/tab_strip.cc ('k') | views/view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/view.h
===================================================================
--- views/view.h (revision 75035)
+++ views/view.h (working copy)
@@ -522,6 +522,10 @@
virtual void SchedulePaint();
virtual void SchedulePaintInRect(const gfx::Rect& r, bool urgent);
+ // Responsible for calling Paint() on child Views. Override to control the
+ // order child Views are painted.
+ virtual void PaintChildren(gfx::Canvas* canvas);
+
// Override to provide rendering in any part of the View's bounds. Typically
// this is the "contents" of the view. If you override this method you will
// have to call the subsequent OnPaint*() methods manually.
@@ -542,17 +546,13 @@
// Paint this View immediately.
virtual void PaintNow();
- // This method is the main entry point to process paint for this
- // view and its children. This method is called by the painting
- // system. You should call this only if you want to draw a sub tree
- // inside a custom graphics.
- // To customize painting override either the Paint or PaintChildren method,
- // not this one.
- virtual void ProcessPaint(gfx::Canvas* canvas);
+ // TODO(beng): move to protected.
+ // Called by the framework to paint a View. Performs translation and clipping
+ // for View coordinates and language direction as required, allows the View
+ // to paint itself via the various OnPaint*() event handlers and then paints
+ // the hierarchy beneath it.
+ virtual void Paint(gfx::Canvas* canvas);
- // Paint the View's child Views, in reverse order.
- virtual void PaintChildren(gfx::Canvas* canvas);
-
// The background object is owned by this object and may be NULL.
void set_background(Background* b) { background_.reset(b); }
const Background* background() const { return background_.get(); }
« no previous file with comments | « chrome/browser/ui/views/tabs/tab_strip.cc ('k') | views/view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698