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

Unified Diff: sky/examples/raw/hello_world.dart

Issue 1153543002: Make hit testing work in layout2.dart (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Add missing file 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
Index: sky/examples/raw/hello_world.dart
diff --git a/sky/examples/raw/hello_world.dart b/sky/examples/raw/hello_world.dart
index b27b29da7a032579f07fcea5b7cf70dc430f7c6c..61079b5927d1499bed8cffd54005c272ee6beb60 100644
--- a/sky/examples/raw/hello_world.dart
+++ b/sky/examples/raw/hello_world.dart
@@ -20,13 +20,13 @@ Picture draw(int a, int r, int g, int b) {
bool handleEvent(Event event) {
if (event.type == "pointerdown") {
view.picture = draw(255, 0, 0, 255);
- view.schedulePaint();
+ view.scheduleFrame();
return true;
}
if (event.type == "pointerup") {
view.picture = draw(255, 0, 255, 0);
- view.schedulePaint();
+ view.scheduleFrame();
return true;
}
@@ -36,7 +36,7 @@ bool handleEvent(Event event) {
void main() {
print("Hello, world");
view.picture = draw(255, 0, 255, 0);
- view.schedulePaint();
+ view.scheduleFrame();
view.setEventCallback(handleEvent);
}

Powered by Google App Engine
This is Rietveld 408576698