Index: sky/sdk/lib/base/hit_test.dart |
diff --git a/sky/sdk/lib/base/hit_test.dart b/sky/sdk/lib/base/hit_test.dart |
new file mode 100644 |
index 0000000000000000000000000000000000000000..9707142760de5d33072abe31c00c656cccb1a50f |
--- /dev/null |
+++ b/sky/sdk/lib/base/hit_test.dart |
@@ -0,0 +1,21 @@ |
+// 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; |
+ |
+abstract class HitTestTarget { |
+ void handleEvent(sky.Event event, HitTestEntry entry); |
+} |
+ |
+class HitTestEntry { |
+ const HitTestEntry(this.target); |
+ final HitTestTarget target; |
+} |
+ |
+class HitTestResult { |
+ final List<HitTestEntry> path = new List<HitTestEntry>(); |
+ void add(HitTestEntry data) { |
+ path.add(data); |
+ } |
+} |