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 namespace app.window { | 5 namespace app.window { |
| 6 dictionary CreateWindowOptions { | 6 dictionary CreateWindowOptions { |
| 7 // Id to identify the window. This will be used to remember the size | 7 // Id to identify the window. This will be used to remember the size |
| 8 // and position of the window and restore that geometry when a window | 8 // and position of the window and restore that geometry when a window |
| 9 // with the same id (and no explicit size or position) is later opened. | 9 // with the same id (and no explicit size or position) is later opened. |
| 10 DOMString? id; | 10 DOMString? id; |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 42 // Maximum width of the window. | 42 // Maximum width of the window. |
| 43 long? maxWidth; | 43 long? maxWidth; |
| 44 | 44 |
| 45 // Maximum height of the window. | 45 // Maximum height of the window. |
| 46 long? maxHeight; | 46 long? maxHeight; |
| 47 | 47 |
| 48 // Window type: 'shell' (the default) is the only currently supported value. | 48 // Window type: 'shell' (the default) is the only currently supported value. |
| 49 DOMString? type; | 49 DOMString? type; |
| 50 | 50 |
| 51 // Frame type: 'none' or 'chrome' (defaults to 'chrome'). | 51 // Frame type: 'none' or 'chrome' (defaults to 'chrome'). |
| 52 // Requires experimental API permission. | |
|
reveman
2012/10/11 17:25:58
It's only 'experimental-html' frame type that is e
Bernie
2012/11/08 01:55:13
Done.
| |
| 52 DOMString? frame; | 53 DOMString? frame; |
| 54 | |
| 55 // Enable window background transparency. | |
| 56 // Only supported in ash. Requires experimental API permission. | |
| 57 boolean? transparentBackground; | |
| 53 }; | 58 }; |
| 54 | 59 |
| 55 callback CreateWindowCallback = | 60 callback CreateWindowCallback = |
| 56 void ([instanceOf=AppWindow] object created_window); | 61 void ([instanceOf=AppWindow] object created_window); |
| 57 | 62 |
| 58 dictionary AppWindow { | 63 dictionary AppWindow { |
| 59 // Focus the window. | 64 // Focus the window. |
| 60 static void focus(); | 65 static void focus(); |
| 61 | 66 |
| 62 // Minimize the window. | 67 // Minimize the window. |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 105 // If you specify both a regular and a default value for the same option | 110 // If you specify both a regular and a default value for the same option |
| 106 // the regular value is the only one that takes effect. | 111 // the regular value is the only one that takes effect. |
| 107 static void create(DOMString url, | 112 static void create(DOMString url, |
| 108 optional CreateWindowOptions options, | 113 optional CreateWindowOptions options, |
| 109 optional CreateWindowCallback callback); | 114 optional CreateWindowCallback callback); |
| 110 | 115 |
| 111 [nocompile] static AppWindow current(); | 116 [nocompile] static AppWindow current(); |
| 112 [nocompile, nodoc] static void initializeAppWindow(object state); | 117 [nocompile, nodoc] static void initializeAppWindow(object state); |
| 113 }; | 118 }; |
| 114 }; | 119 }; |
| OLD | NEW |