Chromium Code Reviews| Index: views/view.h |
| diff --git a/views/view.h b/views/view.h |
| index a277a6908ac6d135043769ae6a8a4ecc59251ed7..4129b9dcd4abc970528cb1c4a1bec868b63edc10 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 SetPaintingEnabled(bool enabled); |
|
tfarina
2011/07/21 21:58:31
this should have been set_painting_enabled
|
| + |
| + // Returns whether the view is painting. |
| + bool IsPaintingEnabled() const; |
|
tfarina
2011/07/21 21:58:31
and this just painting_enabled()
And both inlined
|
| + |
| // 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. |