Chromium Code Reviews| 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/window-s tate"> | 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. | 9 // Window State Sample</a> for a demonstration of these options. |
| 10 namespace app.window { | 10 namespace app.window { |
| (...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 344 // Accessors for testing. | 344 // Accessors for testing. |
| 345 [nodoc] boolean hasFrameColor; | 345 [nodoc] boolean hasFrameColor; |
| 346 [nodoc] long activeFrameColor; | 346 [nodoc] long activeFrameColor; |
| 347 [nodoc] long inactiveFrameColor; | 347 [nodoc] long inactiveFrameColor; |
| 348 [nodoc] boolean? firstShowHasHappened; | 348 [nodoc] boolean? firstShowHasHappened; |
| 349 | 349 |
| 350 // Set whether the window should stay above most other windows. Requires the | 350 // Set whether the window should stay above most other windows. Requires the |
| 351 // <code>"alwaysOnTopWindows"</code> permission. | 351 // <code>"alwaysOnTopWindows"</code> permission. |
| 352 static void setAlwaysOnTop(boolean alwaysOnTop); | 352 static void setAlwaysOnTop(boolean alwaysOnTop); |
| 353 | 353 |
| 354 // Set whether the window should get all keyboard events including system | |
| 355 // keys that are usually not sent. This currently works only when the | |
| 356 // windows is in fullscreen. Requires the <code>"app.window.allKeys"</code> | |
| 357 // permission. | |
| 358 static void setWantAllKeys(boolean wantAllKeys); | |
| 359 | |
| 354 // The JavaScript 'window' object for the created child. | 360 // The JavaScript 'window' object for the created child. |
| 355 [instanceOf=Window] object contentWindow; | 361 [instanceOf=Window] object contentWindow; |
| 356 | 362 |
| 357 // The id the window was created with. | 363 // The id the window was created with. |
| 358 DOMString id; | 364 DOMString id; |
| 359 | 365 |
| 360 // The position, size and constraints of the window's content, which does | 366 // The position, size and constraints of the window's content, which does |
| 361 // not include window decorations. | 367 // not include window decorations. |
| 362 // This property is new in Chrome 36. | 368 // This property is new in Chrome 36. |
| 363 Bounds innerBounds; | 369 Bounds innerBounds; |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 428 [nocompile] static void onMaximized(); | 434 [nocompile] static void onMaximized(); |
| 429 | 435 |
| 430 // Fired when the window is minimized. | 436 // Fired when the window is minimized. |
| 431 [nocompile] static void onMinimized(); | 437 [nocompile] static void onMinimized(); |
| 432 | 438 |
| 433 // Fired when the window is restored from being minimized or maximized. | 439 // Fired when the window is restored from being minimized or maximized. |
| 434 [nocompile] static void onRestored(); | 440 [nocompile] static void onRestored(); |
| 435 | 441 |
| 436 // Event for testing. Lets tests wait until a window has been shown. | 442 // Event for testing. Lets tests wait until a window has been shown. |
| 437 [nocompile, nodoc] static void onWindowFirstShown(); | 443 [nocompile, nodoc] static void onWindowFirstShown(); |
| 444 | |
| 445 // Fired when WantAllKeys setting is in effect. | |
| 446 [nocompile] static void onWantAllKeysSettingEffective(); | |
| 447 | |
| 448 // Fired when WantAllKeys setting is no longer in effect. | |
| 449 [nocompile] static void onWantAllKeysSettingLost(); | |
|
Jamie
2014/06/25 16:46:58
As discussed off-line, I think one event and a get
| |
| 438 }; | 450 }; |
| 439 }; | 451 }; |
| OLD | NEW |