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

Unified Diff: sky/examples/fn2/container.dart

Issue 1153343004: Mark fn2's EventListenerNode work for PointerEvent (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 7 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
« no previous file with comments | « no previous file | sky/sdk/lib/framework/app.dart » ('j') | sky/sdk/lib/framework/fn2.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/examples/fn2/container.dart
diff --git a/sky/examples/fn2/container.dart b/sky/examples/fn2/container.dart
new file mode 100644
index 0000000000000000000000000000000000000000..5cb9910dda9c40330a8614bb5f13f5d860dd2861
--- /dev/null
+++ b/sky/examples/fn2/container.dart
@@ -0,0 +1,22 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+import 'dart:sky' as sky;
+import 'package:sky/framework/fn2.dart';
+
+class ContainerApp extends App {
+ UINode build() {
+ return new EventListenerNode(
+ new Rectangle(0xFF00FFFF),
+ onPointerDown: _handlePointerDown);
+ }
+
+ void _handlePointerDown(sky.PointerEvent event) {
+ print("_handlePointerDown");
+ }
+}
+
+void main() {
+ new ContainerApp();
+}
« no previous file with comments | « no previous file | sky/sdk/lib/framework/app.dart » ('j') | sky/sdk/lib/framework/fn2.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698