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

Unified Diff: chrome/common/extensions/api/windows.json

Issue 10025007: Convert tabs, windows, and extension APIs to feature system. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: blah Created 8 years, 8 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
« no previous file with comments | « chrome/common/extensions/api/tabs.json ('k') | chrome/common/extensions/extension_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 &mdash; 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": [
« no previous file with comments | « chrome/common/extensions/api/tabs.json ('k') | chrome/common/extensions/extension_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698