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

Side by Side Diff: sdk/lib/html/dart2js/html_dart2js.dart

Issue 17681003: Restore adoptNode and importNode to dart:html (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 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 | sdk/lib/html/dartium/html_dartium.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 /// The Dart HTML library. 1 /// The Dart HTML library.
2 library dart.dom.html; 2 library dart.dom.html;
3 3
4 import 'dart:async'; 4 import 'dart:async';
5 import 'dart:collection'; 5 import 'dart:collection';
6 import 'dart:_collection-dev' hide Symbol; 6 import 'dart:_collection-dev' hide Symbol;
7 import 'dart:html_common'; 7 import 'dart:html_common';
8 import 'dart:indexed_db'; 8 import 'dart:indexed_db';
9 import 'dart:isolate'; 9 import 'dart:isolate';
10 import 'dart:json' as json; 10 import 'dart:json' as json;
(...skipping 6752 matching lines...) Expand 10 before | Expand all | Expand 10 after
6763 6763
6764 @JSName('webkitVisibilityState') 6764 @JSName('webkitVisibilityState')
6765 @DomName('Document.webkitVisibilityState') 6765 @DomName('Document.webkitVisibilityState')
6766 @DocsEditable 6766 @DocsEditable
6767 @SupportedBrowser(SupportedBrowser.CHROME) 6767 @SupportedBrowser(SupportedBrowser.CHROME)
6768 @SupportedBrowser(SupportedBrowser.SAFARI) 6768 @SupportedBrowser(SupportedBrowser.SAFARI)
6769 @Experimental 6769 @Experimental
6770 // https://dvcs.w3.org/hg/webperf/raw-file/tip/specs/PageVisibility/Overview.h tml#dom-document-visibilitystate 6770 // https://dvcs.w3.org/hg/webperf/raw-file/tip/specs/PageVisibility/Overview.h tml#dom-document-visibilitystate
6771 final String $dom_webkitVisibilityState; 6771 final String $dom_webkitVisibilityState;
6772 6772
6773 @DomName('Document.adoptNode')
6774 @DocsEditable
6775 Node adoptNode(Node source) native;
6776
6773 @JSName('caretRangeFromPoint') 6777 @JSName('caretRangeFromPoint')
6774 /// Use the [Range] constructor instead. 6778 /// Use the [Range] constructor instead.
6775 @DomName('Document.caretRangeFromPoint') 6779 @DomName('Document.caretRangeFromPoint')
6776 @DocsEditable 6780 @DocsEditable
6777 // http://www.w3.org/TR/2009/WD-cssom-view-20090804/#dom-documentview-caretran gefrompoint 6781 // http://www.w3.org/TR/2009/WD-cssom-view-20090804/#dom-documentview-caretran gefrompoint
6778 @Experimental 6782 @Experimental
6779 Range $dom_caretRangeFromPoint(int x, int y) native; 6783 Range $dom_caretRangeFromPoint(int x, int y) native;
6780 6784
6781 @JSName('createCDATASection') 6785 @JSName('createCDATASection')
6782 @DomName('Document.createCDATASection') 6786 @DomName('Document.createCDATASection')
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
6881 @Returns('NodeList') 6885 @Returns('NodeList')
6882 @Creates('NodeList') 6886 @Creates('NodeList')
6883 List<Node> getElementsByName(String elementName) native; 6887 List<Node> getElementsByName(String elementName) native;
6884 6888
6885 @DomName('Document.getElementsByTagName') 6889 @DomName('Document.getElementsByTagName')
6886 @DocsEditable 6890 @DocsEditable
6887 @Returns('NodeList') 6891 @Returns('NodeList')
6888 @Creates('NodeList') 6892 @Creates('NodeList')
6889 List<Node> getElementsByTagName(String tagname) native; 6893 List<Node> getElementsByTagName(String tagname) native;
6890 6894
6895 @DomName('Document.importNode')
6896 @DocsEditable
6897 Node importNode(Node importedNode, [bool deep]) native;
6898
6891 @DomName('Document.queryCommandEnabled') 6899 @DomName('Document.queryCommandEnabled')
6892 @DocsEditable 6900 @DocsEditable
6893 bool queryCommandEnabled(String command) native; 6901 bool queryCommandEnabled(String command) native;
6894 6902
6895 @DomName('Document.queryCommandIndeterm') 6903 @DomName('Document.queryCommandIndeterm')
6896 @DocsEditable 6904 @DocsEditable
6897 bool queryCommandIndeterm(String command) native; 6905 bool queryCommandIndeterm(String command) native;
6898 6906
6899 @DomName('Document.queryCommandState') 6907 @DomName('Document.queryCommandState')
6900 @DocsEditable 6908 @DocsEditable
(...skipping 22696 matching lines...) Expand 10 before | Expand all | Expand 10 after
29597 _position = nextPosition; 29605 _position = nextPosition;
29598 return true; 29606 return true;
29599 } 29607 }
29600 _current = null; 29608 _current = null;
29601 _position = _array.length; 29609 _position = _array.length;
29602 return false; 29610 return false;
29603 } 29611 }
29604 29612
29605 T get current => _current; 29613 T get current => _current;
29606 } 29614 }
OLDNEW
« no previous file with comments | « no previous file | sdk/lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698