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

Unified Diff: sky/sdk/lib/framework/app.dart

Issue 1156303004: Use Point, Size, and Rect in layout2.dart (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: address review comments 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 | « sky/examples/raw/simple_render_tree.dart ('k') | sky/sdk/lib/framework/components2/scaffold.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/sdk/lib/framework/app.dart
diff --git a/sky/sdk/lib/framework/app.dart b/sky/sdk/lib/framework/app.dart
index 6f536e7bfc21570e2a62b3eb221240e2a0fe784e..cfaa57fec65c3e4a11c433c41a973d10db5d0ce8 100644
--- a/sky/sdk/lib/framework/app.dart
+++ b/sky/sdk/lib/framework/app.dart
@@ -41,7 +41,7 @@ class AppView {
switch(event.type) {
case 'pointerdown':
result = new HitTestResult();
- _renderView.hitTest(result, x: event.x, y: event.y);
+ _renderView.hitTest(result, position: new sky.Point(event.x, event.y));
_hitTestResultForPointer[event.pointer] = result;
break;
case 'pointerup':
@@ -54,7 +54,7 @@ class AppView {
// In the case of mouse hover we won't already have a cached down.
if (result == null) {
result = new HitTestResult();
- _renderView.hitTest(result, x: event.x, y: event.y);
+ _renderView.hitTest(result, position: new sky.Point(event.x, event.y));
}
break;
}
« no previous file with comments | « sky/examples/raw/simple_render_tree.dart ('k') | sky/sdk/lib/framework/components2/scaffold.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698