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 namespace app.window { | 5 namespace app.window { |
6 dictionary CreateWindowOptions { | 6 dictionary CreateWindowOptions { |
7 // Id to identify the window. This will be used to remember the size | 7 // Id to identify the window. This will be used to remember the size |
8 // and position of the window and restore that geometry when a window | 8 // and position of the window and restore that geometry when a window |
9 // with the same id (and no explicit size or position) is later opened. | 9 // with the same id (and no explicit size or position) is later opened. |
10 DOMString? id; | 10 DOMString? id; |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 | 42 |
43 // Minimum height of the window. | 43 // Minimum height of the window. |
44 long? minHeight; | 44 long? minHeight; |
45 | 45 |
46 // Maximum width of the window. | 46 // Maximum width of the window. |
47 long? maxWidth; | 47 long? maxWidth; |
48 | 48 |
49 // Maximum height of the window. | 49 // Maximum height of the window. |
50 long? maxHeight; | 50 long? maxHeight; |
51 | 51 |
52 // Window type: | 52 // Window type: |
53 // 'shell' - the default window type | 53 // 'shell' - the default window type |
54 // 'panel' - a panel, managed by the OS (Currently experimental, Ash only) | 54 // 'panel' - a panel, managed by the OS (Currently experimental, Ash only) |
55 [nodoc] DOMString? type; | 55 [nodoc] DOMString? type; |
56 | 56 |
57 // Frame type: 'none' or 'chrome' (defaults to 'chrome'). | 57 // Frame type: 'none' or 'chrome' (defaults to 'chrome'). |
58 DOMString? frame; | 58 DOMString? frame; |
59 | 59 |
60 // Size of the content in the window (excluding the titlebar). If specified | 60 // Size of the content in the window (excluding the titlebar). If specified |
61 // in addition to any of the left/top/width/height parameters, this field | 61 // in addition to any of the left/top/width/height parameters, this field |
62 // takes precedence. If a frameBounds is specified, the frameBounds take | 62 // takes precedence. If a frameBounds is specified, the frameBounds take |
63 // precedence. | 63 // precedence. |
64 Bounds? bounds; | 64 Bounds? bounds; |
65 | 65 |
| 66 // Enable window background transparency. |
| 67 // Only supported in ash. Requires experimental API permission. |
| 68 boolean? transparentBackground; |
| 69 |
66 // If true, the window will be created in a hidden state. Call show() on | 70 // If true, the window will be created in a hidden state. Call show() on |
67 // the window to show it once it has been created. Defaults to false. | 71 // the window to show it once it has been created. Defaults to false. |
68 boolean? hidden; | 72 boolean? hidden; |
69 | 73 |
70 // By default if you specify an id for the window, the window will only be | 74 // By default if you specify an id for the window, the window will only be |
71 // created if another window with the same id doesn't already exist. If a | 75 // created if another window with the same id doesn't already exist. If a |
72 // window with the same id already exists that window is activated instead. | 76 // window with the same id already exists that window is activated instead. |
73 // If you do want to create multiple windows with the same id, you can | 77 // If you do want to create multiple windows with the same id, you can |
74 // set this property to false. | 78 // set this property to false. |
75 boolean? singleton; | 79 boolean? singleton; |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 optional CreateWindowCallback callback); | 173 optional CreateWindowCallback callback); |
170 | 174 |
171 // Returns an $ref:AppWindow object for the | 175 // Returns an $ref:AppWindow object for the |
172 // current script context (ie JavaScript 'window' object). This can also be | 176 // current script context (ie JavaScript 'window' object). This can also be |
173 // called on a handle to a script context for another page, for example: | 177 // called on a handle to a script context for another page, for example: |
174 // otherWindow.chrome.app.window.current(). | 178 // otherWindow.chrome.app.window.current(). |
175 [nocompile] static AppWindow current(); | 179 [nocompile] static AppWindow current(); |
176 [nocompile, nodoc] static void initializeAppWindow(object state); | 180 [nocompile, nodoc] static void initializeAppWindow(object state); |
177 }; | 181 }; |
178 }; | 182 }; |
OLD | NEW |