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

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

Issue 11147037: Add a 'hidden' option to chrome.app.window.create() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rename 'createHidden' to 'hidden' for less redundancy Created 8 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 7eed76f60d2e5a365569ad789723f5c20d5dff8b..55cfafcaa841d2367c0c06790948a55f65c1d4b0 100644
--- a/chrome/common/extensions/api/app_window.idl
+++ b/chrome/common/extensions/api/app_window.idl
@@ -50,6 +50,10 @@ namespace app.window {
// Frame type: 'none' or 'chrome' (defaults to 'chrome').
DOMString? frame;
+
+ // If true, the window will be created in a hidden state. Call show() on
+ // the window to show it once it has been created. Defaults to false.
+ boolean? hidden;
benwells 2012/10/16 05:54:55 Hidden windows will keep their browser keep alive,
jeremya 2012/10/16 06:31:32 That's true. Perhaps the keepalive should check vi
};
callback CreateWindowCallback =
@@ -74,6 +78,12 @@ namespace app.window {
// Resize the window to |width|x|height| pixels in size.
static void resizeTo(long width, long height);
+ // Show the window. Does nothing if the window is already visible.
+ static void show();
+
+ // Hide the window. Does nothing if the window is already hidden.
+ static void hide();
+
// The JavaScript 'window' object for the created child.
[instanceOf=global] object contentWindow;
};

Powered by Google App Engine
This is Rietveld 408576698