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

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

Issue 13609003: fullscreen in apps v2 ShellWindow via app.window.create. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: patch for landing Created 7 years, 8 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
« no previous file with comments | « chrome/common/extensions/api/app_current_window_internal.idl ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 594a5d6e900a464950c776e8d966a113bda21ae1..095e163417cb33497287d2f507cc05c60c8a4bf8 100644
--- a/chrome/common/extensions/api/app_window.idl
+++ b/chrome/common/extensions/api/app_window.idl
@@ -10,6 +10,9 @@ namespace app.window {
long? height;
};
+ // State of a window: normal, fullscreen, maximized, minimized.
+ enum State { normal, fullscreen, maximized, minimized };
+
// 'shell' is the default window type. 'panel' is managed by the OS
// (Currently experimental, Ash only).
[nodoc] enum WindowType { shell, panel };
@@ -75,6 +78,10 @@ namespace app.window {
// Only supported in ash. Requires experimental API permission.
boolean? transparentBackground;
+ // The initial state of the window, allowing it to be created already
+ // fullscreen, maximized, or minimized. Defaults to 'normal'.
+ State? state;
+
// 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;
@@ -97,6 +104,9 @@ namespace app.window {
// Focus the window.
static void focus();
+ // Fullscreens the window.
+ static void fullscreen();
+
// Is the window fullscreen?
static boolean isFullscreen();
@@ -112,7 +122,7 @@ namespace app.window {
// Is the window maximized?
static boolean isMaximized();
- // Restore the window, exiting a maximized or minimized state.
+ // Restore the window, exiting a maximized, minimized, or fullscreen state.
static void restore();
// Move the window to the position (|left|, |top|).
« no previous file with comments | « chrome/common/extensions/api/app_current_window_internal.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698