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. |
5 namespace app.window { | 8 namespace app.window { |
6 dictionary Bounds { | 9 dictionary Bounds { |
7 long? left; | 10 long? left; |
8 long? top; | 11 long? top; |
9 long? width; | 12 long? width; |
10 long? height; | 13 long? height; |
11 }; | 14 }; |
12 | 15 |
13 // State of a window: normal, fullscreen, maximized, minimized. | 16 // State of a window: normal, fullscreen, maximized, minimized. |
14 enum State { normal, fullscreen, maximized, minimized }; | 17 enum State { normal, fullscreen, maximized, minimized }; |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 // Fired when the window is maximized. | 215 // Fired when the window is maximized. |
213 [nocompile] static void onMaximized(); | 216 [nocompile] static void onMaximized(); |
214 | 217 |
215 // Fired when the window is minimized. | 218 // Fired when the window is minimized. |
216 [nocompile] static void onMinimized(); | 219 [nocompile] static void onMinimized(); |
217 | 220 |
218 // Fired when the window is restored from being minimized or maximized. | 221 // Fired when the window is restored from being minimized or maximized. |
219 [nocompile] static void onRestored(); | 222 [nocompile] static void onRestored(); |
220 }; | 223 }; |
221 }; | 224 }; |
OLD | NEW |