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 226663003: Allow content script insertion on about:-URLs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use matches_about_blank key instead of about:* permission. Created 6 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 unified diff | Download patch
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 "description": "Use the <code>chrome.tabs</code> API to interact with the br owser's tab system. You can use this API to create, modify, and rearrange tabs i n the browser.", 8 "description": "Use the <code>chrome.tabs</code> API to interact with the br owser's tab system. You can use this API to create, modify, and rearrange tabs i n the browser.",
9 "types": [ 9 "types": [
10 { 10 {
(...skipping 20 matching lines...) Expand all
31 } 31 }
32 }, 32 },
33 { 33 {
34 "id": "InjectDetails", 34 "id": "InjectDetails",
35 "type": "object", 35 "type": "object",
36 "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.", 36 "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.",
37 "properties": { 37 "properties": {
38 "code": {"type": "string", "optional": true, "description": "JavaScrip t or CSS code to inject."}, 38 "code": {"type": "string", "optional": true, "description": "JavaScrip t or CSS code to inject."},
39 "file": {"type": "string", "optional": true, "description": "JavaScrip t or CSS file to inject."}, 39 "file": {"type": "string", "optional": true, "description": "JavaScrip t or CSS file to inject."},
40 "allFrames": {"type": "boolean", "optional": true, "description": "If allFrames is <code>true</code>, implies that the JavaScript or CSS should be inj ected into all frames of current page. By default, it's <code>false</code> and i s only injected into the top frame."}, 40 "allFrames": {"type": "boolean", "optional": true, "description": "If allFrames is <code>true</code>, implies that the JavaScript or CSS should be inj ected into all frames of current page. By default, it's <code>false</code> and i s only injected into the top frame."},
41 "matchesAboutBlank": {"type": "boolean", "optional": true, "descriptio n": "If matchesAboutBlank is true, then the code is also injected in about:blank and about:srcdoc frames if your extension has access to its parent document. Co de cannot be inserted in top-level about:-frames. By default it is <code>false</ code>."},
not at google - send to devlin 2014/04/21 19:56:22 s/parent/opener ? also, let's make this an action
robwu 2014/04/21 22:15:41 Done.
41 "runAt": { 42 "runAt": {
42 "type": "string", 43 "type": "string",
43 "optional": true, 44 "optional": true,
44 "enum": ["document_start", "document_end", "document_idle"], 45 "enum": ["document_start", "document_end", "document_idle"],
45 "description": "The soonest that the JavaScript or CSS will be injec ted into the tab. Defaults to \"document_idle\"." 46 "description": "The soonest that the JavaScript or CSS will be injec ted into the tab. Defaults to \"document_idle\"."
46 } 47 }
47 } 48 }
48 } 49 }
49 ], 50 ],
50 "functions": [ 51 "functions": [
(...skipping 866 matching lines...) Expand 10 before | Expand all | Expand 10 after
917 "type": "function", 918 "type": "function",
918 "description": "Fired when a tab is replaced with another tab due to pre rendering or instant.", 919 "description": "Fired when a tab is replaced with another tab due to pre rendering or instant.",
919 "parameters": [ 920 "parameters": [
920 {"type": "integer", "name": "addedTabId", "minimum": 0}, 921 {"type": "integer", "name": "addedTabId", "minimum": 0},
921 {"type": "integer", "name": "removedTabId", "minimum": 0} 922 {"type": "integer", "name": "removedTabId", "minimum": 0}
922 ] 923 ]
923 } 924 }
924 ] 925 ]
925 } 926 }
926 ] 927 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698