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

Unified Diff: ui/views/widget/widget.h

Issue 26427002: Add always-on-top property to app windows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed potentially flaky test Created 7 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: ui/views/widget/widget.h
diff --git a/ui/views/widget/widget.h b/ui/views/widget/widget.h
index 151d2f3028d0100b7946586ad398d04868bf9841..77b4ae680b436ad37e0b813ab8ad4d73b92f031a 100644
--- a/ui/views/widget/widget.h
+++ b/ui/views/widget/widget.h
@@ -461,6 +461,10 @@ class VIEWS_EXPORT Widget : public internal::NativeWidgetDelegate,
// Sets the widget to be on top of all other widgets in the windowing system.
void SetAlwaysOnTop(bool on_top);
+ // Returns whether the widget has been set to be on top of most other widgets
+ // in the windowing system.
+ bool IsAlwaysOnTop() const;
+
// Maximizes/minimizes/restores the window.
void Maximize();
void Minimize();
@@ -889,6 +893,10 @@ class VIEWS_EXPORT Widget : public internal::NativeWidgetDelegate,
// disabled.
bool movement_disabled_;
+ // Cached value of isAlwaysOnTop(). If true, the widget stays on top of
+ // widgets that do not have this flag enabled.
+ bool is_always_on_top_;
sky 2013/10/10 02:45:57 This can be nuked now, right?
tmdiep 2013/10/10 04:02:01 Yes. Done.
+
DISALLOW_COPY_AND_ASSIGN(Widget);
};

Powered by Google App Engine
This is Rietveld 408576698