Index: views/view.h |
diff --git a/views/view.h b/views/view.h |
index fa37cf02e0c4acc4b81f80e7bb695df3293e5ae8..fba0470c02330cb57d1af8fc588befe9684b59fa 100644 |
--- a/views/view.h |
+++ b/views/view.h |
@@ -260,6 +260,12 @@ class VIEWS_EXPORT View : public AcceleratorTarget { |
// painting. |
void SetFillsBoundsOpaquely(bool fills_bounds_opaquely); |
+ // Sets whether this view is painting. |
sky
2011/08/17 16:39:42
Is this still needed? If so, what case does it cov
|
+ void set_painting_enabled(bool enabled) { painting_enabled_ = enabled; } |
+ |
+ // Returns whether the view is painting. |
+ bool painting_enabled() const { return painting_enabled_; } |
+ |
// Transformations ----------------------------------------------------------- |
// Methods for setting transformations for a view (e.g. rotation, scaling). |
@@ -463,6 +469,8 @@ class VIEWS_EXPORT View : public AcceleratorTarget { |
virtual void SchedulePaint(); |
virtual void SchedulePaintInRect(const gfx::Rect& r); |
+ virtual void ScheduleComposite(); |
sky
2011/08/17 16:39:42
Description?
|
+ |
// 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 |
@@ -1431,6 +1439,9 @@ class VIEWS_EXPORT View : public AcceleratorTarget { |
// even though it may not be normally focusable. |
bool accessibility_focusable_; |
+ // Whether this view can be painted. Can be disabled during an animation. |
+ bool painting_enabled_; |
+ |
// Context menus ------------------------------------------------------------- |
// The menu controller. |