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. See the <a |
| 8 // href="https://github.com/GoogleChrome/chrome-app-samples/tree/master/window-s
tate"> |
| 9 // Window State Sample</a> for a demonstration of these options. |
8 namespace app.window { | 10 namespace app.window { |
9 | 11 |
10 // Previously named Bounds. | 12 // Previously named Bounds. |
11 dictionary ContentBounds { | 13 dictionary ContentBounds { |
12 long? left; | 14 long? left; |
13 long? top; | 15 long? top; |
14 long? width; | 16 long? width; |
15 long? height; | 17 long? height; |
16 }; | 18 }; |
17 | 19 |
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
424 // Fired when the window is maximized. | 426 // Fired when the window is maximized. |
425 [nocompile] static void onMaximized(); | 427 [nocompile] static void onMaximized(); |
426 | 428 |
427 // Fired when the window is minimized. | 429 // Fired when the window is minimized. |
428 [nocompile] static void onMinimized(); | 430 [nocompile] static void onMinimized(); |
429 | 431 |
430 // Fired when the window is restored from being minimized or maximized. | 432 // Fired when the window is restored from being minimized or maximized. |
431 [nocompile] static void onRestored(); | 433 [nocompile] static void onRestored(); |
432 }; | 434 }; |
433 }; | 435 }; |
OLD | NEW |