diff options
author | asargent@chromium.org <asargent@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-25 04:28:24 +0000 |
---|---|---|
committer | asargent@chromium.org <asargent@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-25 04:28:24 +0000 |
commit | 233a6cceddb7c3446959ac6d590901f0a6365949 (patch) | |
tree | 83ab64d0d375b5da88919b227a670dc8d4c537bc /chrome/common/extensions/api/app_current_window_internal.idl | |
parent | ff828bfe316ea0ccd4a535b5eaac3220584dd925 (diff) | |
download | chromium_src-233a6cceddb7c3446959ac6d590901f0a6365949.zip chromium_src-233a6cceddb7c3446959ac6d590901f0a6365949.tar.gz chromium_src-233a6cceddb7c3446959ac6d590901f0a6365949.tar.bz2 |
Add setBounds method and browsertest for get/set bounds to app window API
Also fixed a bug where the window bounds were often not set after creation until the window was moved/resized.
BUG=134068
Review URL: https://chromiumcodereview.appspot.com/11369039
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@169391 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/extensions/api/app_current_window_internal.idl')
-rw-r--r-- | chrome/common/extensions/api/app_current_window_internal.idl | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/chrome/common/extensions/api/app_current_window_internal.idl b/chrome/common/extensions/api/app_current_window_internal.idl index 2bf231b..e1a4b3d 100644 --- a/chrome/common/extensions/api/app_current_window_internal.idl +++ b/chrome/common/extensions/api/app_current_window_internal.idl @@ -5,6 +5,18 @@ // This is used by the app window API internally to pass through messages to // the shell window. [internal, nodoc] namespace app.currentWindowInternal { + + // TODO(asargent) - We need to add support for referencing types in + // other namespaces (crbug.com/158654). For now just duplicate this + // dictionary from app.window. + dictionary Bounds { + long? left; + long? top; + long? width; + long? height; + }; + + interface Functions { static void focus(); static void minimize(); @@ -14,5 +26,6 @@ static void clearAttention(); static void show(); static void hide(); + static void setBounds(Bounds bounds); }; }; |