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

Unified Diff: views/widget/widget.h

Issue 8351042: Gets disable inactive frame rendering to work correctly for aura. This (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Tweaks Created 9 years, 2 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/widget/widget.h
diff --git a/views/widget/widget.h b/views/widget/widget.h
index ba0445b7449f9deaabefb08b8c0cddd1a0604183..abc8fbaa9a4c22bdee93a1c1dd21e42374fd241f 100644
--- a/views/widget/widget.h
+++ b/views/widget/widget.h
@@ -342,10 +342,10 @@ class VIEWS_EXPORT Widget : public internal::NativeWidgetDelegate,
// Returns whether the Widget is the currently active window.
virtual bool IsActive() const;
- // Prevents the window from being rendered as deactivated the next time it is.
- // This state is reset automatically as soon as the window becomes activated
- // again. There is no ability to control the state through this API as this
- // leads to sync problems.
+ // Prevents the window from being rendered as deactivated. This state is
+ // reset automatically as soon as the window becomes activated again. There is
+ // no ability to control the state through this API as this leads to sync
+ // problems.
void DisableInactiveRendering();
// Sets the widget to be on top of all other widgets in the windowing system.
@@ -633,6 +633,10 @@ class VIEWS_EXPORT Widget : public internal::NativeWidgetDelegate,
// Returns whether capture should be released on mouse release.
virtual bool ShouldReleaseCaptureOnMouseReleased() const;
+ // Sets the value of |disable_inactive_rendering_|. If the value changes,
+ // both the NonClientView and WidgetDelegate are notified.
+ void SetInactiveRenderingDisabled(bool value);
+
// Persists the window's restored position and "show" state using the
// window delegate.
void SaveWindowPlacement();

Powered by Google App Engine
This is Rietveld 408576698