| 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. See the <a | 7 // associated with any Chrome browser windows. See the <a |
| 8 // href="https://github.com/GoogleChrome/chrome-app-samples/tree/master/samples/
window-state"> | 8 // href="https://github.com/GoogleChrome/chrome-app-samples/tree/master/samples/
window-state"> |
| 9 // Window State Sample</a> for a demonstration of these options. | 9 // Window State Sample</a> for a demonstration of these options. |
| 10 namespace app.window { | 10 [use_movable_types=true] namespace app.window { |
| 11 | 11 |
| 12 // Previously named Bounds. | 12 // Previously named Bounds. |
| 13 dictionary ContentBounds { | 13 dictionary ContentBounds { |
| 14 long? left; | 14 long? left; |
| 15 long? top; | 15 long? top; |
| 16 long? width; | 16 long? width; |
| 17 long? height; | 17 long? height; |
| 18 }; | 18 }; |
| 19 | 19 |
| 20 dictionary BoundsSpecification { | 20 dictionary BoundsSpecification { |
| (...skipping 455 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 476 // Fired when the window is restored from being minimized or maximized. | 476 // Fired when the window is restored from being minimized or maximized. |
| 477 [nocompile] static void onRestored(); | 477 [nocompile] static void onRestored(); |
| 478 | 478 |
| 479 // Fired when the window's ability to use alpha transparency changes. | 479 // Fired when the window's ability to use alpha transparency changes. |
| 480 [nocompile, nodoc] static void onAlphaEnabledChanged(); | 480 [nocompile, nodoc] static void onAlphaEnabledChanged(); |
| 481 | 481 |
| 482 // Event for testing. Lets tests wait until a window has been shown. | 482 // Event for testing. Lets tests wait until a window has been shown. |
| 483 [nocompile, nodoc] static void onWindowFirstShown(); | 483 [nocompile, nodoc] static void onWindowFirstShown(); |
| 484 }; | 484 }; |
| 485 }; | 485 }; |
| OLD | NEW |