OLD | NEW |
1 library html; | 1 library html; |
2 | 2 |
3 import 'dart:collection'; | 3 import 'dart:collection'; |
4 import 'dart:html_common'; | 4 import 'dart:html_common'; |
5 import 'dart:indexed_db'; | 5 import 'dart:indexed_db'; |
6 import 'dart:isolate'; | 6 import 'dart:isolate'; |
7 import 'dart:json'; | 7 import 'dart:json'; |
8 import 'dart:nativewrappers'; | 8 import 'dart:nativewrappers'; |
9 import 'dart:svg' as svg; | 9 import 'dart:svg' as svg; |
10 import 'dart:web_audio' as web_audio; | 10 import 'dart:web_audio' as web_audio; |
(...skipping 7067 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7078 | 7078 |
7079 /** @domName Document.implementation */ | 7079 /** @domName Document.implementation */ |
7080 DomImplementation get implementation native "Document_implementation_Getter"; | 7080 DomImplementation get implementation native "Document_implementation_Getter"; |
7081 | 7081 |
7082 | 7082 |
7083 /** @domName Document.lastModified */ | 7083 /** @domName Document.lastModified */ |
7084 String get $dom_lastModified native "Document_lastModified_Getter"; | 7084 String get $dom_lastModified native "Document_lastModified_Getter"; |
7085 | 7085 |
7086 | 7086 |
7087 /** @domName Document.preferredStylesheetSet */ | 7087 /** @domName Document.preferredStylesheetSet */ |
7088 String get preferredStylesheetSet native "Document_preferredStylesheetSet_Gett
er"; | 7088 String get $dom_preferredStylesheetSet native "Document_preferredStylesheetSet
_Getter"; |
7089 | 7089 |
7090 | 7090 |
7091 /** @domName Document.readyState */ | 7091 /** @domName Document.readyState */ |
7092 String get readyState native "Document_readyState_Getter"; | 7092 String get readyState native "Document_readyState_Getter"; |
7093 | 7093 |
7094 | 7094 |
7095 /** @domName Document.referrer */ | 7095 /** @domName Document.referrer */ |
7096 String get $dom_referrer native "Document_referrer_Getter"; | 7096 String get $dom_referrer native "Document_referrer_Getter"; |
7097 | 7097 |
7098 | 7098 |
7099 /** @domName Document.selectedStylesheetSet */ | 7099 /** @domName Document.selectedStylesheetSet */ |
7100 String get selectedStylesheetSet native "Document_selectedStylesheetSet_Getter
"; | 7100 String get $dom_selectedStylesheetSet native "Document_selectedStylesheetSet_G
etter"; |
7101 | 7101 |
7102 | 7102 |
7103 /** @domName Document.selectedStylesheetSet */ | 7103 /** @domName Document.selectedStylesheetSet */ |
7104 void set selectedStylesheetSet(String value) native "Document_selectedStyleshe
etSet_Setter"; | 7104 void set $dom_selectedStylesheetSet(String value) native "Document_selectedSty
lesheetSet_Setter"; |
7105 | 7105 |
7106 | 7106 |
7107 /** @domName Document.styleSheets */ | 7107 /** @domName Document.styleSheets */ |
7108 List<StyleSheet> get $dom_styleSheets native "Document_styleSheets_Getter"; | 7108 List<StyleSheet> get $dom_styleSheets native "Document_styleSheets_Getter"; |
7109 | 7109 |
7110 | 7110 |
7111 /** @domName Document.title */ | 7111 /** @domName Document.title */ |
7112 String get $dom_title native "Document_title_Getter"; | 7112 String get $dom_title native "Document_title_Getter"; |
7113 | 7113 |
7114 | 7114 |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7158 | 7158 |
7159 /** @domName Document.createElementNS */ | 7159 /** @domName Document.createElementNS */ |
7160 Element $dom_createElementNS(String namespaceURI, String qualifiedName) native
"Document_createElementNS_Callback"; | 7160 Element $dom_createElementNS(String namespaceURI, String qualifiedName) native
"Document_createElementNS_Callback"; |
7161 | 7161 |
7162 | 7162 |
7163 /** @domName Document.createEvent */ | 7163 /** @domName Document.createEvent */ |
7164 Event $dom_createEvent(String eventType) native "Document_createEvent_Callback
"; | 7164 Event $dom_createEvent(String eventType) native "Document_createEvent_Callback
"; |
7165 | 7165 |
7166 | 7166 |
7167 /** @domName Document.createRange */ | 7167 /** @domName Document.createRange */ |
7168 Range createRange() native "Document_createRange_Callback"; | 7168 Range $dom_createRange() native "Document_createRange_Callback"; |
7169 | 7169 |
7170 | 7170 |
7171 /** @domName Document.createTextNode */ | 7171 /** @domName Document.createTextNode */ |
7172 Text $dom_createTextNode(String data) native "Document_createTextNode_Callback
"; | 7172 Text $dom_createTextNode(String data) native "Document_createTextNode_Callback
"; |
7173 | 7173 |
7174 | 7174 |
7175 /** @domName Document.createTouch */ | 7175 /** @domName Document.createTouch */ |
7176 Touch createTouch(LocalWindow window, EventTarget target, int identifier, int
pageX, int pageY, int screenX, int screenY, int webkitRadiusX, int webkitRadiusY
, num webkitRotationAngle, num webkitForce) native "Document_createTouch_Callbac
k"; | 7176 Touch $dom_createTouch(LocalWindow window, EventTarget target, int identifier,
int pageX, int pageY, int screenX, int screenY, int webkitRadiusX, int webkitRa
diusY, num webkitRotationAngle, num webkitForce) native "Document_createTouch_Ca
llback"; |
7177 | 7177 |
7178 | 7178 |
7179 /** @domName Document.createTouchList */ | 7179 /** @domName Document.createTouchList */ |
7180 TouchList $dom_createTouchList() native "Document_createTouchList_Callback"; | 7180 TouchList $dom_createTouchList() native "Document_createTouchList_Callback"; |
7181 | 7181 |
7182 | 7182 |
7183 /** @domName Document.elementFromPoint */ | 7183 /** @domName Document.elementFromPoint */ |
7184 Element $dom_elementFromPoint(int x, int y) native "Document_elementFromPoint_
Callback"; | 7184 Element $dom_elementFromPoint(int x, int y) native "Document_elementFromPoint_
Callback"; |
7185 | 7185 |
7186 | 7186 |
7187 /** @domName Document.execCommand */ | 7187 /** @domName Document.execCommand */ |
7188 bool execCommand(String command, bool userInterface, String value) native "Doc
ument_execCommand_Callback"; | 7188 bool execCommand(String command, bool userInterface, String value) native "Doc
ument_execCommand_Callback"; |
7189 | 7189 |
7190 | 7190 |
7191 /** @domName Document.getCSSCanvasContext */ | 7191 /** @domName Document.getCSSCanvasContext */ |
7192 CanvasRenderingContext getCssCanvasContext(String contextId, String name, int
width, int height) native "Document_getCSSCanvasContext_Callback"; | 7192 CanvasRenderingContext $dom_getCssCanvasContext(String contextId, String name,
int width, int height) native "Document_getCSSCanvasContext_Callback"; |
7193 | 7193 |
7194 | 7194 |
7195 /** @domName Document.getElementById */ | 7195 /** @domName Document.getElementById */ |
7196 Element $dom_getElementById(String elementId) native "Document_getElementById_
Callback"; | 7196 Element $dom_getElementById(String elementId) native "Document_getElementById_
Callback"; |
7197 | 7197 |
7198 | 7198 |
7199 /** @domName Document.getElementsByClassName */ | 7199 /** @domName Document.getElementsByClassName */ |
7200 List<Node> $dom_getElementsByClassName(String tagname) native "Document_getEle
mentsByClassName_Callback"; | 7200 List<Node> $dom_getElementsByClassName(String tagname) native "Document_getEle
mentsByClassName_Callback"; |
7201 | 7201 |
7202 | 7202 |
(...skipping 4508 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11711 /** @domName Document.caretRangeFromPoint */ | 11711 /** @domName Document.caretRangeFromPoint */ |
11712 Range caretRangeFromPoint(int x, int y) { | 11712 Range caretRangeFromPoint(int x, int y) { |
11713 return document.$dom_caretRangeFromPoint(x, y); | 11713 return document.$dom_caretRangeFromPoint(x, y); |
11714 } | 11714 } |
11715 | 11715 |
11716 /** @domName Document.elementFromPoint */ | 11716 /** @domName Document.elementFromPoint */ |
11717 Element elementFromPoint(int x, int y) { | 11717 Element elementFromPoint(int x, int y) { |
11718 return document.$dom_elementFromPoint(x, y); | 11718 return document.$dom_elementFromPoint(x, y); |
11719 } | 11719 } |
11720 | 11720 |
| 11721 /** @domName Document.getCSSCanvasContext */ |
| 11722 CanvasRenderingContext getCssCanvasContext(String contextId, String name, |
| 11723 int width, int height) { |
| 11724 return document.$dom_getCssCanvasContext(contextId, name, width, height); |
| 11725 } |
| 11726 |
11721 /** @domName Document.head */ | 11727 /** @domName Document.head */ |
11722 HeadElement get head => document.$dom_head; | 11728 HeadElement get head => document.$dom_head; |
11723 | 11729 |
11724 /** @domName Document.lastModified */ | 11730 /** @domName Document.lastModified */ |
11725 String get lastModified => document.$dom_lastModified; | 11731 String get lastModified => document.$dom_lastModified; |
11726 | 11732 |
| 11733 /** @domName Document.preferredStylesheetSet */ |
| 11734 String get preferredStylesheetSet => document.$dom_preferredStylesheetSet; |
| 11735 |
11727 /** @domName Document.referrer */ | 11736 /** @domName Document.referrer */ |
11728 String get referrer => document.$dom_referrer; | 11737 String get referrer => document.$dom_referrer; |
11729 | 11738 |
| 11739 /** @domName Document.selectedStylesheetSet */ |
| 11740 String get selectedStylesheetSet => document.$dom_selectedStylesheetSet; |
| 11741 void set selectedStylesheetSet(String value) { |
| 11742 document.$dom_selectedStylesheetSet = value; |
| 11743 } |
| 11744 |
11730 /** @domName Document.styleSheets */ | 11745 /** @domName Document.styleSheets */ |
11731 List<StyleSheet> get styleSheets => document.$dom_styleSheets; | 11746 List<StyleSheet> get styleSheets => document.$dom_styleSheets; |
11732 | 11747 |
11733 /** @domName Document.title */ | 11748 /** @domName Document.title */ |
11734 String get title => document.$dom_title; | 11749 String get title => document.$dom_title; |
11735 | 11750 |
11736 /** @domName Document.title */ | 11751 /** @domName Document.title */ |
11737 void set title(String value) { | 11752 void set title(String value) { |
11738 document.$dom_title = value; | 11753 document.$dom_title = value; |
11739 } | 11754 } |
(...skipping 6365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
18105 } | 18120 } |
18106 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 18121 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
18107 // for details. All rights reserved. Use of this source code is governed by a | 18122 // for details. All rights reserved. Use of this source code is governed by a |
18108 // BSD-style license that can be found in the LICENSE file. | 18123 // BSD-style license that can be found in the LICENSE file. |
18109 | 18124 |
18110 // WARNING: Do not edit - generated code. | 18125 // WARNING: Do not edit - generated code. |
18111 | 18126 |
18112 | 18127 |
18113 /// @domName Range | 18128 /// @domName Range |
18114 class Range extends NativeFieldWrapperClass1 { | 18129 class Range extends NativeFieldWrapperClass1 { |
| 18130 factory Range() => document.$dom_createRange(); |
| 18131 |
18115 Range.internal(); | 18132 Range.internal(); |
18116 | 18133 |
18117 static const int END_TO_END = 2; | 18134 static const int END_TO_END = 2; |
18118 | 18135 |
18119 static const int END_TO_START = 3; | 18136 static const int END_TO_START = 3; |
18120 | 18137 |
18121 static const int NODE_AFTER = 1; | 18138 static const int NODE_AFTER = 1; |
18122 | 18139 |
18123 static const int NODE_BEFORE = 0; | 18140 static const int NODE_BEFORE = 0; |
18124 | 18141 |
(...skipping 11609 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
29734 bool get isEmpty => Maps.isEmpty(this); | 29751 bool get isEmpty => Maps.isEmpty(this); |
29735 } | 29752 } |
29736 | 29753 |
29737 get _printClosure => (s) { | 29754 get _printClosure => (s) { |
29738 try { | 29755 try { |
29739 window.console.log(s); | 29756 window.console.log(s); |
29740 } catch (_) { | 29757 } catch (_) { |
29741 _Utils.print(s); | 29758 _Utils.print(s); |
29742 } | 29759 } |
29743 }; | 29760 }; |
OLD | NEW |