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

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

Issue 9109032: Make most native types hidden. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | client/dom/generated/src/frog/CSSRule.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #library('dom'); 1 #library('dom');
2 2
3 #native('dom_frog.js'); 3 #native('dom_frog.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 441 matching lines...) Expand 10 before | Expand all | Expand 10 after
452 452
453 Rect getRectValue() native; 453 Rect getRectValue() native;
454 454
455 String getStringValue() native; 455 String getStringValue() native;
456 456
457 void setFloatValue(int unitType, num floatValue) native; 457 void setFloatValue(int unitType, num floatValue) native;
458 458
459 void setStringValue(int stringType, String stringValue) native; 459 void setStringValue(int stringType, String stringValue) native;
460 } 460 }
461 461
462 class CSSRule native "CSSRule" { 462 class CSSRule native "*CSSRule" {
463 463
464 static final int CHARSET_RULE = 2; 464 static final int CHARSET_RULE = 2;
465 465
466 static final int FONT_FACE_RULE = 5; 466 static final int FONT_FACE_RULE = 5;
467 467
468 static final int IMPORT_RULE = 3; 468 static final int IMPORT_RULE = 3;
469 469
470 static final int MEDIA_RULE = 4; 470 static final int MEDIA_RULE = 4;
471 471
472 static final int PAGE_RULE = 6; 472 static final int PAGE_RULE = 6;
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
743 743
744 void strokeRect(num x, num y, num width, num height, [num lineWidth = null]) n ative; 744 void strokeRect(num x, num y, num width, num height, [num lineWidth = null]) n ative;
745 745
746 void strokeText(String text, num x, num y, [num maxWidth = null]) native; 746 void strokeText(String text, num x, num y, [num maxWidth = null]) native;
747 747
748 void transform(num m11, num m12, num m21, num m22, num dx, num dy) native; 748 void transform(num m11, num m12, num m21, num m22, num dx, num dy) native;
749 749
750 void translate(num tx, num ty) native; 750 void translate(num tx, num ty) native;
751 } 751 }
752 752
753 class CharacterData extends Node native "CharacterData" { 753 class CharacterData extends Node native "*CharacterData" {
754 754
755 String data; 755 String data;
756 756
757 int length; 757 int length;
758 758
759 void appendData(String data) native; 759 void appendData(String data) native;
760 760
761 void deleteData(int offset, int length) native; 761 void deleteData(int offset, int length) native;
762 762
763 void insertData(int offset, String data) native; 763 void insertData(int offset, String data) native;
(...skipping 851 matching lines...) Expand 10 before | Expand all | Expand 10 after
1615 1615
1616 class DirectoryReaderSync native "*DirectoryReaderSync" { 1616 class DirectoryReaderSync native "*DirectoryReaderSync" {
1617 1617
1618 EntryArraySync readEntries() native; 1618 EntryArraySync readEntries() native;
1619 1619
1620 var dartObjectLocalStorage; 1620 var dartObjectLocalStorage;
1621 1621
1622 String get typeName() native; 1622 String get typeName() native;
1623 } 1623 }
1624 1624
1625 class Document extends Node native "Document" { 1625 class Document extends Node native "*Document" {
1626 1626
1627 String URL; 1627 String URL;
1628 1628
1629 HTMLCollection anchors; 1629 HTMLCollection anchors;
1630 1630
1631 HTMLCollection applets; 1631 HTMLCollection applets;
1632 1632
1633 HTMLElement body; 1633 HTMLElement body;
1634 1634
1635 String characterSet; 1635 String characterSet;
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
1797 NamedNodeMap notations; 1797 NamedNodeMap notations;
1798 1798
1799 String publicId; 1799 String publicId;
1800 1800
1801 String systemId; 1801 String systemId;
1802 } 1802 }
1803 1803
1804 class DynamicsCompressorNode extends AudioNode native "*DynamicsCompressorNode" { 1804 class DynamicsCompressorNode extends AudioNode native "*DynamicsCompressorNode" {
1805 } 1805 }
1806 1806
1807 class Element extends Node native "Element" { 1807 class Element extends Node native "*Element" {
1808 1808
1809 static final int ALLOW_KEYBOARD_INPUT = 1; 1809 static final int ALLOW_KEYBOARD_INPUT = 1;
1810 1810
1811 int childElementCount; 1811 int childElementCount;
1812 1812
1813 int clientHeight; 1813 int clientHeight;
1814 1814
1815 int clientLeft; 1815 int clientLeft;
1816 1816
1817 int clientTop; 1817 int clientTop;
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
2031 2031
2032 class ErrorEvent extends Event native "*ErrorEvent" { 2032 class ErrorEvent extends Event native "*ErrorEvent" {
2033 2033
2034 String filename; 2034 String filename;
2035 2035
2036 int lineno; 2036 int lineno;
2037 2037
2038 String message; 2038 String message;
2039 } 2039 }
2040 2040
2041 class Event native "Event" { 2041 class Event native "*Event" {
2042 2042
2043 static final int AT_TARGET = 2; 2043 static final int AT_TARGET = 2;
2044 2044
2045 static final int BLUR = 8192; 2045 static final int BLUR = 8192;
2046 2046
2047 static final int BUBBLING_PHASE = 3; 2047 static final int BUBBLING_PHASE = 3;
2048 2048
2049 static final int CAPTURING_PHASE = 1; 2049 static final int CAPTURING_PHASE = 1;
2050 2050
2051 static final int CHANGE = 32768; 2051 static final int CHANGE = 32768;
(...skipping 612 matching lines...) Expand 10 before | Expand all | Expand 10 after
2664 2664
2665 int height; 2665 int height;
2666 2666
2667 int width; 2667 int width;
2668 2668
2669 Object getContext(String contextId) native; 2669 Object getContext(String contextId) native;
2670 2670
2671 String toDataURL(String type) native; 2671 String toDataURL(String type) native;
2672 } 2672 }
2673 2673
2674 class HTMLCollection native "HTMLCollection" { 2674 class HTMLCollection native "*HTMLCollection" {
2675 2675
2676 int length; 2676 int length;
2677 2677
2678 Node operator[](int index) native; 2678 Node operator[](int index) native;
2679 2679
2680 void operator[]=(int index, Node value) { 2680 void operator[]=(int index, Node value) {
2681 throw new UnsupportedOperationException("Cannot assign element of immutable List."); 2681 throw new UnsupportedOperationException("Cannot assign element of immutable List.");
2682 } 2682 }
2683 2683
2684 Node item(int index) native; 2684 Node item(int index) native;
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
2753 2753
2754 void open() native; 2754 void open() native;
2755 2755
2756 void releaseEvents() native; 2756 void releaseEvents() native;
2757 2757
2758 void write(String text) native; 2758 void write(String text) native;
2759 2759
2760 void writeln(String text) native; 2760 void writeln(String text) native;
2761 } 2761 }
2762 2762
2763 class HTMLElement extends Element native "HTMLElement" { 2763 class HTMLElement extends Element native "*HTMLElement" {
2764 2764
2765 String accessKey; 2765 String accessKey;
2766 2766
2767 HTMLCollection children; 2767 HTMLCollection children;
2768 2768
2769 DOMTokenList classList; 2769 DOMTokenList classList;
2770 2770
2771 String className; 2771 String className;
2772 2772
2773 String contentEditable; 2773 String contentEditable;
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
3022 3022
3023 int vspace; 3023 int vspace;
3024 3024
3025 int width; 3025 int width;
3026 3026
3027 int x; 3027 int x;
3028 3028
3029 int y; 3029 int y;
3030 } 3030 }
3031 3031
3032 class HTMLInputElement extends HTMLElement native "HTMLInputElement" { 3032 class HTMLInputElement extends HTMLElement native "*HTMLInputElement" {
3033 3033
3034 String accept; 3034 String accept;
3035 3035
3036 String align; 3036 String align;
3037 3037
3038 String alt; 3038 String alt;
3039 3039
3040 String autocomplete; 3040 String autocomplete;
3041 3041
3042 bool autofocus; 3042 bool autofocus;
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
3255 3255
3256 int vspace; 3256 int vspace;
3257 3257
3258 String width; 3258 String width;
3259 3259
3260 void start() native; 3260 void start() native;
3261 3261
3262 void stop() native; 3262 void stop() native;
3263 } 3263 }
3264 3264
3265 class HTMLMediaElement extends HTMLElement native "HTMLMediaElement" { 3265 class HTMLMediaElement extends HTMLElement native "*HTMLMediaElement" {
3266 3266
3267 static final int EOS_DECODE_ERR = 2; 3267 static final int EOS_DECODE_ERR = 2;
3268 3268
3269 static final int EOS_NETWORK_ERR = 1; 3269 static final int EOS_NETWORK_ERR = 1;
3270 3270
3271 static final int EOS_NO_ERROR = 0; 3271 static final int EOS_NO_ERROR = 0;
3272 3272
3273 static final int HAVE_CURRENT_DATA = 2; 3273 static final int HAVE_CURRENT_DATA = 2;
3274 3274
3275 static final int HAVE_ENOUGH_DATA = 4; 3275 static final int HAVE_ENOUGH_DATA = 4;
(...skipping 1617 matching lines...) Expand 10 before | Expand all | Expand 10 after
4893 4893
4894 bool javaEnabled() native; 4894 bool javaEnabled() native;
4895 4895
4896 void registerProtocolHandler(String scheme, String url, String title) native; 4896 void registerProtocolHandler(String scheme, String url, String title) native;
4897 4897
4898 var dartObjectLocalStorage; 4898 var dartObjectLocalStorage;
4899 4899
4900 String get typeName() native; 4900 String get typeName() native;
4901 } 4901 }
4902 4902
4903 class Node native "Node" { 4903 class Node native "*Node" {
4904 4904
4905 static final int ATTRIBUTE_NODE = 2; 4905 static final int ATTRIBUTE_NODE = 2;
4906 4906
4907 static final int CDATA_SECTION_NODE = 4; 4907 static final int CDATA_SECTION_NODE = 4;
4908 4908
4909 static final int COMMENT_NODE = 8; 4909 static final int COMMENT_NODE = 8;
4910 4910
4911 static final int DOCUMENT_FRAGMENT_NODE = 11; 4911 static final int DOCUMENT_FRAGMENT_NODE = 11;
4912 4912
4913 static final int DOCUMENT_NODE = 9; 4913 static final int DOCUMENT_NODE = 9;
(...skipping 1217 matching lines...) Expand 10 before | Expand all | Expand 10 after
6131 CSSValue getPresentationAttribute(String name) native; 6131 CSSValue getPresentationAttribute(String name) native;
6132 } 6132 }
6133 6133
6134 class SVGDocument extends Document native "*SVGDocument" { 6134 class SVGDocument extends Document native "*SVGDocument" {
6135 6135
6136 SVGSVGElement rootElement; 6136 SVGSVGElement rootElement;
6137 6137
6138 Event createEvent(String eventType) native; 6138 Event createEvent(String eventType) native;
6139 } 6139 }
6140 6140
6141 class SVGElement extends Element native "SVGElement" { 6141 class SVGElement extends Element native "*SVGElement" {
6142 6142
6143 String id; 6143 String id;
6144 6144
6145 SVGSVGElement ownerSVGElement; 6145 SVGSVGElement ownerSVGElement;
6146 6146
6147 SVGElement viewportElement; 6147 SVGElement viewportElement;
6148 6148
6149 String xmlbase; 6149 String xmlbase;
6150 } 6150 }
6151 6151
(...skipping 999 matching lines...) Expand 10 before | Expand all | Expand 10 after
7151 7151
7152 // From SVGStylable 7152 // From SVGStylable
7153 7153
7154 SVGAnimatedString className; 7154 SVGAnimatedString className;
7155 7155
7156 CSSStyleDeclaration style; 7156 CSSStyleDeclaration style;
7157 7157
7158 CSSValue getPresentationAttribute(String name) native; 7158 CSSValue getPresentationAttribute(String name) native;
7159 } 7159 }
7160 7160
7161 class SVGGradientElement extends SVGElement native "SVGGradientElement" { 7161 class SVGGradientElement extends SVGElement native "*SVGGradientElement" {
7162 7162
7163 static final int SVG_SPREADMETHOD_PAD = 1; 7163 static final int SVG_SPREADMETHOD_PAD = 1;
7164 7164
7165 static final int SVG_SPREADMETHOD_REFLECT = 2; 7165 static final int SVG_SPREADMETHOD_REFLECT = 2;
7166 7166
7167 static final int SVG_SPREADMETHOD_REPEAT = 3; 7167 static final int SVG_SPREADMETHOD_REPEAT = 3;
7168 7168
7169 static final int SVG_SPREADMETHOD_UNKNOWN = 0; 7169 static final int SVG_SPREADMETHOD_UNKNOWN = 0;
7170 7170
7171 SVGAnimatedTransformList gradientTransform; 7171 SVGAnimatedTransformList gradientTransform;
(...skipping 1465 matching lines...) Expand 10 before | Expand all | Expand 10 after
8637 8637
8638 SVGStringList systemLanguage; 8638 SVGStringList systemLanguage;
8639 8639
8640 bool hasExtension(String extension) native; 8640 bool hasExtension(String extension) native;
8641 8641
8642 var dartObjectLocalStorage; 8642 var dartObjectLocalStorage;
8643 8643
8644 String get typeName() native; 8644 String get typeName() native;
8645 } 8645 }
8646 8646
8647 class SVGTextContentElement extends SVGElement native "SVGTextContentElement" { 8647 class SVGTextContentElement extends SVGElement native "*SVGTextContentElement" {
8648 8648
8649 static final int LENGTHADJUST_SPACING = 1; 8649 static final int LENGTHADJUST_SPACING = 1;
8650 8650
8651 static final int LENGTHADJUST_SPACINGANDGLYPHS = 2; 8651 static final int LENGTHADJUST_SPACINGANDGLYPHS = 2;
8652 8652
8653 static final int LENGTHADJUST_UNKNOWN = 0; 8653 static final int LENGTHADJUST_UNKNOWN = 0;
8654 8654
8655 SVGAnimatedEnumeration lengthAdjust; 8655 SVGAnimatedEnumeration lengthAdjust;
8656 8656
8657 SVGAnimatedLength textLength; 8657 SVGAnimatedLength textLength;
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
8742 8742
8743 SVGAnimatedEnumeration spacing; 8743 SVGAnimatedEnumeration spacing;
8744 8744
8745 SVGAnimatedLength startOffset; 8745 SVGAnimatedLength startOffset;
8746 8746
8747 // From SVGURIReference 8747 // From SVGURIReference
8748 8748
8749 SVGAnimatedString href; 8749 SVGAnimatedString href;
8750 } 8750 }
8751 8751
8752 class SVGTextPositioningElement extends SVGTextContentElement native "SVGTextPos itioningElement" { 8752 class SVGTextPositioningElement extends SVGTextContentElement native "*SVGTextPo sitioningElement" {
8753 8753
8754 SVGAnimatedLengthList dx; 8754 SVGAnimatedLengthList dx;
8755 8755
8756 SVGAnimatedLengthList dy; 8756 SVGAnimatedLengthList dy;
8757 8757
8758 SVGAnimatedNumberList rotate; 8758 SVGAnimatedNumberList rotate;
8759 8759
8760 SVGAnimatedLengthList x; 8760 SVGAnimatedLengthList x;
8761 8761
8762 SVGAnimatedLengthList y; 8762 SVGAnimatedLengthList y;
(...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after
9161 9161
9162 String type; 9162 String type;
9163 9163
9164 bool matchMedium(String mediaquery) native; 9164 bool matchMedium(String mediaquery) native;
9165 9165
9166 var dartObjectLocalStorage; 9166 var dartObjectLocalStorage;
9167 9167
9168 String get typeName() native; 9168 String get typeName() native;
9169 } 9169 }
9170 9170
9171 class StyleSheet native "StyleSheet" { 9171 class StyleSheet native "*StyleSheet" {
9172 9172
9173 bool disabled; 9173 bool disabled;
9174 9174
9175 String href; 9175 String href;
9176 9176
9177 MediaList media; 9177 MediaList media;
9178 9178
9179 Node ownerNode; 9179 Node ownerNode;
9180 9180
9181 StyleSheet parentStyleSheet; 9181 StyleSheet parentStyleSheet;
(...skipping 17 matching lines...) Expand all
9199 throw new UnsupportedOperationException("Cannot assign element of immutable List."); 9199 throw new UnsupportedOperationException("Cannot assign element of immutable List.");
9200 } 9200 }
9201 9201
9202 StyleSheet item(int index) native; 9202 StyleSheet item(int index) native;
9203 9203
9204 var dartObjectLocalStorage; 9204 var dartObjectLocalStorage;
9205 9205
9206 String get typeName() native; 9206 String get typeName() native;
9207 } 9207 }
9208 9208
9209 class Text extends CharacterData native "Text" { 9209 class Text extends CharacterData native "*Text" {
9210 9210
9211 String wholeText; 9211 String wholeText;
9212 9212
9213 Text replaceWholeText(String content) native; 9213 Text replaceWholeText(String content) native;
9214 9214
9215 Text splitText(int offset) native; 9215 Text splitText(int offset) native;
9216 } 9216 }
9217 9217
9218 class TextEvent extends UIEvent native "*TextEvent" { 9218 class TextEvent extends UIEvent native "*TextEvent" {
9219 9219
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
9452 9452
9453 Node previousNode() native; 9453 Node previousNode() native;
9454 9454
9455 Node previousSibling() native; 9455 Node previousSibling() native;
9456 9456
9457 var dartObjectLocalStorage; 9457 var dartObjectLocalStorage;
9458 9458
9459 String get typeName() native; 9459 String get typeName() native;
9460 } 9460 }
9461 9461
9462 class UIEvent extends Event native "UIEvent" { 9462 class UIEvent extends Event native "*UIEvent" {
9463 9463
9464 int charCode; 9464 int charCode;
9465 9465
9466 int detail; 9466 int detail;
9467 9467
9468 int keyCode; 9468 int keyCode;
9469 9469
9470 int layerX; 9470 int layerX;
9471 9471
9472 int layerY; 9472 int layerY;
(...skipping 2628 matching lines...) Expand 10 before | Expand all | Expand 10 after
12101 startIndex = a.length - 1; 12101 startIndex = a.length - 1;
12102 } 12102 }
12103 for (int i = startIndex; i >= 0; i--) { 12103 for (int i = startIndex; i >= 0; i--) {
12104 if (a[i] == element) { 12104 if (a[i] == element) {
12105 return i; 12105 return i;
12106 } 12106 }
12107 } 12107 }
12108 return -1; 12108 return -1;
12109 } 12109 }
12110 } 12110 }
OLDNEW
« no previous file with comments | « no previous file | client/dom/generated/src/frog/CSSRule.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698