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

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

Issue 11299257: Fix dartium tests after legacy getter removal (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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
« 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 library html; 1 library html;
2 2
3 import 'dart:isolate'; 3 import 'dart:isolate';
4 import 'dart:json'; 4 import 'dart:json';
5 import 'dart:svg' as svg; 5 import 'dart:svg' as svg;
6 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
7 // for details. All rights reserved. Use of this source code is governed by a 7 // for details. All rights reserved. Use of this source code is governed by a
8 // BSD-style license that can be found in the LICENSE file. 8 // BSD-style license that can be found in the LICENSE file.
9 9
10 // DO NOT EDIT 10 // DO NOT EDIT
(...skipping 6822 matching lines...) Expand 10 before | Expand all | Expand 10 after
6833 String get title => ""; 6833 String get title => "";
6834 String get tagName => ""; 6834 String get tagName => "";
6835 String get webkitdropzone => ""; 6835 String get webkitdropzone => "";
6836 String get webkitRegionOverflow => ""; 6836 String get webkitRegionOverflow => "";
6837 Element get $m_firstElementChild { 6837 Element get $m_firstElementChild {
6838 if (elements.length > 0) { 6838 if (elements.length > 0) {
6839 return elements[0]; 6839 return elements[0];
6840 } 6840 }
6841 return null; 6841 return null;
6842 } 6842 }
6843 Element get $m_lastElementChild() => elements.last; 6843 Element get $m_lastElementChild => elements.last;
Anton Muhin 2012/11/29 18:59:11 that should be fixed in http://code.google.com/p/d
hausner 2012/11/29 19:07:43 Hmm, I don't find the place where this gets genera
6844 Element get nextElementSibling => null; 6844 Element get nextElementSibling => null;
6845 Element get previousElementSibling => null; 6845 Element get previousElementSibling => null;
6846 Element get offsetParent => null; 6846 Element get offsetParent => null;
6847 Element get parent => null; 6847 Element get parent => null;
6848 Map<String, String> get attributes => const {}; 6848 Map<String, String> get attributes => const {};
6849 CssClassSet get classes => new _FrozenCssClassSet(); 6849 CssClassSet get classes => new _FrozenCssClassSet();
6850 Map<String, String> get dataAttributes => const {}; 6850 Map<String, String> get dataAttributes => const {};
6851 CSSStyleDeclaration get style => new Element.tag('div').style; 6851 CSSStyleDeclaration get style => new Element.tag('div').style;
6852 Future<CSSStyleDeclaration> get computedStyle => 6852 Future<CSSStyleDeclaration> get computedStyle =>
6853 _emptyStyleFuture(); 6853 _emptyStyleFuture();
(...skipping 4824 matching lines...) Expand 10 before | Expand all | Expand 10 after
11678 if (options == null) { 11678 if (options == null) {
11679 return _DOMWindowCrossFrame._createSafe(_open2(url, name)); 11679 return _DOMWindowCrossFrame._createSafe(_open2(url, name));
11680 } else { 11680 } else {
11681 return _DOMWindowCrossFrame._createSafe(_open3(url, name, options)); 11681 return _DOMWindowCrossFrame._createSafe(_open3(url, name, options));
11682 } 11682 }
11683 } 11683 }
11684 11684
11685 // API level getter and setter for Location. 11685 // API level getter and setter for Location.
11686 // TODO: The cross domain safe wrapper can be inserted here or folded into 11686 // TODO: The cross domain safe wrapper can be inserted here or folded into
11687 // _LocationWrapper. 11687 // _LocationWrapper.
11688 LocalLocation get location() { 11688 LocalLocation get location {
11689 // Firefox work-around for Location. The Firefox location object cannot be 11689 // Firefox work-around for Location. The Firefox location object cannot be
11690 // made to behave like a Dart object so must be wrapped. 11690 // made to behave like a Dart object so must be wrapped.
11691 var result = _location; 11691 var result = _location;
11692 if (_isDartLocation(result)) return result; // e.g. on Chrome. 11692 if (_isDartLocation(result)) return result; // e.g. on Chrome.
11693 if (null == _location_wrapper) { 11693 if (null == _location_wrapper) {
11694 _location_wrapper = new _LocationWrapper(result); 11694 _location_wrapper = new _LocationWrapper(result);
11695 } 11695 }
11696 return _location_wrapper; 11696 return _location_wrapper;
11697 } 11697 }
11698 11698
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
11775 $this.requestAnimationFrame = function(callback) { 11775 $this.requestAnimationFrame = function(callback) {
11776 return window.setTimeout(function() { 11776 return window.setTimeout(function() {
11777 callback(Date.now()); 11777 callback(Date.now());
11778 }, 16 /* 16ms ~= 60fps */); 11778 }, 16 /* 16ms ~= 60fps */);
11779 }; 11779 };
11780 $this.cancelAnimationFrame = function(id) { clearTimeout(id); } 11780 $this.cancelAnimationFrame = function(id) { clearTimeout(id); }
11781 })(#)""", 11781 })(#)""",
11782 this); 11782 this);
11783 } 11783 }
11784 11784
11785 IDBFactory get indexedDB() => 11785 IDBFactory get indexedDB =>
11786 JS('IDBFactory', 11786 JS('IDBFactory',
11787 '#.indexedDB || #.webkitIndexedDB || #.mozIndexedDB', 11787 '#.indexedDB || #.webkitIndexedDB || #.mozIndexedDB',
11788 this, this, this); 11788 this, this, this);
11789 11789
11790 /** 11790 /**
11791 * Lookup a port by its [name]. Return null if no port is 11791 * Lookup a port by its [name]. Return null if no port is
11792 * registered under [name]. 11792 * registered under [name].
11793 */ 11793 */
11794 SendPortSync lookupPort(String name) { 11794 SendPortSync lookupPort(String name) {
11795 var port = JSON.parse(document.documentElement.attributes['dart-port:$name'] ); 11795 var port = JSON.parse(document.documentElement.attributes['dart-port:$name'] );
(...skipping 13357 matching lines...) Expand 10 before | Expand all | Expand 10 after
25153 if (length < 0) throw new ArgumentError('length'); 25153 if (length < 0) throw new ArgumentError('length');
25154 if (start < 0) throw new RangeError.value(start); 25154 if (start < 0) throw new RangeError.value(start);
25155 int end = start + length; 25155 int end = start + length;
25156 if (end > a.length) throw new RangeError.value(end); 25156 if (end > a.length) throw new RangeError.value(end);
25157 for (int i = start; i < end; i++) { 25157 for (int i = start; i < end; i++) {
25158 accumulator.add(a[i]); 25158 accumulator.add(a[i]);
25159 } 25159 }
25160 return accumulator; 25160 return accumulator;
25161 } 25161 }
25162 } 25162 }
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