| OLD | NEW |
| 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 import 'dart:web_audio' as web_audio; | 6 import 'dart:web_audio' as web_audio; |
| 7 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 7 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 8 // for details. All rights reserved. Use of this source code is governed by a | 8 // for details. All rights reserved. Use of this source code is governed by a |
| 9 // BSD-style license that can be found in the LICENSE file. | 9 // BSD-style license that can be found in the LICENSE file. |
| 10 | 10 |
| (...skipping 21932 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 21943 /** The set of functions that wish to be notified when a KeyEvent happens. */ | 21943 /** The set of functions that wish to be notified when a KeyEvent happens. */ |
| 21944 List<Function> _callbacks; | 21944 List<Function> _callbacks; |
| 21945 | 21945 |
| 21946 /** The type of KeyEvent we are tracking (keyup, keydown, keypress). */ | 21946 /** The type of KeyEvent we are tracking (keyup, keydown, keypress). */ |
| 21947 String _type; | 21947 String _type; |
| 21948 | 21948 |
| 21949 /** The element we are watching for events to happen on. */ | 21949 /** The element we are watching for events to happen on. */ |
| 21950 EventTarget _target; | 21950 EventTarget _target; |
| 21951 | 21951 |
| 21952 // The distance to shift from upper case alphabet Roman letters to lower case. | 21952 // The distance to shift from upper case alphabet Roman letters to lower case. |
| 21953 const int _ROMAN_ALPHABET_OFFSET = "a".charCodes[0] - "A".charCodes[0]; | 21953 int _ROMAN_ALPHABET_OFFSET = "a".charCodes[0] - "A".charCodes[0]; |
| 21954 | 21954 |
| 21955 // Instance members referring to the internal event handlers because closures | 21955 // Instance members referring to the internal event handlers because closures |
| 21956 // are not hashable. | 21956 // are not hashable. |
| 21957 var _keyUp, _keyDown, _keyPress; | 21957 var _keyUp, _keyDown, _keyPress; |
| 21958 | 21958 |
| 21959 /** | 21959 /** |
| 21960 * An enumeration of key identifiers currently part of the W3C draft for DOM3 | 21960 * An enumeration of key identifiers currently part of the W3C draft for DOM3 |
| 21961 * and their mappings to keyCodes. | 21961 * and their mappings to keyCodes. |
| 21962 * http://www.w3.org/TR/DOM-Level-3-Events/keyset.html#KeySet-Set | 21962 * http://www.w3.org/TR/DOM-Level-3-Events/keyset.html#KeySet-Set |
| 21963 */ | 21963 */ |
| (...skipping 3044 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 25008 if (length < 0) throw new ArgumentError('length'); | 25008 if (length < 0) throw new ArgumentError('length'); |
| 25009 if (start < 0) throw new RangeError.value(start); | 25009 if (start < 0) throw new RangeError.value(start); |
| 25010 int end = start + length; | 25010 int end = start + length; |
| 25011 if (end > a.length) throw new RangeError.value(end); | 25011 if (end > a.length) throw new RangeError.value(end); |
| 25012 for (int i = start; i < end; i++) { | 25012 for (int i = start; i < end; i++) { |
| 25013 accumulator.add(a[i]); | 25013 accumulator.add(a[i]); |
| 25014 } | 25014 } |
| 25015 return accumulator; | 25015 return accumulator; |
| 25016 } | 25016 } |
| 25017 } | 25017 } |
| OLD | NEW |