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

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

Issue 610643003: Adds new webview.loadDataWithBaseUrl API to allow data URLs to be loaded with a specified base URL … (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comment. Created 6 years, 2 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/web_view/web_view_internal_api.h " 10 "implemented_in": "extensions/browser/api/web_view/web_view_internal_api.h "
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 "type": "function", 177 "type": "function",
178 "parameters": [ 178 "parameters": [
179 { 179 {
180 "type": "integer", 180 "type": "integer",
181 "name": "instanceId", 181 "name": "instanceId",
182 "description": "The instance ID of the guest <webview> process." 182 "description": "The instance ID of the guest <webview> process."
183 }, 183 },
184 { 184 {
185 "type": "function", 185 "type": "function",
186 "name": "callback", 186 "name": "callback",
187 "description": "Called after the current zoom factor is retreived.", 187 "description": "Called after the current zoom factor is retrieved.",
188 "parameters": [ 188 "parameters": [
189 { 189 {
190 "type": "number", 190 "type": "number",
191 "name": "zoomFactor", 191 "name": "zoomFactor",
192 "description": "The current zoom factor." 192 "description": "The current zoom factor."
193 } 193 }
194 ] 194 ]
195 } 195 }
196 ] 196 ]
197 }, 197 },
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 { 287 {
288 "type": "string", 288 "type": "string",
289 "name": "action", 289 "name": "action",
290 "description": "Determines what to do with the active match after th e find session has ended. 'clear' will clear the highlighting over the active ma tch; 'keep' will keep the active match highlighted; 'activate' will keep the act ive match highlighted and simulate a user click on that match.", 290 "description": "Determines what to do with the active match after th e find session has ended. 'clear' will clear the highlighting over the active ma tch; 'keep' will keep the active match highlighted; 'activate' will keep the act ive match highlighted and simulate a user click on that match.",
291 "optional": true, 291 "optional": true,
292 "enum": ["clear", "keep", "activate"] 292 "enum": ["clear", "keep", "activate"]
293 } 293 }
294 ] 294 ]
295 }, 295 },
296 { 296 {
297 "name": "loadDataWithBaseUrl",
298 "type": "function",
299 "description": "Loads a data URL with a specified base URL used for rela tive links. Optionally, a virtual URL can be provided to be shown to the user in stead of the data URL.",
300 "parameters": [
301 {
302 "type": "integer",
303 "name": "instanceId",
304 "description": "The instance ID of the guest <webview> process."
305 },
306 {
307 "type": "string",
308 "name": "dataUrl",
309 "description" : "The data URL to load."
310 },
311 {
312 "type": "string",
313 "name": "baseUrl",
314 "description": "The base URL that will be used for relative links."
315 },
316 {
317 "type": "string",
318 "name": "virtualUrl",
319 "description": "The URL that will be displayed to the user.",
320 "optional": true
321 },
322 {
323 "type": "function",
324 "name": "callback",
325 "description": "Called internally for the purpose of reporting error s to console.error().",
326 "parameters": []
327 }
328 ]
329 },
330 {
297 "name": "go", 331 "name": "go",
298 "type": "function", 332 "type": "function",
299 "parameters": [ 333 "parameters": [
300 { 334 {
301 "type": "integer", 335 "type": "integer",
302 "name": "instanceId" 336 "name": "instanceId"
303 }, 337 },
304 { 338 {
305 "type": "integer", 339 "type": "integer",
306 "name": "relativeIndex" 340 "name": "relativeIndex"
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
452 "type": "function", 486 "type": "function",
453 "description": "Called when deletion has completed.", 487 "description": "Called when deletion has completed.",
454 "optional": true, 488 "optional": true,
455 "parameters": [] 489 "parameters": []
456 } 490 }
457 ] 491 ]
458 } 492 }
459 ] 493 ]
460 } 494 }
461 ] 495 ]
OLDNEW
« no previous file with comments | « extensions/browser/guest_view/web_view/web_view_guest.cc ('k') | extensions/renderer/resources/web_view_experimental.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698