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

Unified Diff: sky/engine/public/platform/WebInputEvent.h

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 | « no previous file | sky/engine/public/sky/sky_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/public/platform/WebInputEvent.h
diff --git a/sky/engine/public/platform/WebInputEvent.h b/sky/engine/public/platform/WebInputEvent.h
index b63becb1ef8b27bf9f1afec0e741a19257ef01a8..d3e58ed78d8d07fbd2a6cbe353c4f3e6b1d4fda0 100644
--- a/sky/engine/public/platform/WebInputEvent.h
+++ b/sky/engine/public/platform/WebInputEvent.h
@@ -123,6 +123,8 @@ public:
GestureTypeLast = GesturePinchUpdate,
WheelEvent,
+
+ Back,
};
enum Modifiers {
@@ -187,6 +189,10 @@ public:
return type == WheelEvent;
}
+ static WebInputEvent* create() {
+ return new WebInputEvent(sizeof(WebInputEvent));
+ }
+
protected:
explicit WebInputEvent(unsigned sizeParam)
{
« no previous file with comments | « no previous file | sky/engine/public/sky/sky_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698