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

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: 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: 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..602e1cc5bf8ba3d1997e8e4bcc4703fe9006ac16 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.
+ [nodoc] boolean? alwaysOnTop;
benwells 2013/10/09 02:00:50 Why are these nodoc?
tmdiep 2013/10/09 06:18:08 Removed [nodoc].
};
// 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.
+ [nodoc] static boolean isAlwaysOnTop();
+
+ // Set whether the window should stay above most other windows.
+ // Currently available in the Dev channel only.
+ [nodoc] 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