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 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 362 [nodoc] boolean? firstShowHasHappened; | 362 [nodoc] boolean? firstShowHasHappened; |
| 363 | 363 |
| 364 // Set whether the window should stay above most other windows. Requires the | 364 // Set whether the window should stay above most other windows. Requires the |
| 365 // <code>"alwaysOnTopWindows"</code> permission. | 365 // <code>"alwaysOnTopWindows"</code> permission. |
| 366 static void setAlwaysOnTop(boolean alwaysOnTop); | 366 static void setAlwaysOnTop(boolean alwaysOnTop); |
| 367 | 367 |
| 368 // Can the window use alpha transparency? | 368 // Can the window use alpha transparency? |
| 369 // TODO(jackhou): Document this properly before going to stable. | 369 // TODO(jackhou): Document this properly before going to stable. |
| 370 [nodoc] static boolean alphaEnabled(); | 370 [nodoc] static boolean alphaEnabled(); |
| 371 | 371 |
| 372 // Set whether the window should get all keyboard events including system | |
| 373 // keys that are usually not sent. This is best-effort subject to platform | |
| 374 // specific constraints. Requires the <code>"app.window.allKeys"</code> | |
| 375 // permission. | |
| 376 static void setInterceptAllKeys(boolean wantAllKeys); | |
|
benwells
2014/08/01 00:32:43
It would be mentioned that this is only available
Sriram
2014/08/11 21:01:28
Done.
| |
| 377 | |
| 372 // The JavaScript 'window' object for the created child. | 378 // The JavaScript 'window' object for the created child. |
| 373 [instanceOf=Window] object contentWindow; | 379 [instanceOf=Window] object contentWindow; |
| 374 | 380 |
| 375 // The id the window was created with. | 381 // The id the window was created with. |
| 376 DOMString id; | 382 DOMString id; |
| 377 | 383 |
| 378 // The position, size and constraints of the window's content, which does | 384 // The position, size and constraints of the window's content, which does |
| 379 // not include window decorations. | 385 // not include window decorations. |
| 380 // This property is new in Chrome 36. | 386 // This property is new in Chrome 36. |
| 381 Bounds innerBounds; | 387 Bounds innerBounds; |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 451 // Fired when the window is restored from being minimized or maximized. | 457 // Fired when the window is restored from being minimized or maximized. |
| 452 [nocompile] static void onRestored(); | 458 [nocompile] static void onRestored(); |
| 453 | 459 |
| 454 // Fired when the window's ability to use alpha transparency changes. | 460 // Fired when the window's ability to use alpha transparency changes. |
| 455 [nocompile, nodoc] static void onAlphaEnabledChanged(); | 461 [nocompile, nodoc] static void onAlphaEnabledChanged(); |
| 456 | 462 |
| 457 // Event for testing. Lets tests wait until a window has been shown. | 463 // Event for testing. Lets tests wait until a window has been shown. |
| 458 [nocompile, nodoc] static void onWindowFirstShown(); | 464 [nocompile, nodoc] static void onWindowFirstShown(); |
| 459 }; | 465 }; |
| 460 }; | 466 }; |
| OLD | NEW |