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

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

Issue 25449002: Add chrome.app.window.[get|set][Min|Max][Width|Height] (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync and rebase Created 7 years, 2 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 65f34f853cb615a80bfe16a6ea0cf52301429073..aed6b394ce22ddc31c6a74a891e8874636f8de4c 100644
--- a/chrome/common/extensions/api/app_window.idl
+++ b/chrome/common/extensions/api/app_window.idl
@@ -54,16 +54,16 @@ namespace app.window {
// Y coordinate of the window. (Deprecated; use 'bounds'.)
[nodoc] long? top;
- // Minimum width for the lifetime of the window.
+ // Minimum width of the window.
long? minWidth;
- // Minimum height for the lifetime of the window.
+ // Minimum height of the window.
long? minHeight;
- // Maximum width for the lifetime of the window.
+ // Maximum width of the window.
long? maxWidth;
- // Maximum height for the lifetime of the window.
+ // Maximum height of the window.
long? maxHeight;
// Type of window to create.
@@ -174,6 +174,38 @@ namespace app.window {
// Set the window's bounds.
static void setBounds(Bounds bounds);
+ // Get the current minimum width of the window. Returns |undefined| if there
+ // is no minimum.
+ [nocompile] static long getMinWidth();
+
+ // Get the current minimum height of the window. Returns |undefined| if
+ // there is no minimum.
+ [nocompile] static long getMinHeight();
+
+ // Get the current maximum width of the window. Returns |undefined| if there
+ // is no maximum.
+ [nocompile] static long getMaxWidth();
+
+ // Get the current maximum height of the window. Returns |undefined| if
+ // there is no maximum.
+ [nocompile] static long getMaxHeight();
+
+ // Set the current minimum width of the window. Set to |null| to remove the
+ // constraint.
+ static void setMinWidth(optional long minWidth);
+
+ // Set the current minimum height of the window. Set to |null| to remove the
+ // constraint.
+ static void setMinHeight(optional long minHeight);
+
+ // Set the current maximum width of the window. Set to |null| to remove the
+ // constraint.
+ static void setMaxWidth(optional long maxWidth);
+
+ // Set the current maximum height of the window. Set to |null| to remove the
+ // constraint.
+ static void setMaxHeight(optional long maxHeight);
+
// Set the app icon for the window (experimental).
// Currently this is only being implemented on Ash.
// TODO(stevenjb): Investigate implementing this on Windows and OSX.

Powered by Google App Engine
This is Rietveld 408576698