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

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

Issue 16050007: Fixing broken tests because of mismatch of suppressed warnings. (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 22028 matching lines...) Expand 10 before | Expand all | Expand 10 after
22039 if (metaKey) { 22039 if (metaKey) {
22040 modifiers.push('Meta'); 22040 modifiers.push('Meta');
22041 } 22041 }
22042 event._initWheelEvent(type, canBubble, cancelable, view, detail, screenX, 22042 event._initWheelEvent(type, canBubble, cancelable, view, detail, screenX,
22043 screenY, clientX, clientY, button, relatedTarget, modifiers.join(' '), 22043 screenY, clientX, clientY, button, relatedTarget, modifiers.join(' '),
22044 deltaX, deltaY, 0, 0); 22044 deltaX, deltaY, 0, 0);
22045 } else if (event._hasInitMouseScrollEvent) { 22045 } else if (event._hasInitMouseScrollEvent) {
22046 var axis = 0; 22046 var axis = 0;
22047 var detail = 0; 22047 var detail = 0;
22048 if (deltaX != 0 && deltaY != 0) { 22048 if (deltaX != 0 && deltaY != 0) {
22049 throw UnsupportedError( 22049 throw new UnsupportedError(
22050 'Cannot modify deltaX and deltaY simultaneously'); 22050 'Cannot modify deltaX and deltaY simultaneously');
22051 } 22051 }
22052 if (deltaY != 0) { 22052 if (deltaY != 0) {
22053 detail = deltaY; 22053 detail = deltaY;
22054 axis = JS('int', 'MouseScrollEvent.VERTICAL_AXIS'); 22054 axis = JS('int', 'MouseScrollEvent.VERTICAL_AXIS');
22055 } else if (deltaX != 0) { 22055 } else if (deltaX != 0) {
22056 detail = deltaX; 22056 detail = deltaX;
22057 axis = JS('int', 'MouseScrollEvent.HORIZONTAL_AXIS'); 22057 axis = JS('int', 'MouseScrollEvent.HORIZONTAL_AXIS');
22058 } 22058 }
22059 event._initMouseScrollEvent(type, canBubble, cancelable, view, detail, 22059 event._initMouseScrollEvent(type, canBubble, cancelable, view, detail,
(...skipping 5878 matching lines...) Expand 10 before | Expand all | Expand 10 after
27938 static void _removeAllBindingsRecursively(Node node) { 27938 static void _removeAllBindingsRecursively(Node node) {
27939 _nodeOrCustom(node).unbindAll(); 27939 _nodeOrCustom(node).unbindAll();
27940 for (var c = node.$dom_firstChild; c != null; c = c.nextNode) { 27940 for (var c = node.$dom_firstChild; c != null; c = c.nextNode) {
27941 _removeAllBindingsRecursively(c); 27941 _removeAllBindingsRecursively(c);
27942 } 27942 }
27943 } 27943 }
27944 27944
27945 static void _removeChild(Node parent, Node child) { 27945 static void _removeChild(Node parent, Node child) {
27946 child._templateInstance = null; 27946 child._templateInstance = null;
27947 if (child is Element && (child as Element).isTemplate) { 27947 if (child is Element && (child as Element).isTemplate) {
27948 Element childElement = child;
27948 // Make sure we stop observing when we remove an element. 27949 // Make sure we stop observing when we remove an element.
27949 var templateIterator = child._templateIterator; 27950 var templateIterator = childElement._templateIterator;
27950 if (templateIterator != null) { 27951 if (templateIterator != null) {
27951 templateIterator.abandon(); 27952 templateIterator.abandon();
27952 child._templateIterator = null; 27953 childElement._templateIterator = null;
27953 } 27954 }
27954 } 27955 }
27955 child.remove(); 27956 child.remove();
27956 _removeAllBindingsRecursively(child); 27957 _removeAllBindingsRecursively(child);
27957 } 27958 }
27958 } 27959 }
27959 27960
27960 class _BindingToken { 27961 class _BindingToken {
27961 final String value; 27962 final String value;
27962 final bool isBinding; 27963 final bool isBinding;
(...skipping 1384 matching lines...) Expand 10 before | Expand all | Expand 10 after
29347 _position = nextPosition; 29348 _position = nextPosition;
29348 return true; 29349 return true;
29349 } 29350 }
29350 _current = null; 29351 _current = null;
29351 _position = _array.length; 29352 _position = _array.length;
29352 return false; 29353 return false;
29353 } 29354 }
29354 29355
29355 T get current => _current; 29356 T get current => _current;
29356 } 29357 }
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