| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 library fn; | 5 library fn; |
| 6 | 6 |
| 7 import 'app.dart'; | 7 import 'app.dart'; |
| 8 import 'dart:async'; | 8 import 'dart:async'; |
| 9 import 'dart:collection'; | 9 import 'dart:collection'; |
| 10 import 'dart:mirrors'; | 10 import 'dart:mirrors'; |
| (...skipping 1072 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1083 } | 1083 } |
| 1084 | 1084 |
| 1085 } | 1085 } |
| 1086 | 1086 |
| 1087 class _AppView extends AppView { | 1087 class _AppView extends AppView { |
| 1088 _AppView() : super(null); | 1088 _AppView() : super(null); |
| 1089 | 1089 |
| 1090 void dispatchEvent(sky.Event event, HitTestResult result) { | 1090 void dispatchEvent(sky.Event event, HitTestResult result) { |
| 1091 super.dispatchEvent(event, result); | 1091 super.dispatchEvent(event, result); |
| 1092 | 1092 |
| 1093 UINode target = RenderObjectWrapper._getMounted(result.path.first); | 1093 UINode target = RenderObjectWrapper._getMounted(result.path.first.entry); |
| 1094 | 1094 |
| 1095 // TODO(rafaelw): StopPropagation? | 1095 // TODO(rafaelw): StopPropagation? |
| 1096 while (target != null) { | 1096 while (target != null) { |
| 1097 if (target is EventListenerNode) | 1097 if (target is EventListenerNode) |
| 1098 target._handleEvent(event); | 1098 target._handleEvent(event); |
| 1099 target = target._parent; | 1099 target = target._parent; |
| 1100 } | 1100 } |
| 1101 } | 1101 } |
| 1102 } | 1102 } |
| 1103 | 1103 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 1122 } | 1122 } |
| 1123 | 1123 |
| 1124 } | 1124 } |
| 1125 | 1125 |
| 1126 class Text extends Component { | 1126 class Text extends Component { |
| 1127 Text(this.data) : super(key: '*text*'); | 1127 Text(this.data) : super(key: '*text*'); |
| 1128 final String data; | 1128 final String data; |
| 1129 bool get interchangeable => true; | 1129 bool get interchangeable => true; |
| 1130 UINode build() => new Paragraph(text: data); | 1130 UINode build() => new Paragraph(text: data); |
| 1131 } | 1131 } |
| OLD | NEW |