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..d45f15d4cbfc5e0818f8b7a5f590e05e1ea6895b 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 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. |
+ [nodoc] static boolean isAlwaysOnTop(); |
+ |
+ // Set whether the window should stay above 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; |
}; |