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

Unified Diff: sky/engine/public/sky/sky_view.cc

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/platform/WebInputEvent.h ('k') | sky/examples/raw/hello_world.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/public/sky/sky_view.cc
diff --git a/sky/engine/public/sky/sky_view.cc b/sky/engine/public/sky/sky_view.cc
index 2050150b1b11cf5b7e38edd2192925cd1991b6d3..d16243f6e7dd8a7323ee5f11f09a53a550d42450 100644
--- a/sky/engine/public/sky/sky_view.cc
+++ b/sky/engine/public/sky/sky_view.cc
@@ -91,6 +91,8 @@ void SkyView::HandleInputEvent(const WebInputEvent& inputEvent) {
} else if (WebInputEvent::isWheelEventType(inputEvent.type)) {
const WebWheelEvent& event = static_cast<const WebWheelEvent&>(inputEvent);
data_->view_->handleInputEvent(WheelEvent::create(event));
+ } else if (inputEvent.type == WebInputEvent::Back) {
+ data_->view_->handleInputEvent(Event::create("back"));
}
}
« no previous file with comments | « sky/engine/public/platform/WebInputEvent.h ('k') | sky/examples/raw/hello_world.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698