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

Side by Side Diff: sky/specs/events.md

Issue 944873007: Specs: define how importing element registrations works, move built-in elements to a separate modul… (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 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
« no previous file with comments | « sky/specs/elements.md ('k') | sky/specs/gestures.md » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 Sky Event Model 1 Sky Event Model
2 =============== 2 ===============
3 3
4 ```dart 4 ```dart
5 SKY MODULE
6 <!-- part of dart:sky -->
7
8 <script>
9 import 'dart:collection'; 5 import 'dart:collection';
10 import 'dart:async'; 6 import 'dart:async';
11 7
12 class ExceptionAndStackTrace<T> { 8 class ExceptionAndStackTrace<T> {
13 const ExceptionAndStackTrace(this.exception, this.stackTrace); 9 const ExceptionAndStackTrace(this.exception, this.stackTrace);
14 final T exception; 10 final T exception;
15 final StackTrace stackTrace; 11 final StackTrace stackTrace;
16 } 12 }
17 13
18 class ExceptionListException<T> extends IterableMixin<ExceptionAndStackTrace<T>> implements Exception { 14 class ExceptionListException<T> extends IterableMixin<ExceptionAndStackTrace<T>> implements Exception {
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 if (exceptions.length > 0) 188 if (exceptions.length > 0)
193 throw exceptions; 189 throw exceptions;
194 return event.result; 190 return event.result;
195 } 191 }
196 192
197 void _dispatchEventLocally(Event event) { 193 void _dispatchEventLocally(Event event) {
198 event._currentTarget = this; 194 event._currentTarget = this;
199 _eventsController.add(event); 195 _eventsController.add(event);
200 } 196 }
201 } 197 }
202 </script>
203 ``` 198 ```
OLDNEW
« no previous file with comments | « sky/specs/elements.md ('k') | sky/specs/gestures.md » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698