| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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": "webview", | 7 "namespace": "webview", |
| 8 "description": "none", | 8 "description": "none", |
| 9 "dependencies": ["contextMenusInternal"], | 9 "dependencies": ["contextMenusInternal"], |
| 10 "types": [ | 10 "types": [ |
| (...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 338 "description": "Injects JavaScript code into a <webview> page.", | 338 "description": "Injects JavaScript code into a <webview> page.", |
| 339 "parameters": [ | 339 "parameters": [ |
| 340 { | 340 { |
| 341 "type": "integer", | 341 "type": "integer", |
| 342 "name": "instanceId", | 342 "name": "instanceId", |
| 343 "description": "The instance ID of the guest <webview> process." | 343 "description": "The instance ID of the guest <webview> process." |
| 344 }, | 344 }, |
| 345 { | 345 { |
| 346 "type": "string", | 346 "type": "string", |
| 347 "name": "src", | 347 "name": "src", |
| 348 "description": "The src of the guest <webview> process." | 348 "description": "The src of the guest <webview> tag." |
| 349 }, | 349 }, |
| 350 { | 350 { |
| 351 "$ref": "tabs.InjectDetails", | 351 "$ref": "tabs.InjectDetails", |
| 352 "name": "details", | 352 "name": "details", |
| 353 "description": "Details of the script to run." | 353 "description": "Details of the script to run." |
| 354 }, | 354 }, |
| 355 { | 355 { |
| 356 "type": "function", | 356 "type": "function", |
| 357 "name": "callback", | 357 "name": "callback", |
| 358 "optional": true, | 358 "optional": true, |
| 359 "description": "Called after all the JavaScript has been executed.", | 359 "description": "Called after all the JavaScript has been executed.", |
| 360 "parameters": [ | 360 "parameters": [ |
| 361 { | 361 { |
| 362 "name": "result", | 362 "name": "result", |
| 363 "optional": true, | 363 "optional": true, |
| 364 "type": "array", | 364 "type": "array", |
| 365 "items": {"type": "any", "minimum": 0}, | 365 "items": {"type": "any", "minimum": 0}, |
| 366 "description": "The result of the script in every injected frame
." | 366 "description": "The result of the script in every injected frame
." |
| 367 } | 367 } |
| 368 ] | 368 ] |
| 369 } | 369 } |
| 370 ] | 370 ] |
| 371 }, | 371 }, |
| 372 { | 372 { |
| 373 "name": "insertCSS", | 373 "name": "insertCSS", |
| 374 "type": "function", | 374 "type": "function", |
| 375 "description": "Injects JavaScript code into a <webview> page.", | 375 "description": "Injects CSS into a <webview> page. For details, see the
<a href='/extensions/content_scripts#pi'>programmatic injection</a> section of t
he content scripts doc.", |
| 376 "parameters": [ | 376 "parameters": [ |
| 377 { | 377 { |
| 378 "type": "integer", | 378 "type": "integer", |
| 379 "name": "instanceId", | 379 "name": "instanceId", |
| 380 "description": "The instance ID of the guest <webview> process." | 380 "description": "The instance ID of the guest <webview> process." |
| 381 }, | 381 }, |
| 382 { | 382 { |
| 383 "type": "string", | 383 "type": "string", |
| 384 "name": "src", | 384 "name": "src", |
| 385 "description": "The src of the guest <webview> process." | 385 "description": "The src of the guest <webview> tag." |
| 386 }, | 386 }, |
| 387 { | 387 { |
| 388 "$ref": "tabs.InjectDetails", | 388 "$ref": "tabs.InjectDetails", |
| 389 "name": "details", | 389 "name": "details", |
| 390 "description": "Details of the script to run." | 390 "description": "Details of the CSS text to insert." |
| 391 }, | 391 }, |
| 392 { | 392 { |
| 393 "type": "function", | 393 "type": "function", |
| 394 "name": "callback", | 394 "name": "callback", |
| 395 "optional": true, | 395 "optional": true, |
| 396 "description": "Called after all the JavaScript has been executed.", | 396 "description": "Called when all the CSS has been inserted.", |
| 397 "parameters": [ | 397 "parameters": [] |
| 398 { | |
| 399 "name": "result", | |
| 400 "optional": true, | |
| 401 "type": "array", | |
| 402 "items": {"type": "any", "minimum": 0}, | |
| 403 "description": "The result of the script in every injected frame
." | |
| 404 } | |
| 405 ] | |
| 406 } | 398 } |
| 407 ] | 399 ] |
| 408 }, | 400 }, |
| 409 { | 401 { |
| 410 "name": "captureVisibleRegion", | 402 "name": "captureVisibleRegion", |
| 411 "type": "function", | 403 "type": "function", |
| 412 "description": "Captures the visible area of the currently loaded page i
nside <webview>.", | 404 "description": "Captures the visible area of the currently loaded page i
nside <webview>.", |
| 413 "parameters": [ | 405 "parameters": [ |
| 414 { | 406 { |
| 415 "type": "integer", | 407 "type": "integer", |
| (...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 706 "events": [ | 698 "events": [ |
| 707 { | 699 { |
| 708 "name": "onClicked", | 700 "name": "onClicked", |
| 709 "type": "function", | 701 "type": "function", |
| 710 "nodoc": true, | 702 "nodoc": true, |
| 711 "$ref": "contextMenusInternal.onClicked" | 703 "$ref": "contextMenusInternal.onClicked" |
| 712 } | 704 } |
| 713 ] | 705 ] |
| 714 } | 706 } |
| 715 ] | 707 ] |
| 716 | |
| OLD | NEW |