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

Unified Diff: content/renderer/browser_plugin/browser_plugin.cc

Issue 11418134: ppapi: Opt-in to receive synthetic mouse events for touch-events. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tot-merge Created 8 years, 1 month 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 | « chrome/test/ppapi/ppapi_browsertest.cc ('k') | ppapi/api/ppb_input_event.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/browser_plugin/browser_plugin.cc
diff --git a/content/renderer/browser_plugin/browser_plugin.cc b/content/renderer/browser_plugin/browser_plugin.cc
index e5178b086089d0fe2da67845bcaa1a08f50c7fc9..f8053adf0cd76a88e5415a2fbb850772442c46bb 100644
--- a/content/renderer/browser_plugin/browser_plugin.cc
+++ b/content/renderer/browser_plugin/browser_plugin.cc
@@ -685,8 +685,11 @@ void BrowserPlugin::GuestContentWindowReady(int content_window_routing_id) {
}
void BrowserPlugin::SetAcceptTouchEvents(bool accept) {
- if (container())
- container()->setIsAcceptingTouchEvents(accept);
+ if (container()) {
+ container()->requestTouchEventType(accept ?
+ WebKit::WebPluginContainer::TouchEventRequestTypeRaw :
+ WebKit::WebPluginContainer::TouchEventRequestTypeNone);
+ }
}
WebKit::WebPluginContainer* BrowserPlugin::container() const {
« no previous file with comments | « chrome/test/ppapi/ppapi_browsertest.cc ('k') | ppapi/api/ppb_input_event.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698