Chromium Code Reviews| 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..5e452fb58e1a0ce8a8650a8df5ec9b31a65a44a1 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 |undefined| to remove |
|
benwells
2013/10/22 21:03:02
Nit: document as set to null or call without a par
jackhou1
2013/10/23 01:54:14
Done.
|
| + // the constraint. |
| + static void setMinWidth(optional long minWidth); |
| + |
| + // Set the current minimum height of the window. Set to |undefined| to |
| + // remove the constraint. |
| + static void setMinHeight(optional long minHeight); |
| + |
| + // Set the current maximum width of the window. Set to |undefined| to remove |
| + // the constraint. |
| + static void setMaxWidth(optional long maxWidth); |
| + |
| + // Set the current maximum height of the window. Set to |undefined| 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. |