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

Side by Side Diff: lib/html/src/_Testing.dart

Issue 9732019: dart:html perf optimization based on runing Dromaeo benchmarks (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixes Created 8 years, 9 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
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 // TODO(rnystrom): add a way to supress public classes from DartDoc output. 5 // TODO(rnystrom): add a way to supress public classes from DartDoc output.
6 // TODO(jacobr): we can remove this class now that we are using the $dom_
7 // convention for deprecated methods rather than truly private methods.
6 /** 8 /**
7 * This class is intended for testing purposes only. 9 * This class is intended for testing purposes only.
8 */ 10 */
9 class Testing { 11 class Testing {
10 static void addEventListener(EventTarget target, String type, EventListener li stener, bool useCapture) { 12 static void addEventListener(EventTarget target, String type, EventListener li stener, bool useCapture) {
11 final _EventTargetImpl targetImpl = target; 13 final _EventTargetImpl targetImpl = target;
12 targetImpl._addEventListener(type, listener, useCapture); 14 targetImpl.$dom_addEventListener(type, listener, useCapture);
13 } 15 }
14 static void removeEventListener(EventTarget target, String type, EventListener listener, bool useCapture) { 16 static void removeEventListener(EventTarget target, String type, EventListener listener, bool useCapture) {
15 final _EventTargetImpl targetImpl = target; 17 final _EventTargetImpl targetImpl = target;
16 targetImpl._removeEventListener(type, listener, useCapture); 18 targetImpl.$dom_removeEventListener(type, listener, useCapture);
17 } 19 }
18 20
19 } 21 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698