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

Side by Side Diff: chrome/common/extensions/api/tabs.json

Issue 10920070: Remove permission warnings from most tabs and windows APIs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 [ 5 [
6 { 6 {
7 "namespace": "tabs", 7 "namespace": "tabs",
8 "dependencies": [ "extension", "windows" ], 8 "dependencies": [ "extension", "windows" ],
9 "types": [ 9 "types": [
10 { 10 {
11 "id": "Tab", 11 "id": "Tab",
12 "type": "object", 12 "type": "object",
13 "properties": { 13 "properties": {
14 "id": {"type": "integer", "minimum": 0, "description": "The ID of the tab. Tab IDs are unique within a browser session."}, 14 "id": {"type": "integer", "minimum": 0, "description": "The ID of the tab. Tab IDs are unique within a browser session."},
15 "index": {"type": "integer", "minimum": 0, "description": "The zero-ba sed index of the tab within its window."}, 15 "index": {"type": "integer", "minimum": 0, "description": "The zero-ba sed index of the tab within its window."},
16 "windowId": {"type": "integer", "minimum": 0, "description": "The ID o f the window the tab is contained within."}, 16 "windowId": {"type": "integer", "minimum": 0, "description": "The ID o f the window the tab is contained within."},
17 "openerTabId": {"type": "integer", "minimum": 0, "optional": true, "de scription": "The ID of the tab that opened this tab, if any. This will only be p resent if the opener tab still exists."}, 17 "openerTabId": {"type": "integer", "minimum": 0, "optional": true, "de scription": "The ID of the tab that opened this tab, if any. This will only be p resent if the opener tab still exists."},
18 "selected": {"type": "boolean", "description": "Whether the tab is sel ected.", "nodoc": true}, 18 "selected": {"type": "boolean", "description": "Whether the tab is sel ected.", "nodoc": true},
19 "highlighted": {"type": "boolean", "description": "Whether the tab is highlighted."}, 19 "highlighted": {"type": "boolean", "description": "Whether the tab is highlighted."},
20 "active": {"type": "boolean", "description": "Whether the tab is activ e in its window."}, 20 "active": {"type": "boolean", "description": "Whether the tab is activ e in its window."},
21 "pinned": {"type": "boolean", "description": "Whether the tab is pinne d."}, 21 "pinned": {"type": "boolean", "description": "Whether the tab is pinne d."},
22 "url": {"type": "string", "description": "The URL the tab is displayin g."}, 22 "url": {"type": "string", "optional": true, "description": "The URL th e tab is displaying. This will only be present if the extension has the 'tabs' o r 'webNavigation' permission."},
23 "title": {"type": "string", "optional": true, "description": "The titl e of the tab. This may not be available if the tab is loading."}, 23 "title": {"type": "string", "optional": true, "optional": true, "descr iption": "The title of the tab. This will only be present if the extension has t he 'tabs' or 'webNavigation' permission. It may also be an empty string if the t ab is loading."},
24 "favIconUrl": {"type": "string", "optional": true, "description": "The URL of the tab's favicon. This may not be available if the tab is loading."}, 24 "favIconUrl": {"type": "string", "optional": true, "optional": true, " description": "The URL of the tab's favicon. This will only be present if the ex tension has the 'tabs' or 'webNavigation' permission. It may also be an empty st ring if the tab is loading."},
25 "status": {"type": "string", "optional": true, "description": "Either <em>loading</em> or <em>complete</em>."}, 25 "status": {"type": "string", "optional": true, "description": "Either <em>loading</em> or <em>complete</em>."},
26 "incognito": {"type": "boolean", "description": "Whether the tab is in an incognito window."} 26 "incognito": {"type": "boolean", "description": "Whether the tab is in an incognito window."}
27 } 27 }
28 }, 28 },
29 { 29 {
30 "id": "InjectDetails", 30 "id": "InjectDetails",
31 "type": "object", 31 "type": "object",
32 "description": "Details of the script or CSS to inject. Either the code or the file property must be set, but both may not be set at the same time.", 32 "description": "Details of the script or CSS to inject. Either the code or the file property must be set, but both may not be set at the same time.",
33 "properties": { 33 "properties": {
34 "code": {"type": "string", "optional": true, "description": "JavaScrip t or CSS code to inject."}, 34 "code": {"type": "string", "optional": true, "description": "JavaScrip t or CSS code to inject."},
(...skipping 853 matching lines...) Expand 10 before | Expand all | Expand 10 after
888 "name": "removeInfo", 888 "name": "removeInfo",
889 "properties": { 889 "properties": {
890 "isWindowClosing": {"type": "boolean", "description": "True when t he tab is being closed because its window is being closed." } 890 "isWindowClosing": {"type": "boolean", "description": "True when t he tab is being closed because its window is being closed." }
891 } 891 }
892 } 892 }
893 ] 893 ]
894 } 894 }
895 ] 895 ]
896 } 896 }
897 ] 897 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698