Chromium Code Reviews| Index: views/view.h |
| diff --git a/views/view.h b/views/view.h |
| index 879242e24f3d32c4a31e37ea75b0cad48f5cf785..ef29f9065f2a61ab3c96585681ba7d505768acdc 100644 |
| --- a/views/view.h |
| +++ b/views/view.h |
| @@ -242,6 +242,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); |
| + |
| + // Returns whether the view is painting. |
| + bool IsPaintingEnabled() const; |
| + |
| // Transformations ----------------------------------------------------------- |
| // Methods for setting transformations for a view (e.g. rotation, scaling). |
| @@ -440,6 +446,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 |
| @@ -1408,6 +1417,9 @@ class View : public AcceleratorTarget { |
| // even though it may not be normally focusable. |
| bool accessibility_focusable_; |
| + // Whether this view can be painted |
|
sadrul
2011/07/15 15:25:48
Perhaps leave a note explaining it can be used dur
|
| + bool painting_enabled_; |
| + |
| // Context menus ------------------------------------------------------------- |
| // The menu controller. |