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. | 7 // associated with any Chrome browser windows. |
8 namespace app.window { | 8 namespace app.window { |
9 dictionary Bounds { | 9 dictionary Bounds { |
10 long? left; | 10 long? left; |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
62 | 62 |
63 // Maximum width for the lifetime of the window. | 63 // Maximum width for the lifetime of the window. |
64 long? maxWidth; | 64 long? maxWidth; |
65 | 65 |
66 // Maximum height for the lifetime of the window. | 66 // Maximum height for the lifetime of the window. |
67 long? maxHeight; | 67 long? maxHeight; |
68 | 68 |
69 // Type of window to create. | 69 // Type of window to create. |
70 [nodoc] WindowType? type; | 70 [nodoc] WindowType? type; |
71 | 71 |
72 // Frame type: 'none' or 'chrome' (defaults to 'chrome'). | 72 // Frame type: 'none' or 'chrome' (defaults to 'chrome'). For 'none', |
73 // the -webkit-app-region CSS property can be used to apply draggability | |
not at google - send to devlin
2013/09/16 18:25:40
also apply to the ones above here: 'none', 'chrome
Greg Billock
2013/09/16 18:49:52
Done.
| |
74 // to the app's window. <code>-webkit-app-region: drag</code> can be | |
75 // used to mark regions draggable. <code>no-drag</code> can be used to | |
76 // disable this style on nested elements. | |
73 DOMString? frame; | 77 DOMString? frame; |
74 | 78 |
75 // Size and position of the content in the window (excluding the titlebar). | 79 // Size and position of the content in the window (excluding the titlebar). |
76 // If an id is also specified and a window with a matching id has been shown | 80 // If an id is also specified and a window with a matching id has been shown |
77 // before, the remembered bounds of the window will be used instead. | 81 // before, the remembered bounds of the window will be used instead. |
78 Bounds? bounds; | 82 Bounds? bounds; |
79 | 83 |
80 // Enable window background transparency. | 84 // Enable window background transparency. |
81 // Only supported in ash. Requires experimental API permission. | 85 // Only supported in ash. Requires experimental API permission. |
82 boolean? transparentBackground; | 86 boolean? transparentBackground; |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
215 // Fired when the window is maximized. | 219 // Fired when the window is maximized. |
216 [nocompile] static void onMaximized(); | 220 [nocompile] static void onMaximized(); |
217 | 221 |
218 // Fired when the window is minimized. | 222 // Fired when the window is minimized. |
219 [nocompile] static void onMinimized(); | 223 [nocompile] static void onMinimized(); |
220 | 224 |
221 // Fired when the window is restored from being minimized or maximized. | 225 // Fired when the window is restored from being minimized or maximized. |
222 [nocompile] static void onRestored(); | 226 [nocompile] static void onRestored(); |
223 }; | 227 }; |
224 }; | 228 }; |
OLD | NEW |