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 30 matching lines...) Expand all Loading... | |
41 | 41 |
42 // Maximum width of the window. | 42 // Maximum width of the window. |
43 long? maxWidth; | 43 long? maxWidth; |
44 | 44 |
45 // Maximum height of the window. | 45 // Maximum height of the window. |
46 long? maxHeight; | 46 long? maxHeight; |
47 | 47 |
48 // Window type: 'shell' (the default) is the only currently supported value. | 48 // Window type: 'shell' (the default) is the only currently supported value. |
49 DOMString? type; | 49 DOMString? type; |
50 | 50 |
51 // Frame type: 'none' or 'chrome' (defaults to 'chrome'). | 51 // Frame type: 'none', 'chrome' (default), 'experimental-html'. |
52 // The value 'experimental-html' requires experimental API permission. | |
jeremya
2012/11/11 23:22:43
I'd rather we don't document the 'experimental-htm
Bernie
2012/12/18 21:08:36
Ok, reverted this chunk.
| |
52 DOMString? frame; | 53 DOMString? frame; |
53 | 54 |
55 // Enable window background transparency. | |
56 // Only supported in ash. Requires experimental API permission. | |
57 boolean? transparentBackground; | |
58 | |
54 // If true, the window will be created in a hidden state. Call show() on | 59 // If true, the window will be created in a hidden state. Call show() on |
55 // the window to show it once it has been created. Defaults to false. | 60 // the window to show it once it has been created. Defaults to false. |
56 boolean? hidden; | 61 boolean? hidden; |
57 }; | 62 }; |
58 | 63 |
59 callback CreateWindowCallback = | 64 callback CreateWindowCallback = |
60 void ([instanceOf=AppWindow] object created_window); | 65 void ([instanceOf=AppWindow] object created_window); |
61 | 66 |
62 dictionary Bounds { | 67 dictionary Bounds { |
63 long? left; | 68 long? left; |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
135 optional CreateWindowCallback callback); | 140 optional CreateWindowCallback callback); |
136 | 141 |
137 // Returns an <a href="#type-AppWindow">AppWindow</a> object for the | 142 // Returns an <a href="#type-AppWindow">AppWindow</a> object for the |
138 // current script context (ie JavaScript 'window' object). This can also be | 143 // current script context (ie JavaScript 'window' object). This can also be |
139 // called on a handle to a script context for another page, for example: | 144 // called on a handle to a script context for another page, for example: |
140 // otherWindow.chrome.app.window.current(). | 145 // otherWindow.chrome.app.window.current(). |
141 [nocompile] static AppWindow current(); | 146 [nocompile] static AppWindow current(); |
142 [nocompile, nodoc] static void initializeAppWindow(object state); | 147 [nocompile, nodoc] static void initializeAppWindow(object state); |
143 }; | 148 }; |
144 }; | 149 }; |
OLD | NEW |