Chromium Code Reviews| 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; |
| }; |