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

Unified Diff: chrome/common/extensions/api/app_window.idl

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: chrome/common/extensions/api/app_window.idl
diff --git a/chrome/common/extensions/api/app_window.idl b/chrome/common/extensions/api/app_window.idl
index 032897408f648ca375fff7d834cd4e5dd7686595..65f34f853cb615a80bfe16a6ea0cf52301429073 100644
--- a/chrome/common/extensions/api/app_window.idl
+++ b/chrome/common/extensions/api/app_window.idl
@@ -103,6 +103,13 @@ namespace app.window {
// If you do want to create multiple windows with the same id, you can
// set this property to false.
boolean? singleton;
+
+ // If true, the window will stay above most other windows. If there are
+ // multiple windows of this kind, the currently focused window will be in
+ // the foreground. Defaults to false. Call <code>setAlwaysOnTop()</code> on
+ // the window to change this property after creation.
+ // Currently available in the Dev channel only.
+ boolean? alwaysOnTop;
};
// Called in the creating window (parent) before the load event is called in
@@ -172,6 +179,14 @@ namespace app.window {
// TODO(stevenjb): Investigate implementing this on Windows and OSX.
[nodoc] static void setIcon(DOMString icon_url);
+ // Is the window always on top?
+ // Currently available in the Dev channel only.
+ static boolean isAlwaysOnTop();
+
+ // Set whether the window should stay above most other windows.
+ // Currently available in the Dev channel only.
+ static void setAlwaysOnTop(boolean always_on_top);
+
// The JavaScript 'window' object for the created child.
[instanceOf=Window] object contentWindow;
};

Powered by Google App Engine
This is Rietveld 408576698