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

Unified Diff: chrome/renderer/resources/extensions/app_window_custom_bindings.js

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/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,
« no previous file with comments | « chrome/common/extensions/api/app_window.idl ('k') | chrome/test/data/extensions/platform_apps/windows_api/test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698