Index: views/view.h |
diff --git a/views/view.h b/views/view.h |
index a277a6908ac6d135043769ae6a8a4ecc59251ed7..4b5cacd878be30daa0638e7756b2751366d43780 100644 |
--- a/views/view.h |
+++ b/views/view.h |
@@ -250,6 +250,12 @@ class View : public AcceleratorTarget { |
// Returns whether the view is enabled. |
virtual bool IsEnabled() const; |
+ // Sets whether this view is painting. |
+ void set_painting_enabled(bool enabled) { painting_enabled_ = enabled; } |
sky
2011/07/27 22:16:19
This makes painting that much more complicated. Se
|
+ |
+ // 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). |
@@ -448,6 +454,9 @@ class View : public AcceleratorTarget { |
virtual void SchedulePaint(); |
virtual void SchedulePaintInRect(const gfx::Rect& r); |
+ virtual void ScheduleComposite(); |
+ virtual void ScheduleCompositeInRect(const gfx::Rect& r); |
+ |
// 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 |
@@ -1416,6 +1425,9 @@ class 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. |