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

Side by Side Diff: extensions/common/api/extension_types.json

Issue 1628423002: Add frameId to chrome.tabs.executeScript/insertCSS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@permissiondata-remove-process_id
Patch Set: Revert to wc->GetURL for chrome.tabs.update Created 4 years, 11 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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": "extensionTypes", 7 "namespace": "extensionTypes",
8 "description": "The <code>chrome.extensionTypes</code> API contains type dec larations for Chrome extensions.", 8 "description": "The <code>chrome.extensionTypes</code> API contains type dec larations for Chrome extensions.",
9 "types": [ 9 "types": [
10 { 10 {
(...skipping 27 matching lines...) Expand all
38 "enum": ["document_start", "document_end", "document_idle"], 38 "enum": ["document_start", "document_end", "document_idle"],
39 "description": "The soonest that the JavaScript or CSS will be injected into the tab." 39 "description": "The soonest that the JavaScript or CSS will be injected into the tab."
40 }, 40 },
41 { 41 {
42 "id": "InjectDetails", 42 "id": "InjectDetails",
43 "type": "object", 43 "type": "object",
44 "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.", 44 "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.",
45 "properties": { 45 "properties": {
46 "code": {"type": "string", "optional": true, "description": "JavaScrip t or CSS code to inject.<br><br><b>Warning:</b><br>Be careful using the <code>co de</code> parameter. Incorrect use of it may open your extension to <a href=\"ht tps://en.wikipedia.org/wiki/Cross-site_scripting\">cross site scripting</a> atta cks."}, 46 "code": {"type": "string", "optional": true, "description": "JavaScrip t or CSS code to inject.<br><br><b>Warning:</b><br>Be careful using the <code>co de</code> parameter. Incorrect use of it may open your extension to <a href=\"ht tps://en.wikipedia.org/wiki/Cross-site_scripting\">cross site scripting</a> atta cks."},
47 "file": {"type": "string", "optional": true, "description": "JavaScrip t or CSS file to inject."}, 47 "file": {"type": "string", "optional": true, "description": "JavaScrip t or CSS file to inject."},
48 "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."}, 48 "allFrames": {
49 "type": "boolean",
50 "optional": true,
51 "description": "If allFrames is <code>true</code>, implies that the JavaScript or CSS should be injected into all frames of current page. By default , it's <code>false</code> and is only injected into the top frame. If <code>true </code> and <code>frameId</code> is set, then the code is inserted in the select ed frame and all of its child frames."
52 },
53 "frameId": {
54 "type": "integer",
55 "optional": true,
56 "minimum": 0,
57 "description": "The <a href='webNavigation#frame_ids'>frame</a> wher e the script or CSS should be injected."
Devlin 2016/01/25 19:36:40 Mention behavior if not specified.
robwu 2016/01/26 11:03:02 Done.
58 },
49 "matchAboutBlank": {"type": "boolean", "optional": true, "description" : "If matchAboutBlank is true, then the code is also injected in about:blank and about:srcdoc frames if your extension has access to its parent document. Code c annot be inserted in top-level about:-frames. By default it is <code>false</code >."}, 59 "matchAboutBlank": {"type": "boolean", "optional": true, "description" : "If matchAboutBlank is true, then the code is also injected in about:blank and about:srcdoc frames if your extension has access to its parent document. Code c annot be inserted in top-level about:-frames. By default it is <code>false</code >."},
50 "runAt": { 60 "runAt": {
51 "$ref": "RunAt", 61 "$ref": "RunAt",
52 "optional": true, 62 "optional": true,
53 "description": "The soonest that the JavaScript or CSS will be injec ted into the tab. Defaults to \"document_idle\"." 63 "description": "The soonest that the JavaScript or CSS will be injec ted into the tab. Defaults to \"document_idle\"."
54 } 64 }
55 } 65 }
56 } 66 }
57 ] 67 ]
58 } 68 }
59 ] 69 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698