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

Side by Side Diff: client/dom/frog/frog_dom.dart

Issue 8820004: Work-around for FireFox: patch non-leaf types statically if possible. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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 #library('dom'); 1 #library('dom');
2 2
3 #native('frog_dom.js'); 3 #native('frog_dom.js');
4 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 4 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
5 // for details. All rights reserved. Use of this source code is governed by a 5 // for details. All rights reserved. Use of this source code is governed by a
6 // BSD-style license that can be found in the LICENSE file. 6 // BSD-style license that can be found in the LICENSE file.
7 7
8 // DO NOT EDIT 8 // DO NOT EDIT
9 // Auto-generated Dart DOM library. 9 // Auto-generated Dart DOM library.
10 10
(...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after
440 440
441 Rect getRectValue() native; 441 Rect getRectValue() native;
442 442
443 String getStringValue() native; 443 String getStringValue() native;
444 444
445 void setFloatValue(int unitType, num floatValue) native; 445 void setFloatValue(int unitType, num floatValue) native;
446 446
447 void setStringValue(int stringType, String stringValue) native; 447 void setStringValue(int stringType, String stringValue) native;
448 } 448 }
449 449
450 class CSSRule native "*CSSRule" { 450 class CSSRule native "CSSRule" {
451 451
452 static final int CHARSET_RULE = 2; 452 static final int CHARSET_RULE = 2;
453 453
454 static final int FONT_FACE_RULE = 5; 454 static final int FONT_FACE_RULE = 5;
455 455
456 static final int IMPORT_RULE = 3; 456 static final int IMPORT_RULE = 3;
457 457
458 static final int MEDIA_RULE = 4; 458 static final int MEDIA_RULE = 4;
459 459
460 static final int PAGE_RULE = 6; 460 static final int PAGE_RULE = 6;
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after
729 729
730 void strokeRect(num x, num y, num width, num height, [num lineWidth = null]) n ative; 730 void strokeRect(num x, num y, num width, num height, [num lineWidth = null]) n ative;
731 731
732 void strokeText(String text, num x, num y, [num maxWidth = null]) native; 732 void strokeText(String text, num x, num y, [num maxWidth = null]) native;
733 733
734 void transform(num m11, num m12, num m21, num m22, num dx, num dy) native; 734 void transform(num m11, num m12, num m21, num m22, num dx, num dy) native;
735 735
736 void translate(num tx, num ty) native; 736 void translate(num tx, num ty) native;
737 } 737 }
738 738
739 class CharacterData extends Node native "*CharacterData" { 739 class CharacterData extends Node native "CharacterData" {
740 740
741 String data; 741 String data;
742 742
743 int length; 743 int length;
744 744
745 void appendData(String data) native; 745 void appendData(String data) native;
746 746
747 void deleteData(int offset, int length) native; 747 void deleteData(int offset, int length) native;
748 748
749 void insertData(int offset, String data) native; 749 void insertData(int offset, String data) native;
(...skipping 827 matching lines...) Expand 10 before | Expand all | Expand 10 after
1577 1577
1578 class DirectoryReaderSync native "*DirectoryReaderSync" { 1578 class DirectoryReaderSync native "*DirectoryReaderSync" {
1579 1579
1580 EntryArraySync readEntries() native; 1580 EntryArraySync readEntries() native;
1581 1581
1582 var dartObjectLocalStorage; 1582 var dartObjectLocalStorage;
1583 1583
1584 String get typeName() native; 1584 String get typeName() native;
1585 } 1585 }
1586 1586
1587 class Document extends Node native "*Document" { 1587 class Document extends Node native "Document" {
1588 1588
1589 String URL; 1589 String URL;
1590 1590
1591 HTMLCollection anchors; 1591 HTMLCollection anchors;
1592 1592
1593 HTMLCollection applets; 1593 HTMLCollection applets;
1594 1594
1595 HTMLElement body; 1595 HTMLElement body;
1596 1596
1597 String characterSet; 1597 String characterSet;
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
1745 NamedNodeMap notations; 1745 NamedNodeMap notations;
1746 1746
1747 String publicId; 1747 String publicId;
1748 1748
1749 String systemId; 1749 String systemId;
1750 } 1750 }
1751 1751
1752 class DynamicsCompressorNode extends AudioNode native "*DynamicsCompressorNode" { 1752 class DynamicsCompressorNode extends AudioNode native "*DynamicsCompressorNode" {
1753 } 1753 }
1754 1754
1755 class Element extends Node native "*Element" { 1755 class Element extends Node native "Element" {
1756 1756
1757 int childElementCount; 1757 int childElementCount;
1758 1758
1759 int clientHeight; 1759 int clientHeight;
1760 1760
1761 int clientLeft; 1761 int clientLeft;
1762 1762
1763 int clientTop; 1763 int clientTop;
1764 1764
1765 int clientWidth; 1765 int clientWidth;
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
1977 1977
1978 String filename; 1978 String filename;
1979 1979
1980 int lineno; 1980 int lineno;
1981 1981
1982 String message; 1982 String message;
1983 1983
1984 void initErrorEvent(String typeArg, bool canBubbleArg, bool cancelableArg, Str ing messageArg, String filenameArg, int linenoArg) native; 1984 void initErrorEvent(String typeArg, bool canBubbleArg, bool cancelableArg, Str ing messageArg, String filenameArg, int linenoArg) native;
1985 } 1985 }
1986 1986
1987 class Event native "*Event" { 1987 class Event native "Event" {
1988 1988
1989 static final int AT_TARGET = 2; 1989 static final int AT_TARGET = 2;
1990 1990
1991 static final int BLUR = 8192; 1991 static final int BLUR = 8192;
1992 1992
1993 static final int BUBBLING_PHASE = 3; 1993 static final int BUBBLING_PHASE = 3;
1994 1994
1995 static final int CAPTURING_PHASE = 1; 1995 static final int CAPTURING_PHASE = 1;
1996 1996
1997 static final int CHANGE = 32768; 1997 static final int CHANGE = 32768;
(...skipping 570 matching lines...) Expand 10 before | Expand all | Expand 10 after
2568 2568
2569 int height; 2569 int height;
2570 2570
2571 int width; 2571 int width;
2572 2572
2573 Object getContext(String contextId) native; 2573 Object getContext(String contextId) native;
2574 2574
2575 String toDataURL(String type) native; 2575 String toDataURL(String type) native;
2576 } 2576 }
2577 2577
2578 class HTMLCollection native "*HTMLCollection" { 2578 class HTMLCollection native "HTMLCollection" {
2579 2579
2580 int length; 2580 int length;
2581 2581
2582 Node operator[](int index) native; 2582 Node operator[](int index) native;
2583 2583
2584 Node item(int index) native; 2584 Node item(int index) native;
2585 2585
2586 Node namedItem(String name) native; 2586 Node namedItem(String name) native;
2587 2587
2588 var dartObjectLocalStorage; 2588 var dartObjectLocalStorage;
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
2657 2657
2658 void open() native; 2658 void open() native;
2659 2659
2660 void releaseEvents() native; 2660 void releaseEvents() native;
2661 2661
2662 void write(String text) native; 2662 void write(String text) native;
2663 2663
2664 void writeln(String text) native; 2664 void writeln(String text) native;
2665 } 2665 }
2666 2666
2667 class HTMLElement extends Element native "*HTMLElement" { 2667 class HTMLElement extends Element native "HTMLElement" {
2668 2668
2669 HTMLCollection children; 2669 HTMLCollection children;
2670 2670
2671 DOMTokenList classList; 2671 DOMTokenList classList;
2672 2672
2673 String className; 2673 String className;
2674 2674
2675 String contentEditable; 2675 String contentEditable;
2676 2676
2677 String dir; 2677 String dir;
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
2918 2918
2919 int vspace; 2919 int vspace;
2920 2920
2921 int width; 2921 int width;
2922 2922
2923 int x; 2923 int x;
2924 2924
2925 int y; 2925 int y;
2926 } 2926 }
2927 2927
2928 class HTMLInputElement extends HTMLElement native "*HTMLInputElement" { 2928 class HTMLInputElement extends HTMLElement native "HTMLInputElement" {
2929 2929
2930 String accept; 2930 String accept;
2931 2931
2932 String accessKey; 2932 String accessKey;
2933 2933
2934 String align; 2934 String align;
2935 2935
2936 String alt; 2936 String alt;
2937 2937
2938 String autocomplete; 2938 String autocomplete;
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
3155 3155
3156 int vspace; 3156 int vspace;
3157 3157
3158 String width; 3158 String width;
3159 3159
3160 void start() native; 3160 void start() native;
3161 3161
3162 void stop() native; 3162 void stop() native;
3163 } 3163 }
3164 3164
3165 class HTMLMediaElement extends HTMLElement native "*HTMLMediaElement" { 3165 class HTMLMediaElement extends HTMLElement native "HTMLMediaElement" {
3166 3166
3167 static final int HAVE_CURRENT_DATA = 2; 3167 static final int HAVE_CURRENT_DATA = 2;
3168 3168
3169 static final int HAVE_ENOUGH_DATA = 4; 3169 static final int HAVE_ENOUGH_DATA = 4;
3170 3170
3171 static final int HAVE_FUTURE_DATA = 3; 3171 static final int HAVE_FUTURE_DATA = 3;
3172 3172
3173 static final int HAVE_METADATA = 1; 3173 static final int HAVE_METADATA = 1;
3174 3174
3175 static final int HAVE_NOTHING = 0; 3175 static final int HAVE_NOTHING = 0;
(...skipping 1461 matching lines...) Expand 10 before | Expand all | Expand 10 after
4637 String get typeName() native; 4637 String get typeName() native;
4638 } 4638 }
4639 4639
4640 class NavigatorUserMediaSuccessCallback native "*NavigatorUserMediaSuccessCallba ck" { 4640 class NavigatorUserMediaSuccessCallback native "*NavigatorUserMediaSuccessCallba ck" {
4641 4641
4642 var dartObjectLocalStorage; 4642 var dartObjectLocalStorage;
4643 4643
4644 String get typeName() native; 4644 String get typeName() native;
4645 } 4645 }
4646 4646
4647 class Node native "*Node" { 4647 class Node native "Node" {
4648 4648
4649 static final int ATTRIBUTE_NODE = 2; 4649 static final int ATTRIBUTE_NODE = 2;
4650 4650
4651 static final int CDATA_SECTION_NODE = 4; 4651 static final int CDATA_SECTION_NODE = 4;
4652 4652
4653 static final int COMMENT_NODE = 8; 4653 static final int COMMENT_NODE = 8;
4654 4654
4655 static final int DOCUMENT_FRAGMENT_NODE = 11; 4655 static final int DOCUMENT_FRAGMENT_NODE = 11;
4656 4656
4657 static final int DOCUMENT_NODE = 9; 4657 static final int DOCUMENT_NODE = 9;
(...skipping 1208 matching lines...) Expand 10 before | Expand all | Expand 10 after
5866 CSSValue getPresentationAttribute(String name) native; 5866 CSSValue getPresentationAttribute(String name) native;
5867 } 5867 }
5868 5868
5869 class SVGDocument extends Document native "*SVGDocument" { 5869 class SVGDocument extends Document native "*SVGDocument" {
5870 5870
5871 SVGSVGElement rootElement; 5871 SVGSVGElement rootElement;
5872 5872
5873 Event createEvent(String eventType) native; 5873 Event createEvent(String eventType) native;
5874 } 5874 }
5875 5875
5876 class SVGElement extends Element native "*SVGElement" { 5876 class SVGElement extends Element native "SVGElement" {
5877 5877
5878 String id; 5878 String id;
5879 5879
5880 SVGSVGElement ownerSVGElement; 5880 SVGSVGElement ownerSVGElement;
5881 5881
5882 SVGElement viewportElement; 5882 SVGElement viewportElement;
5883 5883
5884 String xmlbase; 5884 String xmlbase;
5885 } 5885 }
5886 5886
(...skipping 999 matching lines...) Expand 10 before | Expand all | Expand 10 after
6886 6886
6887 // From SVGStylable 6887 // From SVGStylable
6888 6888
6889 SVGAnimatedString className; 6889 SVGAnimatedString className;
6890 6890
6891 CSSStyleDeclaration style; 6891 CSSStyleDeclaration style;
6892 6892
6893 CSSValue getPresentationAttribute(String name) native; 6893 CSSValue getPresentationAttribute(String name) native;
6894 } 6894 }
6895 6895
6896 class SVGGradientElement extends SVGElement native "*SVGGradientElement" { 6896 class SVGGradientElement extends SVGElement native "SVGGradientElement" {
6897 6897
6898 static final int SVG_SPREADMETHOD_PAD = 1; 6898 static final int SVG_SPREADMETHOD_PAD = 1;
6899 6899
6900 static final int SVG_SPREADMETHOD_REFLECT = 2; 6900 static final int SVG_SPREADMETHOD_REFLECT = 2;
6901 6901
6902 static final int SVG_SPREADMETHOD_REPEAT = 3; 6902 static final int SVG_SPREADMETHOD_REPEAT = 3;
6903 6903
6904 static final int SVG_SPREADMETHOD_UNKNOWN = 0; 6904 static final int SVG_SPREADMETHOD_UNKNOWN = 0;
6905 6905
6906 SVGAnimatedTransformList gradientTransform; 6906 SVGAnimatedTransformList gradientTransform;
(...skipping 564 matching lines...) Expand 10 before | Expand all | Expand 10 after
7471 7471
7472 SVGRect getBBox() native; 7472 SVGRect getBBox() native;
7473 7473
7474 SVGMatrix getCTM() native; 7474 SVGMatrix getCTM() native;
7475 7475
7476 SVGMatrix getScreenCTM() native; 7476 SVGMatrix getScreenCTM() native;
7477 7477
7478 SVGMatrix getTransformToElement(SVGElement element) native; 7478 SVGMatrix getTransformToElement(SVGElement element) native;
7479 } 7479 }
7480 7480
7481 class SVGPathSeg native "*SVGPathSeg" { 7481 class SVGPathSeg native "SVGPathSeg" {
7482 7482
7483 static final int PATHSEG_ARC_ABS = 10; 7483 static final int PATHSEG_ARC_ABS = 10;
7484 7484
7485 static final int PATHSEG_ARC_REL = 11; 7485 static final int PATHSEG_ARC_REL = 11;
7486 7486
7487 static final int PATHSEG_CLOSEPATH = 1; 7487 static final int PATHSEG_CLOSEPATH = 1;
7488 7488
7489 static final int PATHSEG_CURVETO_CUBIC_ABS = 6; 7489 static final int PATHSEG_CURVETO_CUBIC_ABS = 6;
7490 7490
7491 static final int PATHSEG_CURVETO_CUBIC_REL = 7; 7491 static final int PATHSEG_CURVETO_CUBIC_REL = 7;
(...skipping 880 matching lines...) Expand 10 before | Expand all | Expand 10 after
8372 8372
8373 SVGStringList systemLanguage; 8373 SVGStringList systemLanguage;
8374 8374
8375 bool hasExtension(String extension) native; 8375 bool hasExtension(String extension) native;
8376 8376
8377 var dartObjectLocalStorage; 8377 var dartObjectLocalStorage;
8378 8378
8379 String get typeName() native; 8379 String get typeName() native;
8380 } 8380 }
8381 8381
8382 class SVGTextContentElement extends SVGElement native "*SVGTextContentElement" { 8382 class SVGTextContentElement extends SVGElement native "SVGTextContentElement" {
8383 8383
8384 static final int LENGTHADJUST_SPACING = 1; 8384 static final int LENGTHADJUST_SPACING = 1;
8385 8385
8386 static final int LENGTHADJUST_SPACINGANDGLYPHS = 2; 8386 static final int LENGTHADJUST_SPACINGANDGLYPHS = 2;
8387 8387
8388 static final int LENGTHADJUST_UNKNOWN = 0; 8388 static final int LENGTHADJUST_UNKNOWN = 0;
8389 8389
8390 SVGAnimatedEnumeration lengthAdjust; 8390 SVGAnimatedEnumeration lengthAdjust;
8391 8391
8392 SVGAnimatedLength textLength; 8392 SVGAnimatedLength textLength;
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
8477 8477
8478 SVGAnimatedEnumeration spacing; 8478 SVGAnimatedEnumeration spacing;
8479 8479
8480 SVGAnimatedLength startOffset; 8480 SVGAnimatedLength startOffset;
8481 8481
8482 // From SVGURIReference 8482 // From SVGURIReference
8483 8483
8484 SVGAnimatedString href; 8484 SVGAnimatedString href;
8485 } 8485 }
8486 8486
8487 class SVGTextPositioningElement extends SVGTextContentElement native "*SVGTextPo sitioningElement" { 8487 class SVGTextPositioningElement extends SVGTextContentElement native "SVGTextPos itioningElement" {
8488 8488
8489 SVGAnimatedLengthList dx; 8489 SVGAnimatedLengthList dx;
8490 8490
8491 SVGAnimatedLengthList dy; 8491 SVGAnimatedLengthList dy;
8492 8492
8493 SVGAnimatedNumberList rotate; 8493 SVGAnimatedNumberList rotate;
8494 8494
8495 SVGAnimatedLengthList x; 8495 SVGAnimatedLengthList x;
8496 8496
8497 SVGAnimatedLengthList y; 8497 SVGAnimatedLengthList y;
(...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after
8894 8894
8895 String type; 8895 String type;
8896 8896
8897 bool matchMedium(String mediaquery) native; 8897 bool matchMedium(String mediaquery) native;
8898 8898
8899 var dartObjectLocalStorage; 8899 var dartObjectLocalStorage;
8900 8900
8901 String get typeName() native; 8901 String get typeName() native;
8902 } 8902 }
8903 8903
8904 class StyleSheet native "*StyleSheet" { 8904 class StyleSheet native "StyleSheet" {
8905 8905
8906 bool disabled; 8906 bool disabled;
8907 8907
8908 String href; 8908 String href;
8909 8909
8910 MediaList media; 8910 MediaList media;
8911 8911
8912 Node ownerNode; 8912 Node ownerNode;
8913 8913
8914 StyleSheet parentStyleSheet; 8914 StyleSheet parentStyleSheet;
(...skipping 13 matching lines...) Expand all
8928 8928
8929 StyleSheet operator[](int index) native; 8929 StyleSheet operator[](int index) native;
8930 8930
8931 StyleSheet item(int index) native; 8931 StyleSheet item(int index) native;
8932 8932
8933 var dartObjectLocalStorage; 8933 var dartObjectLocalStorage;
8934 8934
8935 String get typeName() native; 8935 String get typeName() native;
8936 } 8936 }
8937 8937
8938 class Text extends CharacterData native "*Text" { 8938 class Text extends CharacterData native "Text" {
8939 8939
8940 String wholeText; 8940 String wholeText;
8941 8941
8942 Text replaceWholeText(String content) native; 8942 Text replaceWholeText(String content) native;
8943 8943
8944 Text splitText(int offset) native; 8944 Text splitText(int offset) native;
8945 } 8945 }
8946 8946
8947 class TextEvent extends UIEvent native "*TextEvent" { 8947 class TextEvent extends UIEvent native "*TextEvent" {
8948 8948
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
9145 9145
9146 Node previousNode() native; 9146 Node previousNode() native;
9147 9147
9148 Node previousSibling() native; 9148 Node previousSibling() native;
9149 9149
9150 var dartObjectLocalStorage; 9150 var dartObjectLocalStorage;
9151 9151
9152 String get typeName() native; 9152 String get typeName() native;
9153 } 9153 }
9154 9154
9155 class UIEvent extends Event native "*UIEvent" { 9155 class UIEvent extends Event native "UIEvent" {
9156 9156
9157 int charCode; 9157 int charCode;
9158 9158
9159 int detail; 9159 int detail;
9160 9160
9161 int keyCode; 9161 int keyCode;
9162 9162
9163 int layerX; 9163 int layerX;
9164 9164
9165 int layerY; 9165 int layerY;
(...skipping 1886 matching lines...) Expand 10 before | Expand all | Expand 10 after
11052 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 11052 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
11053 // for details. All rights reserved. Use of this source code is governed by a 11053 // for details. All rights reserved. Use of this source code is governed by a
11054 // BSD-style license that can be found in the LICENSE file. 11054 // BSD-style license that can be found in the LICENSE file.
11055 11055
11056 typedef bool RequestAnimationFrameCallback(int time); 11056 typedef bool RequestAnimationFrameCallback(int time);
11057 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 11057 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
11058 // for details. All rights reserved. Use of this source code is governed by a 11058 // for details. All rights reserved. Use of this source code is governed by a
11059 // BSD-style license that can be found in the LICENSE file. 11059 // BSD-style license that can be found in the LICENSE file.
11060 11060
11061 typedef void TimeoutHandler(); 11061 typedef void TimeoutHandler();
OLDNEW
« no previous file with comments | « no previous file | client/dom/generated/src/frog/CSSRule.dart » ('j') | client/dom/generated/src/frog/Node.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698