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

Side by Side Diff: tools/dom/templates/html/impl/impl_EventTarget.darttemplate

Issue 12061008: Renaming dart:html library from 'html' to 'dart.html' (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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 part of html; 5 part of $LIBRARYNAME;
6 6
7 /** 7 /**
8 * Base class that supports listening for and dispatching browser events. 8 * Base class that supports listening for and dispatching browser events.
9 * 9 *
10 * Events can either be accessed by string name (using the indexed getter) or by 10 * Events can either be accessed by string name (using the indexed getter) or by
11 * getters exposed by subclasses. Use the getters exposed by subclasses when 11 * getters exposed by subclasses. Use the getters exposed by subclasses when
12 * possible for better compile-time type checks. 12 * possible for better compile-time type checks.
13 * 13 *
14 * Using an indexed getter: 14 * Using an indexed getter:
15 * events['mouseover'].add((e) => print("Mouse over!")); 15 * events['mouseover'].add((e) => print("Mouse over!"));
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 * [$dom_addEventListener], [$dom_dispatchEvent], and 72 * [$dom_addEventListener], [$dom_dispatchEvent], and
73 * [$dom_removeEventListener]) for compile-time type checks and a more concise 73 * [$dom_removeEventListener]) for compile-time type checks and a more concise
74 * API. 74 * API.
75 */ 75 */
76 $(ANNOTATIONS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { 76 $(ANNOTATIONS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
77 77
78 @DomName('EventTarget.addEventListener, EventTarget.removeEventListener, Event Target.dispatchEvent') 78 @DomName('EventTarget.addEventListener, EventTarget.removeEventListener, Event Target.dispatchEvent')
79 Events get on => new Events(this); 79 Events get on => new Events(this);
80 $!MEMBERS 80 $!MEMBERS
81 } 81 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698