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/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 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 248 // Size and position of the content in the window (excluding the titlebar). | 248 // Size and position of the content in the window (excluding the titlebar). |
| 249 // If an id is also specified and a window with a matching id has been shown | 249 // If an id is also specified and a window with a matching id has been shown |
| 250 // before, the remembered bounds of the window will be used instead. | 250 // before, the remembered bounds of the window will be used instead. |
| 251 [deprecated="Use innerBounds or outerBounds."] ContentBounds? bounds; | 251 [deprecated="Use innerBounds or outerBounds."] ContentBounds? bounds; |
| 252 | 252 |
| 253 // Enable window background transparency. | 253 // Enable window background transparency. |
| 254 // Only supported in ash. Requires the <code>app.window.alpha</code> API | 254 // Only supported in ash. Requires the <code>app.window.alpha</code> API |
| 255 // permission. | 255 // permission. |
| 256 [nodoc] boolean? alphaEnabled; | 256 [nodoc] boolean? alphaEnabled; |
| 257 | 257 |
| 258 // Set window background color. | |
|
Reilly Grant (use Gerrit)
2017/03/10 18:39:18
Please be more specific about when this parameter
| |
| 259 [nodoc] DOMString? backgroundColor; | |
| 260 | |
| 258 // The initial state of the window, allowing it to be created already | 261 // The initial state of the window, allowing it to be created already |
| 259 // fullscreen, maximized, or minimized. Defaults to 'normal'. | 262 // fullscreen, maximized, or minimized. Defaults to 'normal'. |
| 260 State? state; | 263 State? state; |
| 261 | 264 |
| 262 // If true, the window will be created in a hidden state. Call show() on | 265 // If true, the window will be created in a hidden state. Call show() on |
| 263 // the window to show it once it has been created. Defaults to false. | 266 // the window to show it once it has been created. Defaults to false. |
| 264 boolean? hidden; | 267 boolean? hidden; |
| 265 | 268 |
| 266 // If true, the window will be resizable by the user. Defaults to true. | 269 // If true, the window will be resizable by the user. Defaults to true. |
| 267 boolean? resizable; | 270 boolean? resizable; |
| (...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 482 // Fired when the window is minimized. | 485 // Fired when the window is minimized. |
| 483 [nocompile] static void onMinimized(); | 486 [nocompile] static void onMinimized(); |
| 484 | 487 |
| 485 // Fired when the window is restored from being minimized or maximized. | 488 // Fired when the window is restored from being minimized or maximized. |
| 486 [nocompile] static void onRestored(); | 489 [nocompile] static void onRestored(); |
| 487 | 490 |
| 488 // Fired when the window's ability to use alpha transparency changes. | 491 // Fired when the window's ability to use alpha transparency changes. |
| 489 [nocompile, nodoc] static void onAlphaEnabledChanged(); | 492 [nocompile, nodoc] static void onAlphaEnabledChanged(); |
| 490 }; | 493 }; |
| 491 }; | 494 }; |
| OLD | NEW |