| 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 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 224 // extensions. | 224 // extensions. |
| 225 // Requires the <code>app.window.ime</code> API permission. | 225 // Requires the <code>app.window.ime</code> API permission. |
| 226 [nodoc] boolean? ime; | 226 [nodoc] boolean? ime; |
| 227 | 227 |
| 228 // If true, the window will have its own shelf icon. Otherwise the window | 228 // If true, the window will have its own shelf icon. Otherwise the window |
| 229 // will be grouped in the shelf with other windows that are associated with | 229 // will be grouped in the shelf with other windows that are associated with |
| 230 // the app. Defaults to false. If showInShelf is set to true you need to | 230 // the app. Defaults to false. If showInShelf is set to true you need to |
| 231 // specify an id for the window. | 231 // specify an id for the window. |
| 232 boolean? showInShelf; | 232 boolean? showInShelf; |
| 233 | 233 |
| 234 // URL of the window icon. A window can have its own icon when showInShelf |
| 235 // is set to true. The URL should be a global or an extension local URL. |
| 236 DOMString? icon; |
| 237 |
| 234 // Frame type: <code>none</code> or <code>chrome</code> (defaults to | 238 // Frame type: <code>none</code> or <code>chrome</code> (defaults to |
| 235 // <code>chrome</code>). For <code>none</code>, the | 239 // <code>chrome</code>). For <code>none</code>, the |
| 236 // <code>-webkit-app-region</code> CSS property can be used to apply | 240 // <code>-webkit-app-region</code> CSS property can be used to apply |
| 237 // draggability to the app's window. <code>-webkit-app-region: drag</code> | 241 // draggability to the app's window. <code>-webkit-app-region: drag</code> |
| 238 // can be used to mark regions draggable. <code>no-drag</code> can be used | 242 // can be used to mark regions draggable. <code>no-drag</code> can be used |
| 239 // to disable this style on nested elements. | 243 // to disable this style on nested elements. |
| 240 // | 244 // |
| 241 // Use of <code>FrameOptions</code> is new in M36. | 245 // Use of <code>FrameOptions</code> is new in M36. |
| 242 (DOMString or FrameOptions)? frame; | 246 (DOMString or FrameOptions)? frame; |
| 243 | 247 |
| (...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 482 // Fired when the window is restored from being minimized or maximized. | 486 // Fired when the window is restored from being minimized or maximized. |
| 483 [nocompile] static void onRestored(); | 487 [nocompile] static void onRestored(); |
| 484 | 488 |
| 485 // Fired when the window's ability to use alpha transparency changes. | 489 // Fired when the window's ability to use alpha transparency changes. |
| 486 [nocompile, nodoc] static void onAlphaEnabledChanged(); | 490 [nocompile, nodoc] static void onAlphaEnabledChanged(); |
| 487 | 491 |
| 488 // Event for testing. Lets tests wait until a window has been shown. | 492 // Event for testing. Lets tests wait until a window has been shown. |
| 489 [nocompile, nodoc] static void onWindowFirstShown(); | 493 [nocompile, nodoc] static void onWindowFirstShown(); |
| 490 }; | 494 }; |
| 491 }; | 495 }; |
| OLD | NEW |