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

Side by Side Diff: sky/sdk/lib/framework/fn2.dart

Issue 1146923005: Fix gesture events in fn2 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 6 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/sdk/lib/framework/app.dart ('k') | sky/sdk/lib/framework/rendering/node.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « sky/sdk/lib/framework/app.dart ('k') | sky/sdk/lib/framework/rendering/node.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698