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

Unified Diff: apps/native_app_window.h

Issue 26427002: Add always-on-top property to app windows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cache state of isAlwaysOnTop in widget. Fixed clobber in x11 window init. 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: apps/native_app_window.h
diff --git a/apps/native_app_window.h b/apps/native_app_window.h
index b0a6b17584e46cd11349d4928156e39a6047a734..f61c62ac9ed3e224bc09d9b4960e1cc529acb44b 100644
--- a/apps/native_app_window.h
+++ b/apps/native_app_window.h
@@ -53,6 +53,10 @@ class NativeAppWindow : public ui::BaseWindow,
virtual void ShowWithApp() = 0;
virtual void HideWithApp() = 0;
+ // If |always_on_top| is true, the window will stay on top of windows that do
+ // not have this flag enabled.
+ virtual void SetAlwaysOnTop(bool always_on_top) = 0;
+
virtual ~NativeAppWindow() {}
};

Powered by Google App Engine
This is Rietveld 408576698