Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7985)

Unified Diff: chrome/common/extensions/api/app_window.idl

Issue 10878040: Move context-sensitive app.window.* functions to app.window.current().* (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add dom property Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
Mihai Parparita -not on Chrome 2012/08/27 23:21:06 Shouldn't the created_window type now be AppWindow
jeremya 2012/08/30 02:38:54 Done.
+ dictionary AppWindow {
Mihai Parparita -not on Chrome 2012/08/27 23:21:06 Document the .dom property too.
jeremya 2012/08/30 02:38:54 Done.
+ // 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();
};
};

Powered by Google App Engine
This is Rietveld 408576698