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

Unified Diff: views/view.h

Issue 7273073: Animated Rotation (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Do nothing for unexpected screen orientations. Created 9 years, 5 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 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.

Powered by Google App Engine
This is Rietveld 408576698