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

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

Issue 10915085: Functions for accessing app window properties, and modifying AppWindow-specifics (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: stray event, js linter Created 8 years, 3 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_current_window_internal.idl
diff --git a/chrome/common/extensions/api/app_current_window_internal.idl b/chrome/common/extensions/api/app_current_window_internal.idl
index 639a44df5a3e106a3f44c5df8c1d8b484c6c9e53..d355693867b312b65be2817ebfdfa516dfba7315 100644
--- a/chrome/common/extensions/api/app_current_window_internal.idl
+++ b/chrome/common/extensions/api/app_current_window_internal.idl
@@ -3,7 +3,25 @@
// found in the LICENSE file.
[internal, nodoc] namespace app.currentWindowInternal {
+
+ // used on a developer refresh to retrieve ShellWindow values
+ dictionary WindowCacheRefresh {
+ long minWidth;
+ long minHeight;
+ long maxWidth;
+ long maxHeight;
+ DOMString windowKey;
+ DOMString windowState;
+ DOMString windowType;
+ DOMString frameType;
+ };
+
+ callback CacheRefreshCallback = void (WindowCacheRefresh state);
+
interface Functions {
+ // Get the frame type (e.g. 'none' or 'chrome')
+ static void getState(CacheRefreshCallback callback);
+
// Focus the window.
static void focus();
@@ -15,5 +33,11 @@
// Restore the window.
static void restore();
+
+ // Update the minimum user-resizable dimensions of the window
+ static void setMinSize(long x, long y);
+
+ // Update the maximum user-resizable dimensions of the window
+ static void setMaxSize(long x, long y);
};
};

Powered by Google App Engine
This is Rietveld 408576698