Index: chrome/renderer/resources/extensions/app_window_custom_bindings.js |
diff --git a/chrome/renderer/resources/extensions/app_window_custom_bindings.js b/chrome/renderer/resources/extensions/app_window_custom_bindings.js |
index e32bd126cbee849bf577c50dda830f54c91521f0..a060f11d29945fce4f24664fec11305f3d315be8 100644 |
--- a/chrome/renderer/resources/extensions/app_window_custom_bindings.js |
+++ b/chrome/renderer/resources/extensions/app_window_custom_bindings.js |
@@ -103,6 +103,18 @@ appWindow.registerCustomHook(function(bindingsAPI) { |
return { left: bounds.left, top: bounds.top, |
width: bounds.width, height: bounds.height }; |
}; |
+ AppWindow.prototype.getMinWidth = function() { |
+ return appWindowData.minWidth; |
+ }; |
+ AppWindow.prototype.getMinHeight = function() { |
+ return appWindowData.minHeight; |
+ }; |
+ AppWindow.prototype.getMaxWidth = function() { |
+ return appWindowData.maxWidth; |
+ }; |
+ AppWindow.prototype.getMaxHeight = function() { |
+ return appWindowData.maxHeight; |
+ }; |
AppWindow.prototype.isFullscreen = function() { |
return appWindowData.fullscreen; |
}; |
@@ -124,6 +136,10 @@ appWindow.registerCustomHook(function(bindingsAPI) { |
id: params.id || '', |
bounds: { left: params.bounds.left, top: params.bounds.top, |
width: params.bounds.width, height: params.bounds.height }, |
+ minWidth: params.minWidth, |
+ minHeight: params.minHeight, |
+ maxWidth: params.maxWidth, |
+ maxHeight: params.maxHeight, |
fullscreen: params.fullscreen, |
minimized: params.minimized, |
maximized: params.maximized, |