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

Unified Diff: views/view.h

Issue 7273073: Animated Rotation (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Removed unnecessary include Created 9 years, 4 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
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.

Powered by Google App Engine
This is Rietveld 408576698