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

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

Issue 26427002: Add always-on-top property to app windows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge 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/desktop_aura/desktop_root_window_host_x11.h
diff --git a/ui/views/widget/desktop_aura/desktop_root_window_host_x11.h b/ui/views/widget/desktop_aura/desktop_root_window_host_x11.h
index 2c3a5267cf38628d24ed17f031064dc64d11bb4a..d2ae22ff33139704b07987a1eba84c381330c276 100644
--- a/ui/views/widget/desktop_aura/desktop_root_window_host_x11.h
+++ b/ui/views/widget/desktop_aura/desktop_root_window_host_x11.h
@@ -106,6 +106,7 @@ class VIEWS_EXPORT DesktopRootWindowHostX11 :
virtual bool IsMinimized() const OVERRIDE;
virtual bool HasCapture() const OVERRIDE;
virtual void SetAlwaysOnTop(bool always_on_top) OVERRIDE;
+ virtual bool IsAlwaysOnTop() const OVERRIDE;
virtual void SetWindowTitle(const string16& title) OVERRIDE;
virtual void ClearNativeFocus() OVERRIDE;
virtual Widget::MoveLoopResult RunMoveLoop(
@@ -231,6 +232,9 @@ private:
// server and local window_properties_ during app-initiated fullscreen.
bool is_fullscreen_;
+ // True if the window should stay on top of most other windows.
+ bool is_always_on_top_;
+
// We are owned by the RootWindow, but we have to have a back pointer to it.
aura::RootWindow* root_window_;

Powered by Google App Engine
This is Rietveld 408576698