| 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 namespace appWindow { | 7 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 // X coordinate of the window. | 15 // X coordinate of the window. |
| 16 long? left; | 16 long? left; |
| 17 | 17 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 30 // Maximum height of the window. | 30 // Maximum height of the window. |
| 31 long? maxHeight; | 31 long? maxHeight; |
| 32 | 32 |
| 33 // Window type: 'shell' (the default) is the only currently supported value. | 33 // Window type: 'shell' (the default) is the only currently supported value. |
| 34 DOMString? type; | 34 DOMString? type; |
| 35 | 35 |
| 36 // Frame type: 'none' or 'chrome' (defaults to 'chrome'). | 36 // Frame type: 'none' or 'chrome' (defaults to 'chrome'). |
| 37 DOMString? frame; | 37 DOMString? frame; |
| 38 }; | 38 }; |
| 39 | 39 |
| 40 callback CreateWindowCallback = void (long view_id); | 40 callback CreateWindowCallback = |
| 41 void ([instanceOf=global] object created_window); |
| 41 | 42 |
| 42 interface Functions { | 43 interface Functions { |
| 43 static void create(DOMString url, | 44 static void create(DOMString url, |
| 44 optional CreateWindowOptions options, | 45 optional CreateWindowOptions options, |
| 45 optional CreateWindowCallback callback); | 46 optional CreateWindowCallback callback); |
| 46 | 47 |
| 47 static void focus(); | 48 static void focus(); |
| 48 static void maximize(); | 49 static void maximize(); |
| 49 static void minimize(); | 50 static void minimize(); |
| 50 static void restore(); | 51 static void restore(); |
| 51 [nocompile] static void moveTo(long x, long y); | 52 [nocompile] static void moveTo(long x, long y); |
| 52 [nocompile] static void resizeTo(long width, long height); | 53 [nocompile] static void resizeTo(long width, long height); |
| 53 }; | 54 }; |
| 54 }; | 55 }; |
| OLD | NEW |