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

Unified Diff: client/html/generated/html/dartium/Window.dart

Issue 9623017: Refactor the event-generation code to locate it in systemhtml.py. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Code review changes 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 side-by-side diff with in-line comments
Download patch
Index: client/html/generated/html/dartium/Window.dart
diff --git a/client/html/generated/html/dartium/Window.dart b/client/html/generated/html/dartium/Window.dart
index 10f90b68afeaa35b43f1ea774849f4d6aa5f6730..f66d28c4ccbb7e0bd6d24899651fe3b632b88ae7 100644
--- a/client/html/generated/html/dartium/Window.dart
+++ b/client/html/generated/html/dartium/Window.dart
@@ -12,6 +12,11 @@ class _WindowImpl extends _EventTargetImpl implements Window {
_WindowImpl._wrap(ptr) : super._wrap(ptr);
+ _WindowEventsImpl get on() {
+ if (_on == null) _on = new _WindowEventsImpl(this);
+ return _on;
+ }
+
DOMApplicationCache get applicationCache() => _wrap(_ptr.applicationCache);
Navigator get clientInformation() => _wrap(_ptr.clientInformation);
@@ -120,11 +125,6 @@ class _WindowImpl extends _EventTargetImpl implements Window {
Window get window() => _wrap(_ptr.window);
- _WindowEventsImpl get on() {
- if (_on == null) _on = new _WindowEventsImpl(this);
- return _on;
- }
-
void _addEventListener(String type, EventListener listener, [bool useCapture = null]) {
if (useCapture === null) {
_ptr.addEventListener(_unwrap(type), _unwrap(listener));
« no previous file with comments | « client/html/generated/html/dartium/WebSocket.dart ('k') | client/html/generated/html/dartium/XMLHttpRequest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698