Index: chrome/common/extensions/api/extension_api.json |
diff --git a/chrome/common/extensions/api/extension_api.json b/chrome/common/extensions/api/extension_api.json |
index 0486385be3aea56411b59b2104cbad0055c959ea..25ff2418cbef13194243c7036376f72f7c6b9a1b 100644 |
--- a/chrome/common/extensions/api/extension_api.json |
+++ b/chrome/common/extensions/api/extension_api.json |
@@ -1157,7 +1157,12 @@ |
"type": "string", |
"description": "The type of browser window this is.", |
"enum": ["normal", "popup", "panel", "app"] |
- } |
+ }, |
+ "state": { |
+ "type": "string", |
+ "description": "The state of this browser window.", |
+ "enum": ["normal", "minimized", "maximized"] |
+ } |
} |
} |
], |
@@ -1305,7 +1310,13 @@ |
"width": {"type": "integer", "minimum": 0, "optional": true, "description": "The width to resize the window to in pixels. This value is ignored for panels."}, |
"height": {"type": "integer", "minimum": 0, "optional": true, "description": "The height to resize the window to in pixels. This value is ignored for panels."}, |
"focused": {"type": "boolean", "optional": true, "description": "If true, brings the window to the front. If false, brings the next window in the z-order to the front."}, |
- "drawAttention": {"type": "boolean", "optional": true, "description": "If true, causes the window to be displayed in a manner that draws the user's attention to the window, without changing the focused window. The effect lasts until the user changes focus to the window. This option has no effect if set to false or if the window already has focus."} |
+ "drawAttention": {"type": "boolean", "optional": true, "description": "If true, causes the window to be displayed in a manner that draws the user's attention to the window, without changing the focused window. The effect lasts until the user changes focus to the window. This option has no effect if set to false or if the window already has focus."}, |
+ "state": { |
+ "type": "string", |
+ "optional": true, |
+ "description": "The new state of the window. When 'minimized' or 'maximized' is used, 'left', 'top', 'width' or 'height' are ignored.", |
+ "enum": ["normal", "minimized", "maximized"] |
+ } |
} |
}, |
{ |