| 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/samples/
window-state"> | 8 // href="https://github.com/GoogleChrome/chrome-app-samples/tree/master/samples/
window-state"> |
| 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 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 378 // TODO(stevenjb): Investigate implementing this on Windows and OSX. | 378 // TODO(stevenjb): Investigate implementing this on Windows and OSX. |
| 379 [nodoc] static void setIcon(DOMString iconUrl); | 379 [nodoc] static void setIcon(DOMString iconUrl); |
| 380 | 380 |
| 381 // Is the window always on top? | 381 // Is the window always on top? |
| 382 static boolean isAlwaysOnTop(); | 382 static boolean isAlwaysOnTop(); |
| 383 | 383 |
| 384 // Accessors for testing. | 384 // Accessors for testing. |
| 385 [nodoc] boolean hasFrameColor; | 385 [nodoc] boolean hasFrameColor; |
| 386 [nodoc] long activeFrameColor; | 386 [nodoc] long activeFrameColor; |
| 387 [nodoc] long inactiveFrameColor; | 387 [nodoc] long inactiveFrameColor; |
| 388 [nodoc] boolean? firstShowHasHappened; | |
| 389 | 388 |
| 390 // Set whether the window should stay above most other windows. Requires the | 389 // Set whether the window should stay above most other windows. Requires the |
| 391 // <code>alwaysOnTopWindows</code> permission. | 390 // <code>alwaysOnTopWindows</code> permission. |
| 392 static void setAlwaysOnTop(boolean alwaysOnTop); | 391 static void setAlwaysOnTop(boolean alwaysOnTop); |
| 393 | 392 |
| 394 // Can the window use alpha transparency? | 393 // Can the window use alpha transparency? |
| 395 // TODO(jackhou): Document this properly before going to stable. | 394 // TODO(jackhou): Document this properly before going to stable. |
| 396 [nodoc] static boolean alphaEnabled(); | 395 [nodoc] static boolean alphaEnabled(); |
| 397 | 396 |
| 398 // Set whether the window is visible on all workspaces. (Only for platforms | 397 // Set whether the window is visible on all workspaces. (Only for platforms |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 481 [nocompile] static void onMaximized(); | 480 [nocompile] static void onMaximized(); |
| 482 | 481 |
| 483 // Fired when the window is minimized. | 482 // Fired when the window is minimized. |
| 484 [nocompile] static void onMinimized(); | 483 [nocompile] static void onMinimized(); |
| 485 | 484 |
| 486 // Fired when the window is restored from being minimized or maximized. | 485 // Fired when the window is restored from being minimized or maximized. |
| 487 [nocompile] static void onRestored(); | 486 [nocompile] static void onRestored(); |
| 488 | 487 |
| 489 // Fired when the window's ability to use alpha transparency changes. | 488 // Fired when the window's ability to use alpha transparency changes. |
| 490 [nocompile, nodoc] static void onAlphaEnabledChanged(); | 489 [nocompile, nodoc] static void onAlphaEnabledChanged(); |
| 491 | |
| 492 // Event for testing. Lets tests wait until a window has been shown. | |
| 493 [nocompile, nodoc] static void onWindowFirstShown(); | |
| 494 }; | 490 }; |
| 495 }; | 491 }; |
| OLD | NEW |