| 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 fe8fa9c628532aba4c10bc0855f691c8871b0a60..bae471874f59616a6dd479bc5aee8177e638a73a 100644
|
| --- a/chrome/common/extensions/api/app_window.idl
|
| +++ b/chrome/common/extensions/api/app_window.idl
|
| @@ -55,6 +55,13 @@ namespace app.window {
|
| callback CreateWindowCallback =
|
| void ([instanceOf=AppWindow] object created_window);
|
|
|
| + dictionary Bounds {
|
| + long left;
|
| + long top;
|
| + long width;
|
| + long height;
|
| + };
|
| +
|
| dictionary AppWindow {
|
| // Focus the window.
|
| static void focus();
|
| @@ -68,8 +75,8 @@ namespace app.window {
|
| // 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 (|left|, |top|).
|
| + static void moveTo(long left, long top);
|
|
|
| // Resize the window to |width|x|height| pixels in size.
|
| static void resizeTo(long width, long height);
|
| @@ -83,6 +90,10 @@ namespace app.window {
|
| // Close the window.
|
| static void close();
|
|
|
| + // Return a <a href="#type-Bounds">Bounds</a> with the position and size of
|
| + // the window.
|
| + static Bounds getBounds();
|
| +
|
| // The JavaScript 'window' object for the created child.
|
| [instanceOf=global] object contentWindow;
|
| };
|
| @@ -117,6 +128,7 @@ namespace app.window {
|
| optional CreateWindowOptions options,
|
| optional CreateWindowCallback callback);
|
|
|
| + // Returns the current <a href="#type-AppWindow">AppWindow</a>.
|
| [nocompile] static AppWindow current();
|
| [nocompile, nodoc] static void initializeAppWindow(object state);
|
| };
|
|
|