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: 'shell' (the default) is the only currently supported value. | 52 // Window type: |
| 53 // 'shell' - the default window type |
| 54 // 'panel' - a panel, managed by the OS (Currently experimental, Ash only) |
53 [nodoc] DOMString? type; | 55 [nodoc] DOMString? type; |
54 | 56 |
55 // Frame type: 'none' or 'chrome' (defaults to 'chrome'). | 57 // Frame type: 'none' or 'chrome' (defaults to 'chrome'). |
56 DOMString? frame; | 58 DOMString? frame; |
57 | 59 |
58 // 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 |
59 // 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 |
60 // takes precedence. If a frameBounds is specified, the frameBounds take | 62 // takes precedence. If a frameBounds is specified, the frameBounds take |
61 // precedence. | 63 // precedence. |
62 Bounds? bounds; | 64 Bounds? bounds; |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 optional CreateWindowCallback callback); | 157 optional CreateWindowCallback callback); |
156 | 158 |
157 // Returns an <a href="#type-AppWindow">AppWindow</a> object for the | 159 // Returns an <a href="#type-AppWindow">AppWindow</a> object for the |
158 // current script context (ie JavaScript 'window' object). This can also be | 160 // current script context (ie JavaScript 'window' object). This can also be |
159 // called on a handle to a script context for another page, for example: | 161 // called on a handle to a script context for another page, for example: |
160 // otherWindow.chrome.app.window.current(). | 162 // otherWindow.chrome.app.window.current(). |
161 [nocompile] static AppWindow current(); | 163 [nocompile] static AppWindow current(); |
162 [nocompile, nodoc] static void initializeAppWindow(object state); | 164 [nocompile, nodoc] static void initializeAppWindow(object state); |
163 }; | 165 }; |
164 }; | 166 }; |
OLD | NEW |