| 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 897 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 908 if (transform != null) | 908 if (transform != null) |
| 909 current = new Transform(transform: transform, child: current); | 909 current = new Transform(transform: transform, child: current); |
| 910 | 910 |
| 911 return current; | 911 return current; |
| 912 } | 912 } |
| 913 } | 913 } |
| 914 | 914 |
| 915 class _AppView extends AppView { | 915 class _AppView extends AppView { |
| 916 _AppView() : super(null); | 916 _AppView() : super(null); |
| 917 | 917 |
| 918 void dispatchPointerEvent(sky.PointerEvent event, HitTestResult result) { | 918 void dispatchEvent(sky.Event event, HitTestResult result) { |
| 919 super.dispatchPointerEvent(event, result); | 919 super.dispatchEvent(event, result); |
| 920 | 920 |
| 921 UINode target = RenderNodeWrapper._getMounted(result.path.first); | 921 UINode target = RenderNodeWrapper._getMounted(result.path.first); |
| 922 | 922 |
| 923 // TODO(rafaelw): StopPropagation? | 923 // TODO(rafaelw): StopPropagation? |
| 924 while (target != null) { | 924 while (target != null) { |
| 925 if (target is EventListenerNode) | 925 if (target is EventListenerNode) |
| 926 target._handleEvent(event); | 926 target._handleEvent(event); |
| 927 target = target._parent; | 927 target = target._parent; |
| 928 } | 928 } |
| 929 } | 929 } |
| (...skipping 18 matching lines...) Expand all Loading... |
| 948 assert(root.parent is RenderView); | 948 assert(root.parent is RenderView); |
| 949 } | 949 } |
| 950 } | 950 } |
| 951 | 951 |
| 952 class Text extends Component { | 952 class Text extends Component { |
| 953 Text(this.data) : super(key: '*text*'); | 953 Text(this.data) : super(key: '*text*'); |
| 954 final String data; | 954 final String data; |
| 955 bool get interchangeable => true; | 955 bool get interchangeable => true; |
| 956 UINode build() => new Paragraph(text: data); | 956 UINode build() => new Paragraph(text: data); |
| 957 } | 957 } |
| OLD | NEW |