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

Side by Side Diff: chrome/common/extensions/docs/tabs.html

Issue 1527015: Support PNG and quality control in chrome.tabs.captureVisibleTab(). (Closed)
Patch Set: Rebase for checkin. Created 10 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 <!DOCTYPE html><!-- This page is a placeholder for generated extensions api doc. Note: 1 <!DOCTYPE html><!-- This page is a placeholder for generated extensions api doc. Note:
2 1) The <head> information in this page is significant, should be uniform 2 1) The <head> information in this page is significant, should be uniform
3 across api docs and should be edited only with knowledge of the 3 across api docs and should be edited only with knowledge of the
4 templating mechanism. 4 templating mechanism.
5 3) All <body>.innerHTML is genereated as an rendering step. If viewed in a 5 3) All <body>.innerHTML is genereated as an rendering step. If viewed in a
6 browser, it will be re-generated from the template, json schema and 6 browser, it will be re-generated from the template, json schema and
7 authored overview content. 7 authored overview content.
8 4) The <body>.innerHTML is also generated by an offline step so that this 8 4) The <body>.innerHTML is also generated by an offline step so that this
9 page may easily be indexed by search engines. 9 page may easily be indexed by search engines.
10 --><html xmlns="http://www.w3.org/1999/xhtml"><head> 10 --><html xmlns="http://www.w3.org/1999/xhtml"><head>
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after
362 <h3>Methods</h3> 362 <h3>Methods</h3>
363 363
364 <!-- iterates over all functions --> 364 <!-- iterates over all functions -->
365 <div class="apiItem"> 365 <div class="apiItem">
366 <a name="method-captureVisibleTab"></a> <!-- method-anchor --> 366 <a name="method-captureVisibleTab"></a> <!-- method-anchor -->
367 <h4>captureVisibleTab</h4> 367 <h4>captureVisibleTab</h4>
368 368
369 <div class="summary"><span style="display: none; ">void</span> 369 <div class="summary"><span style="display: none; ">void</span>
370 <!-- Note: intentionally longer 80 columns --> 370 <!-- Note: intentionally longer 80 columns -->
371 <span>chrome.tabs.captureVisibleTab</span>(<span class="option al"><span style="display: none; ">, </span><span>integer</span> 371 <span>chrome.tabs.captureVisibleTab</span>(<span class="option al"><span style="display: none; ">, </span><span>integer</span>
372 <var><span>windowId</span></var></span><span class="null"> <span>, </span><span>function</span> 372 <var><span>windowId</span></var></span><span class="option al"><span>, </span><span>object</span>
373 <var><span>options</span></var></span><span class="null">< span>, </span><span>function</span>
373 <var><span>callback</span></var></span>)</div> 374 <var><span>callback</span></var></span>)</div>
374 375
375 <div class="description"> 376 <div class="description">
376 <p class="todo" style="display: none; ">Undocumented.</p> 377 <p class="todo" style="display: none; ">Undocumented.</p>
377 <p>Captures the visible area of the currently selected tab in th e specified window.</p> 378 <p>Captures the visible area of the currently selected tab in th e specified window.</p>
378 379
379 <!-- PARAMETERS --> 380 <!-- PARAMETERS -->
380 <h4>Parameters</h4> 381 <h4>Parameters</h4>
381 <dl> 382 <dl>
382 <div> 383 <div>
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
416 <div> 417 <div>
417 <div> 418 <div>
418 </div> 419 </div>
419 </div> 420 </div>
420 </dl> 421 </dl>
421 </dd> 422 </dd>
422 </div> 423 </div>
423 </div><div> 424 </div><div>
424 <div> 425 <div>
425 <dt> 426 <dt>
427 <var>options</var>
428 <em>
429
430 <!-- TYPE -->
431 <div style="display:inline">
432 (
433 <span class="optional">optional</span>
434 <span id="typeTemplate">
435 <span style="display: none; ">
436 <a> Type</a>
437 </span>
438 <span>
439 <span style="display: none; ">
440 array of <span><span></span></span>
441 </span>
442 <span>object</span>
443 </span>
444 </span>
445 )
446 </div>
447
448 </em>
449 </dt>
450 <dd class="todo" style="display: none; ">
451 Undocumented.
452 </dd>
453 <dd>Set parameters of image capture, such as the format of the resulti ng image. This parameter was added in version 5.0 . Earlier versions of chrome will throw an exception unless you omit it.</dd>
454
455 <!-- OBJECT PROPERTIES -->
456 <dd>
457 <dl>
458 <div>
459 <div>
460 <dt>
461 <var>format</var>
462 <em>
463
464 <!-- TYPE -->
465 <div style="display:inline">
466 (
467 <span class="optional">optional</span>
468 <span id="typeTemplate">
469 <span style="display: none; ">
470 <a> Type</a>
471 </span>
472 <span>
473 <span style="display: none; ">
474 array of <span><span></span></span>
475 </span>
476 <span>string</span>
477 </span>
478 </span>
479 )
480 </div>
481
482 </em>
483 </dt>
484 <dd class="todo" style="display: none; ">
485 Undocumented.
486 </dd>
487 <dd>The format of the resulting image. Default is jpeg.</dd>
488
489 <!-- OBJECT PROPERTIES -->
490 <dd style="display: none; ">
491 <dl>
492 <div>
493 <div>
494 </div>
495 </div>
496 </dl>
497 </dd>
498 </div>
499 </div><div>
500 <div>
501 <dt>
502 <var>quality</var>
503 <em>
504
505 <!-- TYPE -->
506 <div style="display:inline">
507 (
508 <span class="optional">optional</span>
509 <span id="typeTemplate">
510 <span style="display: none; ">
511 <a> Type</a>
512 </span>
513 <span>
514 <span style="display: none; ">
515 array of <span><span></span></span>
516 </span>
517 <span>integer</span>
518 </span>
519 </span>
520 )
521 </div>
522
523 </em>
524 </dt>
525 <dd class="todo" style="display: none; ">
526 Undocumented.
527 </dd>
528 <dd>When format is 'jpeg', controls the quality of the resulting image . This value is ignored for PNG images. As quality is decreased, the resulting image will have more visual artifacts, and the number of bytes needed to store it will decrease.</dd>
529
530 <!-- OBJECT PROPERTIES -->
531 <dd style="display: none; ">
532 <dl>
533 <div>
534 <div>
535 </div>
536 </div>
537 </dl>
538 </dd>
539 </div>
540 </div>
541 </dl>
542 </dd>
543 </div>
544 </div><div>
545 <div>
546 <dt>
426 <var>callback</var> 547 <var>callback</var>
427 <em> 548 <em>
428 549
429 <!-- TYPE --> 550 <!-- TYPE -->
430 <div style="display:inline"> 551 <div style="display:inline">
431 ( 552 (
432 <span class="optional" style="display: none; ">optional</spa n> 553 <span class="optional" style="display: none; ">optional</spa n>
433 <span id="typeTemplate"> 554 <span id="typeTemplate">
434 <span style="display: none; "> 555 <span style="display: none; ">
435 <a> Type</a> 556 <a> Type</a>
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
513 </span> 634 </span>
514 </span> 635 </span>
515 ) 636 )
516 </div> 637 </div>
517 638
518 </em> 639 </em>
519 </dt> 640 </dt>
520 <dd class="todo" style="display: none; "> 641 <dd class="todo" style="display: none; ">
521 Undocumented. 642 Undocumented.
522 </dd> 643 </dd>
523 <dd>A data URL of a JPEG encoding of the visible area of the captured tab. May be assigned to the 'src' property of an HTML Image element for display. </dd> 644 <dd>A data URL which encodes an image of the visible area of the captu red tab. May be assigned to the 'src' property of an HTML Image element for disp lay.</dd>
524 645
525 <!-- OBJECT PROPERTIES --> 646 <!-- OBJECT PROPERTIES -->
526 <dd style="display: none; "> 647 <dd style="display: none; ">
527 <dl> 648 <dl>
528 <div> 649 <div>
529 <div> 650 <div>
530 </div> 651 </div>
531 </div> 652 </div>
532 </dl> 653 </dl>
533 </dd> 654 </dd>
(...skipping 4436 matching lines...) Expand 10 before | Expand all | Expand 10 after
4970 _uff=0; 5091 _uff=0;
4971 urchinTracker(); 5092 urchinTracker();
4972 } 5093 }
4973 catch(e) {/* urchinTracker not available. */} 5094 catch(e) {/* urchinTracker not available. */}
4974 </script> 5095 </script>
4975 <!-- end analytics --> 5096 <!-- end analytics -->
4976 </div> 5097 </div>
4977 </div> <!-- /gc-footer --> 5098 </div> <!-- /gc-footer -->
4978 </div> <!-- /gc-container --> 5099 </div> <!-- /gc-container -->
4979 </body></html> 5100 </body></html>
OLDNEW
« no previous file with comments | « chrome/common/extensions/api/extension_api.json ('k') | chrome/renderer/extensions/extension_api_client_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698