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. | 7 // associated with any Chrome browser windows. |
| 8 namespace app.window { | 8 namespace app.window { |
| 9 dictionary Bounds { | 9 dictionary Bounds { |
| 10 long? left; | 10 long? left; |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 62 | 62 |
| 63 // Maximum width for the lifetime of the window. | 63 // Maximum width for the lifetime of the window. |
| 64 long? maxWidth; | 64 long? maxWidth; |
| 65 | 65 |
| 66 // Maximum height for the lifetime of the window. | 66 // Maximum height for the lifetime of the window. |
| 67 long? maxHeight; | 67 long? maxHeight; |
| 68 | 68 |
| 69 // Type of window to create. | 69 // Type of window to create. |
| 70 [nodoc] WindowType? type; | 70 [nodoc] WindowType? type; |
| 71 | 71 |
| 72 // Frame type: 'none' or 'chrome' (defaults to 'chrome'). | 72 // Frame type: 'none' or 'chrome' (defaults to 'chrome'). For 'none', |
| 73 // the -webkit-app-region CSS property can be used to apply draggability | |
|
scheib
2013/09/15 04:35:15
.
This appears to be the only place we will have t
Greg Billock
2013/09/16 17:47:19
Yeah, I was talking to a developer who found this
| |
| 74 // to the app's window. | |
| 73 DOMString? frame; | 75 DOMString? frame; |
| 74 | 76 |
| 75 // Size and position of the content in the window (excluding the titlebar). | 77 // Size and position of the content in the window (excluding the titlebar). |
| 76 // If an id is also specified and a window with a matching id has been shown | 78 // If an id is also specified and a window with a matching id has been shown |
| 77 // before, the remembered bounds of the window will be used instead. | 79 // before, the remembered bounds of the window will be used instead. |
| 78 Bounds? bounds; | 80 Bounds? bounds; |
| 79 | 81 |
| 80 // Enable window background transparency. | 82 // Enable window background transparency. |
| 81 // Only supported in ash. Requires experimental API permission. | 83 // Only supported in ash. Requires experimental API permission. |
| 82 boolean? transparentBackground; | 84 boolean? transparentBackground; |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 215 // Fired when the window is maximized. | 217 // Fired when the window is maximized. |
| 216 [nocompile] static void onMaximized(); | 218 [nocompile] static void onMaximized(); |
| 217 | 219 |
| 218 // Fired when the window is minimized. | 220 // Fired when the window is minimized. |
| 219 [nocompile] static void onMinimized(); | 221 [nocompile] static void onMinimized(); |
| 220 | 222 |
| 221 // Fired when the window is restored from being minimized or maximized. | 223 // Fired when the window is restored from being minimized or maximized. |
| 222 [nocompile] static void onRestored(); | 224 [nocompile] static void onRestored(); |
| 223 }; | 225 }; |
| 224 }; | 226 }; |
| OLD | NEW |