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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
95 boolean? hidden; | 95 boolean? hidden; |
96 | 96 |
97 // If true, the window will be resizable by the user. Defaults to true. | 97 // If true, the window will be resizable by the user. Defaults to true. |
98 boolean? resizable; | 98 boolean? resizable; |
99 | 99 |
100 // By default if you specify an id for the window, the window will only be | 100 // By default if you specify an id for the window, the window will only be |
101 // created if another window with the same id doesn't already exist. If a | 101 // created if another window with the same id doesn't already exist. If a |
102 // window with the same id already exists that window is activated instead. | 102 // window with the same id already exists that window is activated instead. |
103 // If you do want to create multiple windows with the same id, you can | 103 // If you do want to create multiple windows with the same id, you can |
104 // set this property to false. | 104 // set this property to false. |
105 boolean? singleton; | 105 // (Deprecated; multiple windows with the same id is no longer supported.) |
benwells
2013/11/04 01:54:01
Update doco for ID to mention that if a window wit
| |
106 [nodoc] boolean? singleton; | |
106 | 107 |
107 // If true, the window will stay above most other windows. If there are | 108 // If true, the window will stay above most other windows. If there are |
108 // multiple windows of this kind, the currently focused window will be in | 109 // multiple windows of this kind, the currently focused window will be in |
109 // the foreground. Defaults to false. Call <code>setAlwaysOnTop()</code> on | 110 // the foreground. Defaults to false. Call <code>setAlwaysOnTop()</code> on |
110 // the window to change this property after creation. | 111 // the window to change this property after creation. |
111 boolean? alwaysOnTop; | 112 boolean? alwaysOnTop; |
112 }; | 113 }; |
113 | 114 |
114 // Called in the creating window (parent) before the load event is called in | 115 // Called in the creating window (parent) before the load event is called in |
115 // the created window (child). The parent can set fields or functions on the | 116 // the created window (child). The parent can set fields or functions on the |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
264 // Fired when the window is maximized. | 265 // Fired when the window is maximized. |
265 [nocompile] static void onMaximized(); | 266 [nocompile] static void onMaximized(); |
266 | 267 |
267 // Fired when the window is minimized. | 268 // Fired when the window is minimized. |
268 [nocompile] static void onMinimized(); | 269 [nocompile] static void onMinimized(); |
269 | 270 |
270 // Fired when the window is restored from being minimized or maximized. | 271 // Fired when the window is restored from being minimized or maximized. |
271 [nocompile] static void onRestored(); | 272 [nocompile] static void onRestored(); |
272 }; | 273 }; |
273 }; | 274 }; |
OLD | NEW |