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

Side by Side Diff: chrome/common/extensions/docs/experimental.savePage.html

Issue 8631017: Change the first parameter of savePage.saveAsMHTML to be a dictionary. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Reverted test change. Created 9 years 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 | Annotate | Revision Log
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 360 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 </p> 371 </p>
372 372
373 <p> 373 <p>
374 Note that for security reasons a MHTML file can only be loaded from the file 374 Note that for security reasons a MHTML file can only be loaded from the file
375 system and that it can only be loaded in the main frame. 375 system and that it can only be loaded in the main frame.
376 </p> 376 </p>
377 377
378 <h2 id="manifest">Manifest</h2> 378 <h2 id="manifest">Manifest</h2>
379 379
380 <p> 380 <p>
381 The infobars API is currently 381 The savePage API is currently
asargent_no_longer_on_chrome 2011/11/22 18:43:41 nit: I think you actually want to fix this in ch
382 experimental, so you must declare the "experimental" 382 experimental, so you must declare the "experimental"
383 permission to use it. 383 permission to use it.
384 384
385 <!-- END AUTHORED CONTENT --> 385 <!-- END AUTHORED CONTENT -->
386 </p></div> 386 </p></div>
387 387
388 <!-- API PAGE --> 388 <!-- API PAGE -->
389 <div class="apiPage"> 389 <div class="apiPage">
390 <a name="apiReference"></a> 390 <a name="apiReference"></a>
391 <h2>API reference: chrome.experimental.savePage</h2> 391 <h2>API reference: chrome.experimental.savePage</h2>
(...skipping 21 matching lines...) Expand all
413 <a name="global-methods"></a> 413 <a name="global-methods"></a>
414 <h3>Methods</h3> 414 <h3>Methods</h3>
415 415
416 <!-- iterates over all functions --> 416 <!-- iterates over all functions -->
417 <div class="apiItem"> 417 <div class="apiItem">
418 <a name="method-saveAsMHTML"></a> <!-- method-anchor --> 418 <a name="method-saveAsMHTML"></a> <!-- method-anchor -->
419 <h4>saveAsMHTML</h4> 419 <h4>saveAsMHTML</h4>
420 420
421 <div class="summary"><span style="display: none; ">void</span> 421 <div class="summary"><span style="display: none; ">void</span>
422 <!-- Note: intentionally longer 80 columns --> 422 <!-- Note: intentionally longer 80 columns -->
423 <span>chrome.experimental.savePage.saveAsMHTML</span>(<span cl ass="null"><span style="display: none; ">, </span><span>integer</span> 423 <span>chrome.experimental.savePage.saveAsMHTML</span>(<span cl ass="null"><span style="display: none; ">, </span><span>object</span>
424 <var><span>tabId</span></var></span><span class="null"><sp an>, </span><span>function</span> 424 <var><span>details</span></var></span><span class="null">< span>, </span><span>function</span>
425 <var><span>callback</span></var></span>)</div> 425 <var><span>callback</span></var></span>)</div>
426 426
427 <div class="description"> 427 <div class="description">
428 <p class="todo" style="display: none; ">Undocumented.</p> 428 <p class="todo" style="display: none; ">Undocumented.</p>
429 <p>Saves the content of the tab with given id to MHTML.</p> 429 <p>Saves the content of the tab with given id to MHTML.</p>
430 430
431 <!-- PARAMETERS --> 431 <!-- PARAMETERS -->
432 <h4>Parameters</h4> 432 <h4>Parameters</h4>
433 <dl> 433 <dl>
434 <div> 434 <div>
435 <div> 435 <div>
436 <dt> 436 <dt>
437 <var>details</var>
438 <em>
439
440 <!-- TYPE -->
441 <div style="display:inline">
442 (
443 <span class="optional" style="display: none; ">optional</spa n>
444 <span class="enum" style="display: none; ">enumerated</span>
445 <span id="typeTemplate">
446 <span style="display: none; ">
447 <a> Type</a>
448 </span>
449 <span>
450 <span style="display: none; ">
451 array of <span><span></span></span>
452 </span>
453 <span>object</span>
454 <span style="display: none; "></span>
455 </span>
456 </span>
457 )
458 </div>
459
460 </em>
461 </dt>
462 <dd class="todo">
463 Undocumented.
464 </dd>
465 <dd style="display: none; ">
466 Description of this parameter from the json schema.
467 </dd>
468 <dd style="display: none; ">
469 This parameter was added in version
470 <b><span></span></b>.
471 You must omit this parameter in earlier versions,
472 and you may omit it in any version. If you require this
473 parameter, the manifest key
474 <a href="manifest.html#minimum_chrome_version">minimum_chrome_versio n</a>
475 can ensure that your extension won't be run in an earlier browser ve rsion.
476 </dd>
477
478 <!-- OBJECT PROPERTIES -->
479 <dd>
480 <dl>
481 <div>
482 <div>
483 <dt>
437 <var>tabId</var> 484 <var>tabId</var>
438 <em> 485 <em>
439 486
440 <!-- TYPE --> 487 <!-- TYPE -->
441 <div style="display:inline"> 488 <div style="display:inline">
442 ( 489 (
443 <span class="optional" style="display: none; ">optional</spa n> 490 <span class="optional" style="display: none; ">optional</spa n>
444 <span class="enum" style="display: none; ">enumerated</span> 491 <span class="enum" style="display: none; ">enumerated</span>
445 <span id="typeTemplate"> 492 <span id="typeTemplate">
446 <span style="display: none; "> 493 <span style="display: none; ">
447 <a> Type</a> 494 <a> Type</a>
448 </span> 495 </span>
449 <span> 496 <span>
450 <span style="display: none; "> 497 <span style="display: none; ">
451 array of <span><span></span></span> 498 array of <span><span></span></span>
452 </span> 499 </span>
453 <span>integer</span> 500 <span>integer</span>
454 <span style="display: none; "></span> 501 <span style="display: none; "></span>
455 </span> 502 </span>
456 </span> 503 </span>
457 ) 504 )
458 </div> 505 </div>
459 506
460 </em> 507 </em>
461 </dt> 508 </dt>
462 <dd class="todo" style="display: none; "> 509 <dd class="todo" style="display: none; ">
463 Undocumented. 510 Undocumented.
464 </dd> 511 </dd>
465 <dd>The id of the tab to save.</dd> 512 <dd>The id of the tab to save to MHTML.</dd>
466 <dd style="display: none; "> 513 <dd style="display: none; ">
467 This parameter was added in version 514 This parameter was added in version
468 <b><span></span></b>. 515 <b><span></span></b>.
469 You must omit this parameter in earlier versions, 516 You must omit this parameter in earlier versions,
470 and you may omit it in any version. If you require this 517 and you may omit it in any version. If you require this
471 parameter, the manifest key 518 parameter, the manifest key
472 <a href="manifest.html#minimum_chrome_version">minimum_chrome_versio n</a> 519 <a href="manifest.html#minimum_chrome_version">minimum_chrome_versio n</a>
473 can ensure that your extension won't be run in an earlier browser ve rsion. 520 can ensure that your extension won't be run in an earlier browser ve rsion.
474 </dd> 521 </dd>
475 522
(...skipping 16 matching lines...) Expand all
492 <dd style="display: none; "> 539 <dd style="display: none; ">
493 <div></div> 540 <div></div>
494 </dd> 541 </dd>
495 542
496 <!-- FUNCTION PARAMETERS --> 543 <!-- FUNCTION PARAMETERS -->
497 <dd style="display: none; "> 544 <dd style="display: none; ">
498 <div></div> 545 <div></div>
499 </dd> 546 </dd>
500 547
501 </div> 548 </div>
549 </div>
550 </dl>
551 </dd>
552
553 <!-- OBJECT METHODS -->
554 <dd style="display: none; ">
555 <div></div>
556 </dd>
557
558 <!-- OBJECT EVENT FIELDS -->
559 <dd style="display: none; ">
560 <div></div>
561 </dd>
562
563 <!-- FUNCTION PARAMETERS -->
564 <dd style="display: none; ">
565 <div></div>
566 </dd>
567
568 </div>
502 </div><div> 569 </div><div>
503 <div> 570 <div>
504 <dt> 571 <dt>
505 <var>callback</var> 572 <var>callback</var>
506 <em> 573 <em>
507 574
508 <!-- TYPE --> 575 <!-- TYPE -->
509 <div style="display:inline"> 576 <div style="display:inline">
510 ( 577 (
511 <span class="optional" style="display: none; ">optional</spa n> 578 <span class="optional" style="display: none; ">optional</spa n>
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
788 _uff=0; 855 _uff=0;
789 urchinTracker(); 856 urchinTracker();
790 } 857 }
791 catch(e) {/* urchinTracker not available. */} 858 catch(e) {/* urchinTracker not available. */}
792 </script> 859 </script>
793 <!-- end analytics --> 860 <!-- end analytics -->
794 </div> 861 </div>
795 </div> <!-- /gc-footer --> 862 </div> <!-- /gc-footer -->
796 </div> <!-- /gc-container --> 863 </div> <!-- /gc-container -->
797 </body></html> 864 </body></html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698