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

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

Issue 1176373004: Wire up Android back button in SkyShell (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/engine/public/sky/sky_view.cc ('k') | sky/services/viewport/input_event.mojom » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/examples/raw/hello_world.dart
diff --git a/sky/examples/raw/hello_world.dart b/sky/examples/raw/hello_world.dart
index d6685036095ffeeb5f2c5c730929ea7ca2eb82b0..4264abf8990f0bee5c78ce2d5bad6f70456e9ee3 100644
--- a/sky/examples/raw/hello_world.dart
+++ b/sky/examples/raw/hello_world.dart
@@ -30,6 +30,11 @@ bool handleEvent(Event event) {
return true;
}
+ if (event.type == "back") {
+ print("Pressed back button.");
+ return true;
+ }
+
return false;
}
« no previous file with comments | « sky/engine/public/sky/sky_view.cc ('k') | sky/services/viewport/input_event.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698