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

Unified Diff: views/view.h

Issue 7273073: Animated Rotation (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Address reviewer comments 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
« no previous file with comments | « views/paint_lock.cc ('k') | views/view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/view.h
diff --git a/views/view.h b/views/view.h
index c188531537a91bf0919c72854bf614d7a504dafb..a3e8151dcd9e4a5c362d78af8fd08121e7eeb481 100644
--- a/views/view.h
+++ b/views/view.h
@@ -1104,6 +1104,7 @@ class VIEWS_EXPORT View : public AcceleratorTarget {
friend class FocusManager;
friend class ViewStorage;
friend class Widget;
+ friend class PaintLock;
// Used to track a drag. RootView passes this into
// ProcessMousePressed/Dragged.
@@ -1229,6 +1230,11 @@ class VIEWS_EXPORT View : public AcceleratorTarget {
// Accelerated painting ------------------------------------------------------
+ // Disables painting during time critical operations. Used by PaintLock.
+ // TODO(vollick) Ideally, the widget would not dispatch paints into the
+ // hierarchy during time critical operations and this would not be needed.
+ void set_painting_enabled(bool enabled) { painting_enabled_ = enabled; }
+
// Returns true if this view should paint to layer.
bool ShouldPaintToLayer() const;
@@ -1353,6 +1359,9 @@ class VIEWS_EXPORT View : public AcceleratorTarget {
// Whether this view is enabled.
bool enabled_;
+ // Whether this view is painting.
+ bool painting_enabled_;
+
// Whether or not RegisterViewForVisibleBoundsNotification on the RootView
// has been invoked.
bool registered_for_visible_bounds_notification_;
« no previous file with comments | « views/paint_lock.cc ('k') | views/view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698