Chromium Code Reviews| Index: chrome/common/extensions/api/app_window.idl |
| diff --git a/chrome/common/extensions/api/app_window.idl b/chrome/common/extensions/api/app_window.idl |
| index 7c61e06b6f3cc4e287d4d8536d2bdb045abc9958..c4542ad0ad4872fb6009817dc738d3f1a75ee83d 100644 |
| --- a/chrome/common/extensions/api/app_window.idl |
| +++ b/chrome/common/extensions/api/app_window.idl |
| @@ -40,16 +40,28 @@ namespace app.window { |
| callback CreateWindowCallback = |
| void ([instanceOf=global] object created_window); |
| + dictionary AppWindow { |
| + // Focus the window. |
| + static void focus(); |
| + |
| + // Minimize the window. |
| + static void minimize(); |
| + |
| + // Maximize the window. |
| + static void maximize(); |
| + |
| + // Restore the window. |
| + static void restore(); |
| + |
| + // Move the window to the position (|x|, |y|). |
| + static void moveTo(long x, long y); |
|
Mihai Parparita -not on Chrome
2012/08/24 01:05:07
moveTo does not seem to be implemented in the curr
jeremya
2012/08/24 02:10:08
Done.
|
| + }; |
| + |
| interface Functions { |
| static void create(DOMString url, |
| optional CreateWindowOptions options, |
| optional CreateWindowCallback callback); |
| - static void focus(); |
| - static void maximize(); |
| - static void minimize(); |
| - static void restore(); |
| - [nocompile] static void moveTo(long x, long y); |
| - [nocompile] static void resizeTo(long width, long height); |
|
Mihai Parparita -not on Chrome
2012/08/24 01:05:07
Can we also bring over resizing?
jeremya
2012/08/24 02:10:08
Done.
|
| + [nocompile] static AppWindow current(); |
| }; |
| }; |