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

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: fix ash tests 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 fe8fa9c628532aba4c10bc0855f691c8871b0a60..dd576d5eb0b1a11f779ccffa1122a1d802ca5fd1 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;
};
callback CreateWindowCallback =
@@ -83,6 +87,12 @@ namespace app.window {
// Close the window.
static void close();
+ // 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;
};
« no previous file with comments | « chrome/common/extensions/api/app_current_window_internal.idl ('k') | chrome/test/base/test_browser_window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698