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 // Can the window use alpha transparency? |
| 355 // TODO(jackhou): Document this properly before going to stable. |
| 356 [nodoc] static boolean alphaEnabled(); |
| 357 |
354 // The JavaScript 'window' object for the created child. | 358 // The JavaScript 'window' object for the created child. |
355 [instanceOf=Window] object contentWindow; | 359 [instanceOf=Window] object contentWindow; |
356 | 360 |
357 // The id the window was created with. | 361 // The id the window was created with. |
358 DOMString id; | 362 DOMString id; |
359 | 363 |
360 // The position, size and constraints of the window's content, which does | 364 // The position, size and constraints of the window's content, which does |
361 // not include window decorations. | 365 // not include window decorations. |
362 // This property is new in Chrome 36. | 366 // This property is new in Chrome 36. |
363 Bounds innerBounds; | 367 Bounds innerBounds; |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
426 | 430 |
427 // Fired when the window is maximized. | 431 // Fired when the window is maximized. |
428 [nocompile] static void onMaximized(); | 432 [nocompile] static void onMaximized(); |
429 | 433 |
430 // Fired when the window is minimized. | 434 // Fired when the window is minimized. |
431 [nocompile] static void onMinimized(); | 435 [nocompile] static void onMinimized(); |
432 | 436 |
433 // Fired when the window is restored from being minimized or maximized. | 437 // Fired when the window is restored from being minimized or maximized. |
434 [nocompile] static void onRestored(); | 438 [nocompile] static void onRestored(); |
435 | 439 |
| 440 // Fired when the window's ability to use alpha transparency changes. |
| 441 [nocompile, nodoc] static void onAlphaEnabledChanged(); |
| 442 |
436 // Event for testing. Lets tests wait until a window has been shown. | 443 // Event for testing. Lets tests wait until a window has been shown. |
437 [nocompile, nodoc] static void onWindowFirstShown(); | 444 [nocompile, nodoc] static void onWindowFirstShown(); |
438 }; | 445 }; |
439 }; | 446 }; |
OLD | NEW |