| OLD | NEW |
| 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 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 229 <div class="apiItem"> | 229 <div class="apiItem"> |
| 230 <a name="method-create"></a> <!-- method-anchor --> | 230 <a name="method-create"></a> <!-- method-anchor --> |
| 231 <h4>create</h4> | 231 <h4>create</h4> |
| 232 <div class="summary"> | 232 <div class="summary"> |
| 233 <!-- Note: intentionally longer 80 columns --> | 233 <!-- Note: intentionally longer 80 columns --> |
| 234 <span>chrome.app.window.create</span>(<span class="null"><span
>string</span> | 234 <span>chrome.app.window.create</span>(<span class="null"><span
>string</span> |
| 235 <var><span>url</span></var></span><span class="optional"><
span>, </span><span>app.window.CreateWindowOptions</span> | 235 <var><span>url</span></var></span><span class="optional"><
span>, </span><span>app.window.CreateWindowOptions</span> |
| 236 <var><span>options</span></var></span><span class="optiona
l"><span>, </span><span>function</span> | 236 <var><span>options</span></var></span><span class="optiona
l"><span>, </span><span>function</span> |
| 237 <var><span>CreateWindowCallback</span></var></span>)</div> | 237 <var><span>CreateWindowCallback</span></var></span>)</div> |
| 238 <div class="description"> | 238 <div class="description"> |
| 239 <p>The size and position of a window can be specified in a numbe
r of different ways. The most simple option is not specifying anything at all, i
n which case a default size and platform dependent position will be used. Anothe
r option is to use the top/left and width/height properties, which will always p
ut the window at the specified coordinates with the specified size. Yet another
option is to give the window a (unique) id. This id is then used to remember the
size and position of the window whenever it is moved or resized. This size and
position is then used on subsequent opening of a window with the same id. The de
faultLeft/defaultTop and defaultWidth/defaultHeight properties can be used to sp
ecify a position and size when no geometry has been stored for the window yet. Y
ou can also combine these various options, explicitly specifying for example the
size while having the position be remembered or other combinations like that. S
ize and position are dealt with seperately, but individual coordinates are not.
So if you specify a top (or left) coordinate, you should also specify a left (or
top) coordinate, and similar for size. If you specify both a regular and a defa
ult value for the same option the regular value is the only one that takes effec
t.</p> |
| 239 <!-- PARAMETERS --> | 240 <!-- PARAMETERS --> |
| 240 <h4>Parameters</h4> | 241 <h4>Parameters</h4> |
| 241 <dl> | 242 <dl> |
| 242 <div> | 243 <div> |
| 243 <div> | 244 <div> |
| 244 <dt> | 245 <dt> |
| 245 <var>url</var> | 246 <var>url</var> |
| 246 <em> | 247 <em> |
| 247 <!-- TYPE --> | 248 <!-- TYPE --> |
| 248 <div style="display:inline"> | 249 <div style="display:inline"> |
| (...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 590 </dt> | 591 </dt> |
| 591 <dd class="todo"> | 592 <dd class="todo"> |
| 592 Undocumented. | 593 Undocumented. |
| 593 </dd> | 594 </dd> |
| 594 <!-- OBJECT PROPERTIES --> | 595 <!-- OBJECT PROPERTIES --> |
| 595 <dd> | 596 <dd> |
| 596 <dl> | 597 <dl> |
| 597 <div> | 598 <div> |
| 598 <div> | 599 <div> |
| 599 <dt> | 600 <dt> |
| 601 <var>defaultHeight</var> |
| 602 <em> |
| 603 <!-- TYPE --> |
| 604 <div style="display:inline"> |
| 605 ( |
| 606 <span class="optional">optional</span> |
| 607 <span id="typeTemplate"> |
| 608 <span> |
| 609 <span>integer</span> |
| 610 </span> |
| 611 </span> |
| 612 ) |
| 613 </div> |
| 614 </em> |
| 615 </dt> |
| 616 <dd>Default height of the window.</dd> |
| 617 <!-- OBJECT PROPERTIES --> |
| 618 <!-- OBJECT METHODS --> |
| 619 <!-- OBJECT EVENT FIELDS --> |
| 620 <!-- FUNCTION PARAMETERS --> |
| 621 </div> |
| 622 </div><div> |
| 623 <div> |
| 624 <dt> |
| 625 <var>defaultLeft</var> |
| 626 <em> |
| 627 <!-- TYPE --> |
| 628 <div style="display:inline"> |
| 629 ( |
| 630 <span class="optional">optional</span> |
| 631 <span id="typeTemplate"> |
| 632 <span> |
| 633 <span>integer</span> |
| 634 </span> |
| 635 </span> |
| 636 ) |
| 637 </div> |
| 638 </em> |
| 639 </dt> |
| 640 <dd>Default X coordinate of the window.</dd> |
| 641 <!-- OBJECT PROPERTIES --> |
| 642 <!-- OBJECT METHODS --> |
| 643 <!-- OBJECT EVENT FIELDS --> |
| 644 <!-- FUNCTION PARAMETERS --> |
| 645 </div> |
| 646 </div><div> |
| 647 <div> |
| 648 <dt> |
| 649 <var>defaultTop</var> |
| 650 <em> |
| 651 <!-- TYPE --> |
| 652 <div style="display:inline"> |
| 653 ( |
| 654 <span class="optional">optional</span> |
| 655 <span id="typeTemplate"> |
| 656 <span> |
| 657 <span>integer</span> |
| 658 </span> |
| 659 </span> |
| 660 ) |
| 661 </div> |
| 662 </em> |
| 663 </dt> |
| 664 <dd>Default Y coordinate of the window.</dd> |
| 665 <!-- OBJECT PROPERTIES --> |
| 666 <!-- OBJECT METHODS --> |
| 667 <!-- OBJECT EVENT FIELDS --> |
| 668 <!-- FUNCTION PARAMETERS --> |
| 669 </div> |
| 670 </div><div> |
| 671 <div> |
| 672 <dt> |
| 673 <var>defaultWidth</var> |
| 674 <em> |
| 675 <!-- TYPE --> |
| 676 <div style="display:inline"> |
| 677 ( |
| 678 <span class="optional">optional</span> |
| 679 <span id="typeTemplate"> |
| 680 <span> |
| 681 <span>integer</span> |
| 682 </span> |
| 683 </span> |
| 684 ) |
| 685 </div> |
| 686 </em> |
| 687 </dt> |
| 688 <dd>Default width of the window.</dd> |
| 689 <!-- OBJECT PROPERTIES --> |
| 690 <!-- OBJECT METHODS --> |
| 691 <!-- OBJECT EVENT FIELDS --> |
| 692 <!-- FUNCTION PARAMETERS --> |
| 693 </div> |
| 694 </div><div> |
| 695 <div> |
| 696 <dt> |
| 600 <var>frame</var> | 697 <var>frame</var> |
| 601 <em> | 698 <em> |
| 602 <!-- TYPE --> | 699 <!-- TYPE --> |
| 603 <div style="display:inline"> | 700 <div style="display:inline"> |
| 604 ( | 701 ( |
| 605 <span class="optional">optional</span> | 702 <span class="optional">optional</span> |
| 606 <span id="typeTemplate"> | 703 <span id="typeTemplate"> |
| 607 <span> | 704 <span> |
| 608 <span>string</span> | 705 <span>string</span> |
| 609 </span> | 706 </span> |
| (...skipping 28 matching lines...) Expand all Loading... |
| 638 </dt> | 735 </dt> |
| 639 <dd>Height of the window.</dd> | 736 <dd>Height of the window.</dd> |
| 640 <!-- OBJECT PROPERTIES --> | 737 <!-- OBJECT PROPERTIES --> |
| 641 <!-- OBJECT METHODS --> | 738 <!-- OBJECT METHODS --> |
| 642 <!-- OBJECT EVENT FIELDS --> | 739 <!-- OBJECT EVENT FIELDS --> |
| 643 <!-- FUNCTION PARAMETERS --> | 740 <!-- FUNCTION PARAMETERS --> |
| 644 </div> | 741 </div> |
| 645 </div><div> | 742 </div><div> |
| 646 <div> | 743 <div> |
| 647 <dt> | 744 <dt> |
| 745 <var>id</var> |
| 746 <em> |
| 747 <!-- TYPE --> |
| 748 <div style="display:inline"> |
| 749 ( |
| 750 <span class="optional">optional</span> |
| 751 <span id="typeTemplate"> |
| 752 <span> |
| 753 <span>string</span> |
| 754 </span> |
| 755 </span> |
| 756 ) |
| 757 </div> |
| 758 </em> |
| 759 </dt> |
| 760 <dd>Id to identify the window. This will be used to remember the size
and position of the window and restore that geometry when a window with the same
id (and no explicit size or position) is later opened.</dd> |
| 761 <!-- OBJECT PROPERTIES --> |
| 762 <!-- OBJECT METHODS --> |
| 763 <!-- OBJECT EVENT FIELDS --> |
| 764 <!-- FUNCTION PARAMETERS --> |
| 765 </div> |
| 766 </div><div> |
| 767 <div> |
| 768 <dt> |
| 648 <var>left</var> | 769 <var>left</var> |
| 649 <em> | 770 <em> |
| 650 <!-- TYPE --> | 771 <!-- TYPE --> |
| 651 <div style="display:inline"> | 772 <div style="display:inline"> |
| 652 ( | 773 ( |
| 653 <span class="optional">optional</span> | 774 <span class="optional">optional</span> |
| 654 <span id="typeTemplate"> | 775 <span id="typeTemplate"> |
| 655 <span> | 776 <span> |
| 656 <span>integer</span> | 777 <span>integer</span> |
| 657 </span> | 778 </span> |
| (...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 883 _uff=0; | 1004 _uff=0; |
| 884 urchinTracker(); | 1005 urchinTracker(); |
| 885 } | 1006 } |
| 886 catch(e) {/* urchinTracker not available. */} | 1007 catch(e) {/* urchinTracker not available. */} |
| 887 </script> | 1008 </script> |
| 888 <!-- end analytics --> | 1009 <!-- end analytics --> |
| 889 </div> | 1010 </div> |
| 890 </div> <!-- /gc-footer --> | 1011 </div> <!-- /gc-footer --> |
| 891 </div> <!-- /gc-container --> | 1012 </div> <!-- /gc-container --> |
| 892 </body></html> | 1013 </body></html> |
| OLD | NEW |