Index: chrome/common/extensions/api/windows.json |
diff --git a/chrome/common/extensions/api/windows.json b/chrome/common/extensions/api/windows.json |
index 573a93c0723d9836aa5674adc26090595e1faa86..79527a58728fbbec61ed5dca30aa1701202afc34 100644 |
--- a/chrome/common/extensions/api/windows.json |
+++ b/chrome/common/extensions/api/windows.json |
@@ -5,7 +5,12 @@ |
[ |
{ |
"namespace": "windows", |
- "dependencies": [ "tabs" ], |
+ "uses_feature_system": true, |
+ "extension_types": ["extension", "packaged_app", "platform_app"], |
+ // unblessed_extension and content_script are required because this module |
+ // is needed by tabs.json, which is needed by extension.json. |
+ "contexts": ["blessed_extension", "unblessed_extension", "content_script"], |
+ "dependencies": ["api:tabs"], |
"types": [ |
{ |
"id": "Window", |
@@ -48,6 +53,8 @@ |
"functions": [ |
{ |
"name": "get", |
+ "contexts": ["blessed_extension"], |
+ "dependencies": ["permission:tabs"], |
"type": "function", |
"description": "Gets details about a window.", |
"parameters": [ |
@@ -74,6 +81,8 @@ |
}, |
{ |
"name": "getCurrent", |
+ "contexts": ["blessed_extension"], |
+ "dependencies": ["permission:tabs"], |
"type": "function", |
"description": "Gets the <a href='#current-window'>current window</a>.", |
"parameters": [ |
@@ -99,6 +108,8 @@ |
}, |
{ |
"name": "getLastFocused", |
+ "contexts": ["blessed_extension"], |
+ "dependencies": ["permission:tabs"], |
"type": "function", |
"description": "Gets the window that was most recently focused — typically the window 'on top'.", |
"parameters": [ |
@@ -124,6 +135,8 @@ |
}, |
{ |
"name": "getAll", |
+ "contexts": ["blessed_extension"], |
+ "dependencies": ["permission:tabs"], |
"type": "function", |
"description": "Gets all windows.", |
"parameters": [ |
@@ -149,6 +162,8 @@ |
}, |
{ |
"name": "create", |
+ "contexts": ["blessed_extension"], |
+ "dependencies": ["permission:tabs"], |
"type": "function", |
"description": "Creates (opens) a new browser with any optional sizing, position or default URL provided.", |
"parameters": [ |
@@ -196,6 +211,8 @@ |
}, |
{ |
"name": "update", |
+ "contexts": ["blessed_extension"], |
+ "dependencies": ["permission:tabs"], |
"type": "function", |
"description": "Updates the properties of a window. Specify only the properties that you want to change; unspecified properties will be left unchanged.", |
"parameters": [ |
@@ -232,6 +249,8 @@ |
}, |
{ |
"name": "remove", |
+ "contexts": ["blessed_extension"], |
+ "dependencies": ["permission:tabs"], |
"type": "function", |
"description": "Removes (closes) a window, and all the tabs inside it.", |
"parameters": [ |
@@ -243,6 +262,8 @@ |
"events": [ |
{ |
"name": "onCreated", |
+ "contexts": ["blessed_extension"], |
+ "dependencies": ["permission:tabs"], |
"type": "function", |
"description": "Fired when a window is created.", |
"parameters": [ |
@@ -255,6 +276,8 @@ |
}, |
{ |
"name": "onRemoved", |
+ "contexts": ["blessed_extension"], |
+ "dependencies": ["permission:tabs"], |
"type": "function", |
"description": "Fired when a window is removed (closed).", |
"parameters": [ |
@@ -263,6 +286,8 @@ |
}, |
{ |
"name": "onFocusChanged", |
+ "contexts": ["blessed_extension"], |
+ "dependencies": ["permission:tabs"], |
"type": "function", |
"description": "Fired when the currently focused window changes. Will be chrome.windows.WINDOW_ID_NONE if all chrome windows have lost focus. Note: On some Linux window managers, WINDOW_ID_NONE will always be sent immediately preceding a switch from one chrome window to another.", |
"parameters": [ |