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 27 matching lines...) Expand all Loading... | |
38 | 38 |
39 // Minimum height of the window. | 39 // Minimum height of the window. |
40 long? minHeight; | 40 long? minHeight; |
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: |
49 // 'shell' - a shell window with just a close button (default) | |
jeremya
2012/11/15 01:09:25
Shell windows now have minimize/maximize buttons t
stevenjb
2012/11/16 23:42:40
Done.
| |
50 // 'panel' - a panel, managed by the OS (Currently Ash only) | |
49 [nodoc] DOMString? type; | 51 [nodoc] DOMString? type; |
50 | 52 |
51 // Frame type: 'none' or 'chrome' (defaults to 'chrome'). | 53 // Frame type: 'none' or 'chrome' (defaults to 'chrome'). |
52 DOMString? frame; | 54 DOMString? frame; |
53 | 55 |
54 // Size of the content in the window (excluding the titlebar). If specified | 56 // Size of the content in the window (excluding the titlebar). If specified |
55 // in addition to any of the left/top/width/height parameters, this field | 57 // in addition to any of the left/top/width/height parameters, this field |
56 // takes precedence. If a frameBounds is specified, the frameBounds take | 58 // takes precedence. If a frameBounds is specified, the frameBounds take |
57 // precedence. | 59 // precedence. |
58 Bounds? bounds; | 60 Bounds? bounds; |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
141 optional CreateWindowCallback callback); | 143 optional CreateWindowCallback callback); |
142 | 144 |
143 // Returns an <a href="#type-AppWindow">AppWindow</a> object for the | 145 // Returns an <a href="#type-AppWindow">AppWindow</a> object for the |
144 // current script context (ie JavaScript 'window' object). This can also be | 146 // current script context (ie JavaScript 'window' object). This can also be |
145 // called on a handle to a script context for another page, for example: | 147 // called on a handle to a script context for another page, for example: |
146 // otherWindow.chrome.app.window.current(). | 148 // otherWindow.chrome.app.window.current(). |
147 [nocompile] static AppWindow current(); | 149 [nocompile] static AppWindow current(); |
148 [nocompile, nodoc] static void initializeAppWindow(object state); | 150 [nocompile, nodoc] static void initializeAppWindow(object state); |
149 }; | 151 }; |
150 }; | 152 }; |
OLD | NEW |