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

Unified Diff: examples/embedded_app/embedded_app.cc

Issue 1033513003: Cleans up events to just the parts we're actually using (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: cleanup Created 5 years, 9 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 | examples/nesting_app/nesting_app.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: examples/embedded_app/embedded_app.cc
diff --git a/examples/embedded_app/embedded_app.cc b/examples/embedded_app/embedded_app.cc
index e1ddcd0ffdc6f75087fddba623081bb3bec26d73..e669599a926c9628891e9b537c0b0c441557d3aa 100644
--- a/examples/embedded_app/embedded_app.cc
+++ b/examples/embedded_app/embedded_app.cc
@@ -86,15 +86,14 @@ class EmbeddedApp
windows_.erase(view->id());
}
void OnViewInputEvent(View* view, const EventPtr& event) override {
- if (event->action == EVENT_TYPE_MOUSE_RELEASED) {
- if (event->flags & EVENT_FLAGS_LEFT_MOUSE_BUTTON) {
- URLRequestPtr request(URLRequest::New());
- request->url = "http://www.aaronboodman.com/z_dropbox/test.html";
- NavigatorHostPtr navigator_host;
- ConnectToService(windows_[view->id()]->embedder_service_provider.get(),
- &navigator_host);
- navigator_host->RequestNavigate(TARGET_SOURCE_NODE, request.Pass());
- }
+ if (event->action == EVENT_TYPE_POINTER_UP &&
+ event->flags & EVENT_FLAGS_LEFT_MOUSE_BUTTON) {
+ URLRequestPtr request(URLRequest::New());
+ request->url = "http://www.aaronboodman.com/z_dropbox/test.html";
+ NavigatorHostPtr navigator_host;
+ ConnectToService(windows_[view->id()]->embedder_service_provider.get(),
+ &navigator_host);
+ navigator_host->RequestNavigate(TARGET_SOURCE_NODE, request.Pass());
}
}
« no previous file with comments | « no previous file | examples/nesting_app/nesting_app.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698