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

Unified Diff: views/view.h

Issue 7273073: Animated Rotation (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Use new minimal sensor API 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 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.

Powered by Google App Engine
This is Rietveld 408576698