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> module to create windows. Windows |
| 6 // have an optional frame with title bar and size controls. They are not |
| 7 // associated with any Chrome browser windows. |
| 8 |
5 namespace app.window { | 9 namespace app.window { |
6 dictionary Bounds { | 10 dictionary Bounds { |
7 long? left; | 11 long? left; |
8 long? top; | 12 long? top; |
9 long? width; | 13 long? width; |
10 long? height; | 14 long? height; |
11 }; | 15 }; |
12 | 16 |
13 // State of a window: normal, fullscreen, maximized, minimized. | 17 // State of a window: normal, fullscreen, maximized, minimized. |
14 enum State { normal, fullscreen, maximized, minimized }; | 18 enum State { normal, fullscreen, maximized, minimized }; |
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 // Fired when the window is maximized. | 217 // Fired when the window is maximized. |
214 [nocompile] static void onMaximized(); | 218 [nocompile] static void onMaximized(); |
215 | 219 |
216 // Fired when the window is minimized. | 220 // Fired when the window is minimized. |
217 [nocompile] static void onMinimized(); | 221 [nocompile] static void onMinimized(); |
218 | 222 |
219 // Fired when the window is restored from being minimized or maximized. | 223 // Fired when the window is restored from being minimized or maximized. |
220 [nocompile] static void onRestored(); | 224 [nocompile] static void onRestored(); |
221 }; | 225 }; |
222 }; | 226 }; |
OLD | NEW |