| 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 namespace app.window { |
| (...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 281 // Call <code>setAlwaysOnTop()</code> on the window to change this property | 281 // Call <code>setAlwaysOnTop()</code> on the window to change this property |
| 282 // after creation. | 282 // after creation. |
| 283 boolean? alwaysOnTop; | 283 boolean? alwaysOnTop; |
| 284 | 284 |
| 285 // If true, the window will be focused when created. Defaults to true. | 285 // If true, the window will be focused when created. Defaults to true. |
| 286 boolean? focused; | 286 boolean? focused; |
| 287 | 287 |
| 288 // If true, and supported by the platform, the window will be visible on all | 288 // If true, and supported by the platform, the window will be visible on all |
| 289 // workspaces. | 289 // workspaces. |
| 290 boolean? visibleOnAllWorkspaces; | 290 boolean? visibleOnAllWorkspaces; |
| 291 |
| 292 // <p>If set, the action that is intended to be handled by the window on |
| 293 // lockscreen. This has to be set to create an app window visible on the |
| 294 // lock screen. The app window should be created only in response to an |
| 295 // app launch request for handling an action from the lock screen. App |
| 296 // window creation will fail if the app was not launched to handle the |
| 297 // action. |
| 298 // </p> |
| 299 // <p>This is <b>Chrome OS only</b>.</p> |
| 300 [nodoc] app.runtime.ActionType? lockScreenAction; |
| 291 }; | 301 }; |
| 292 | 302 |
| 293 // Called in the creating window (parent) before the load event is called in | 303 // Called in the creating window (parent) before the load event is called in |
| 294 // the created window (child). The parent can set fields or functions on the | 304 // the created window (child). The parent can set fields or functions on the |
| 295 // child usable from onload. E.g. background.js: | 305 // child usable from onload. E.g. background.js: |
| 296 // | 306 // |
| 297 // <code>function(createdWindow) { createdWindow.contentWindow.foo = | 307 // <code>function(createdWindow) { createdWindow.contentWindow.foo = |
| 298 // function () { }; };</code> | 308 // function () { }; };</code> |
| 299 // | 309 // |
| 300 // window.js: | 310 // window.js: |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 482 // Fired when the window is minimized. | 492 // Fired when the window is minimized. |
| 483 [nocompile] static void onMinimized(); | 493 [nocompile] static void onMinimized(); |
| 484 | 494 |
| 485 // Fired when the window is restored from being minimized or maximized. | 495 // Fired when the window is restored from being minimized or maximized. |
| 486 [nocompile] static void onRestored(); | 496 [nocompile] static void onRestored(); |
| 487 | 497 |
| 488 // Fired when the window's ability to use alpha transparency changes. | 498 // Fired when the window's ability to use alpha transparency changes. |
| 489 [nocompile, nodoc] static void onAlphaEnabledChanged(); | 499 [nocompile, nodoc] static void onAlphaEnabledChanged(); |
| 490 }; | 500 }; |
| 491 }; | 501 }; |
| OLD | NEW |