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 // Whether alpha is enabled for this window. | |
Wez
2014/07/09 22:03:30
nit: Suggest "Does the window have access to alpha
jackhou1
2014/07/10 03:04:18
Done.
| |
355 [nodoc] static boolean alphaEnabled(); | |
356 | |
354 // The JavaScript 'window' object for the created child. | 357 // The JavaScript 'window' object for the created child. |
355 [instanceOf=Window] object contentWindow; | 358 [instanceOf=Window] object contentWindow; |
356 | 359 |
357 // The id the window was created with. | 360 // The id the window was created with. |
358 DOMString id; | 361 DOMString id; |
359 | 362 |
360 // The position, size and constraints of the window's content, which does | 363 // The position, size and constraints of the window's content, which does |
361 // not include window decorations. | 364 // not include window decorations. |
362 // This property is new in Chrome 36. | 365 // This property is new in Chrome 36. |
363 Bounds innerBounds; | 366 Bounds innerBounds; |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
426 | 429 |
427 // Fired when the window is maximized. | 430 // Fired when the window is maximized. |
428 [nocompile] static void onMaximized(); | 431 [nocompile] static void onMaximized(); |
429 | 432 |
430 // Fired when the window is minimized. | 433 // Fired when the window is minimized. |
431 [nocompile] static void onMinimized(); | 434 [nocompile] static void onMinimized(); |
432 | 435 |
433 // Fired when the window is restored from being minimized or maximized. | 436 // Fired when the window is restored from being minimized or maximized. |
434 [nocompile] static void onRestored(); | 437 [nocompile] static void onRestored(); |
435 | 438 |
439 // Fired when window.alphaEnabled changes. | |
Wez
2014/07/09 22:03:30
nit: This is obvious from the name; suggest "Fired
jackhou1
2014/07/10 03:04:18
Done.
| |
440 [nocompile, nodoc] static void onAlphaEnabledChanged(); | |
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(); |
438 }; | 444 }; |
439 }; | 445 }; |
OLD | NEW |