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. | 7 // associated with any Chrome browser windows. |
| 8 namespace app.window { | 8 namespace app.window { |
| 9 | 9 |
| 10 // Previously named Bounds. | 10 // Previously named Bounds. |
| (...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 341 | 341 |
| 342 // Accessors for testing. | 342 // Accessors for testing. |
| 343 [nodoc] boolean hasFrameColor; | 343 [nodoc] boolean hasFrameColor; |
| 344 [nodoc] long activeFrameColor; | 344 [nodoc] long activeFrameColor; |
| 345 [nodoc] long inactiveFrameColor; | 345 [nodoc] long inactiveFrameColor; |
| 346 | 346 |
| 347 // Set whether the window should stay above most other windows. Requires the | 347 // Set whether the window should stay above most other windows. Requires the |
| 348 // <code>"alwaysOnTopWindows"</code> permission. | 348 // <code>"alwaysOnTopWindows"</code> permission. |
| 349 static void setAlwaysOnTop(boolean alwaysOnTop); | 349 static void setAlwaysOnTop(boolean alwaysOnTop); |
| 350 | 350 |
| 351 // Set whether the window should get all keyboard events including system ke ys that are usually | |
|
Jamie
2014/05/23 22:13:10
Chromium style is 80-character limit for most lang
Sriram
2014/05/23 22:20:06
Done.
| |
| 352 // not sent. This currently works only when the windows is in fullscreen. Re quires the | |
| 353 // <code>"requestAllKeys"</code> permission. | |
| 354 static void setRequestAllKeys(boolean requestAllKeys); | |
| 355 | |
| 356 // Return current state of "RequestAllKeys" state. | |
| 357 static boolean getRequestAllKeys(); | |
|
Jamie
2014/05/23 22:13:10
I don't think the getter is necessary (setAlwaysOn
Sriram
2014/05/23 22:20:06
Done.
| |
| 358 | |
| 351 // The JavaScript 'window' object for the created child. | 359 // The JavaScript 'window' object for the created child. |
| 352 [instanceOf=Window] object contentWindow; | 360 [instanceOf=Window] object contentWindow; |
| 353 | 361 |
| 354 // The id the window was created with. | 362 // The id the window was created with. |
| 355 DOMString id; | 363 DOMString id; |
| 356 | 364 |
| 357 // The position, size and constraints of the window's content, which does | 365 // The position, size and constraints of the window's content, which does |
| 358 // not include window decorations. | 366 // not include window decorations. |
| 359 // This property is new in Chrome 36. | 367 // This property is new in Chrome 36. |
| 360 Bounds innerBounds; | 368 Bounds innerBounds; |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 424 // Fired when the window is maximized. | 432 // Fired when the window is maximized. |
| 425 [nocompile] static void onMaximized(); | 433 [nocompile] static void onMaximized(); |
| 426 | 434 |
| 427 // Fired when the window is minimized. | 435 // Fired when the window is minimized. |
| 428 [nocompile] static void onMinimized(); | 436 [nocompile] static void onMinimized(); |
| 429 | 437 |
| 430 // Fired when the window is restored from being minimized or maximized. | 438 // Fired when the window is restored from being minimized or maximized. |
| 431 [nocompile] static void onRestored(); | 439 [nocompile] static void onRestored(); |
| 432 }; | 440 }; |
| 433 }; | 441 }; |
| OLD | NEW |