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 // File-level comment to appease parser. Eventually this will not be necessary. | 5 // File-level comment to appease parser. Eventually this will not be necessary. |
6 | 6 |
7 [nodoc] namespace appWindow { | 7 [nodoc] namespace app.window { |
8 dictionary CreateWindowOptions { | 8 dictionary CreateWindowOptions { |
9 // Width of the window. | 9 // Width of the window. |
10 long? width; | 10 long? width; |
11 | 11 |
12 // Height of the window. | 12 // Height of the window. |
13 long? height; | 13 long? height; |
14 | 14 |
15 long? left; | 15 long? left; |
16 long? top; | 16 long? top; |
17 | 17 |
18 long? minWidth; | 18 long? minWidth; |
19 long? minHeight; | 19 long? minHeight; |
20 long? maxWidth; | 20 long? maxWidth; |
21 long? maxHeight; | 21 long? maxHeight; |
22 | 22 |
23 // Window type: 'panel' or 'shell' (defaults to 'shell') | 23 // Window type: 'panel' or 'shell' (defaults to 'shell') |
24 DOMString? type; | 24 DOMString? type; |
25 | 25 |
26 // Frame type: 'none' or 'chrome' (defaults to 'chrome') | 26 // Frame type: 'none' or 'chrome' (defaults to 'chrome') |
27 DOMString? frame; | 27 DOMString? frame; |
28 }; | 28 }; |
29 | 29 |
30 callback CreateWindowCallback = void (long view_id); | 30 callback CreateWindowCallback = |
| 31 void ([instanceOf=global] object created_window); |
31 | 32 |
32 interface Functions { | 33 interface Functions { |
33 static void create(DOMString url, | 34 static void create(DOMString url, |
34 optional CreateWindowOptions options, | 35 optional CreateWindowOptions options, |
35 optional CreateWindowCallback callback); | 36 optional CreateWindowCallback callback); |
36 | 37 |
37 static void focus(); | 38 static void focus(); |
38 static void maximize(); | 39 static void maximize(); |
39 static void minimize(); | 40 static void minimize(); |
40 static void restore(); | 41 static void restore(); |
41 [nocompile] static void moveTo(long x, long y); | 42 [nocompile] static void moveTo(long x, long y); |
42 [nocompile] static void resizeTo(long width, long height); | 43 [nocompile] static void resizeTo(long width, long height); |
43 }; | 44 }; |
44 }; | 45 }; |
OLD | NEW |