OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Use the <code>chrome.app.window</code> API to create windows. Windows | 5 // Use the <code>chrome.app.window</code> API to create windows. Windows |
6 // have an optional frame with title bar and size controls. They are not | 6 // have an optional frame with title bar and size controls. They are not |
7 // associated with any Chrome browser windows. See the <a | 7 // associated with any Chrome browser windows. See the <a |
8 // href="https://github.com/GoogleChrome/chrome-app-samples/tree/master/window-s
tate"> | 8 // href="https://github.com/GoogleChrome/chrome-app-samples/tree/master/window-s
tate"> |
9 // Window State Sample</a> for a demonstration of these options. | 9 // Window State Sample</a> for a demonstration of these options. |
10 namespace app.window { | 10 namespace app.window { |
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 // to disable this style on nested elements.<br> | 216 // to disable this style on nested elements.<br> |
217 // Use of <code>FrameOptions</code> is new in M36. | 217 // Use of <code>FrameOptions</code> is new in M36. |
218 (DOMString or FrameOptions)? frame; | 218 (DOMString or FrameOptions)? frame; |
219 | 219 |
220 // Size and position of the content in the window (excluding the titlebar). | 220 // Size and position of the content in the window (excluding the titlebar). |
221 // If an id is also specified and a window with a matching id has been shown | 221 // If an id is also specified and a window with a matching id has been shown |
222 // before, the remembered bounds of the window will be used instead. | 222 // before, the remembered bounds of the window will be used instead. |
223 [deprecated="Use innerBounds or outerBounds."] ContentBounds? bounds; | 223 [deprecated="Use innerBounds or outerBounds."] ContentBounds? bounds; |
224 | 224 |
225 // Enable window background transparency. | 225 // Enable window background transparency. |
226 // Only supported in ash. Requires experimental API permission. | 226 // Only supported in ash. Requires app.window.alpha API permission. |
227 boolean? transparentBackground; | 227 boolean? alphaEnabled; |
228 | 228 |
229 // The initial state of the window, allowing it to be created already | 229 // The initial state of the window, allowing it to be created already |
230 // fullscreen, maximized, or minimized. Defaults to 'normal'. | 230 // fullscreen, maximized, or minimized. Defaults to 'normal'. |
231 State? state; | 231 State? state; |
232 | 232 |
233 // If true, the window will be created in a hidden state. Call show() on | 233 // If true, the window will be created in a hidden state. Call show() on |
234 // the window to show it once it has been created. Defaults to false. | 234 // the window to show it once it has been created. Defaults to false. |
235 boolean? hidden; | 235 boolean? hidden; |
236 | 236 |
237 // If true, the window will be resizable by the user. Defaults to true. | 237 // If true, the window will be resizable by the user. Defaults to true. |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
437 // Fired when the window is restored from being minimized or maximized. | 437 // Fired when the window is restored from being minimized or maximized. |
438 [nocompile] static void onRestored(); | 438 [nocompile] static void onRestored(); |
439 | 439 |
440 // Fired when the window's ability to use alpha transparency changes. | 440 // Fired when the window's ability to use alpha transparency changes. |
441 [nocompile, nodoc] static void onAlphaEnabledChanged(); | 441 [nocompile, nodoc] static void onAlphaEnabledChanged(); |
442 | 442 |
443 // Event for testing. Lets tests wait until a window has been shown. | 443 // Event for testing. Lets tests wait until a window has been shown. |
444 [nocompile, nodoc] static void onWindowFirstShown(); | 444 [nocompile, nodoc] static void onWindowFirstShown(); |
445 }; | 445 }; |
446 }; | 446 }; |
OLD | NEW |