| 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..329cbb079185aead48e3f9fea5a7ac07c9caf916 100644
|
| --- a/chrome/common/extensions/api/app_window.idl
|
| +++ b/chrome/common/extensions/api/app_window.idl
|
| @@ -40,16 +40,31 @@ 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);
|
| +
|
| + // Move the window to the position (|x|, |y|).
|
| + static void resizeTo(long x, long y);
|
| + };
|
| +
|
| 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);
|
| + [nocompile] static AppWindow current();
|
| };
|
| };
|
|
|