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

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

Issue 1058113002: Implement <webview>.addContentScript/removeContentScript API [3] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@webui_api_1
Patch Set: Created 5 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 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": "webViewInternal", 7 "namespace": "webViewInternal",
8 "description": "none", 8 "description": "none",
9 "compiler_options": { 9 "compiler_options": {
10 "implemented_in": "extensions/browser/api/guest_view/web_view/web_view_int ernal_api.h" 10 "implemented_in": "extensions/browser/api/guest_view/web_view/web_view_int ernal_api.h"
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 "items": { "type": "string"}, 113 "items": { "type": "string"},
114 "optional": true, 114 "optional": true,
115 "description": "The list of CSS files to be injected into matching p ages. These are injected in the order they appear in this array, before any DOM is constructed or displayed for the page." 115 "description": "The list of CSS files to be injected into matching p ages. These are injected in the order they appear in this array, before any DOM is constructed or displayed for the page."
116 }, 116 },
117 "js": { 117 "js": {
118 "type": "array", 118 "type": "array",
119 "items": { "type": "string"}, 119 "items": { "type": "string"},
120 "optional": true, 120 "optional": true,
121 "description": "The list of JavaScript files to be injected into mat ching pages. These are injected in the order they appear in this array." 121 "description": "The list of JavaScript files to be injected into mat ching pages. These are injected in the order they appear in this array."
122 }, 122 },
123 "code": {
124 "type": "array",
xiyuan 2015/04/07 20:35:02 Shouldn't a string be sufficient?
Xi Han 2015/04/07 20:43:10 I just make the "code" be consistent with "js" or
xiyuan 2015/04/07 21:13:14 "js"/"css" refers to files and it makes sense to h
Xi Han 2015/04/08 14:47:40 Your point makes sense to me. Updated to a string:
125 "items": { "type": "string"},
126 "optional": true,
127 "description": "The list of JavaScript code to be injected into matc hing pages. These are injected in the order they appear in this array."
128 },
123 "run_at": { 129 "run_at": {
124 "type": "string", 130 "type": "string",
125 "optional": true, 131 "optional": true,
126 "enum": ["document_start", "document_end", "document_idle"], 132 "enum": ["document_start", "document_end", "document_idle"],
127 "description": "The soonest that the JavaScript or CSS will be injec ted into the tab. Defaults to \"document_idle\"." 133 "description": "The soonest that the JavaScript or CSS will be injec ted into the tab. Defaults to \"document_idle\"."
128 }, 134 },
129 "all_frames": { 135 "all_frames": {
130 "type": "boolean", 136 "type": "boolean",
131 "optional": true, 137 "optional": true,
132 "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." 138 "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."
(...skipping 551 matching lines...) Expand 10 before | Expand all | Expand 10 after
684 "type": "function", 690 "type": "function",
685 "description": "Called when deletion has completed.", 691 "description": "Called when deletion has completed.",
686 "optional": true, 692 "optional": true,
687 "parameters": [] 693 "parameters": []
688 } 694 }
689 ] 695 ]
690 } 696 }
691 ] 697 ]
692 } 698 }
693 ] 699 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698