Index: content/browser/renderer_host/render_widget_host_impl.cc |
diff --git a/content/browser/renderer_host/render_widget_host_impl.cc b/content/browser/renderer_host/render_widget_host_impl.cc |
index df99c91977c538699099a62f0ad60a85a9fb9597..e5312e8ef041e6bcb051b2e3239c9c91965a17ea 100644 |
--- a/content/browser/renderer_host/render_widget_host_impl.cc |
+++ b/content/browser/renderer_host/render_widget_host_impl.cc |
@@ -449,8 +449,6 @@ bool RenderWidgetHostImpl::OnMessageReceived(const IPC::Message &msg) { |
IPC_MESSAGE_HANDLER(ViewHostMsg_Focus, OnFocus) |
IPC_MESSAGE_HANDLER(ViewHostMsg_Blur, OnBlur) |
IPC_MESSAGE_HANDLER(ViewHostMsg_SetCursor, OnSetCursor) |
- IPC_MESSAGE_HANDLER(ViewHostMsg_SetTouchEventEmulationEnabled, |
- OnSetTouchEventEmulationEnabled) |
IPC_MESSAGE_HANDLER(ViewHostMsg_TextInputStateChanged, |
OnTextInputStateChanged) |
IPC_MESSAGE_HANDLER(ViewHostMsg_LockMouse, OnLockMouse) |
@@ -1603,20 +1601,12 @@ void RenderWidgetHostImpl::OnSetCursor(const WebCursor& cursor) { |
SetCursor(cursor); |
} |
-void RenderWidgetHostImpl::OnSetTouchEventEmulationEnabled( |
- bool enabled, bool allow_pinch) { |
- SetTouchEventEmulationEnabled(enabled, allow_pinch); |
-} |
- |
void RenderWidgetHostImpl::SetTouchEventEmulationEnabled( |
- bool enabled, bool allow_pinch) { |
- if (delegate_) |
- delegate_->OnTouchEmulationEnabled(enabled); |
- |
+ bool enabled) { |
dgozman
2014/08/19 04:11:50
nit: fits one line.
pfeldman
2014/08/19 12:37:21
Done.
|
if (enabled) { |
if (!touch_emulator_) |
touch_emulator_.reset(new TouchEmulator(this)); |
- touch_emulator_->Enable(allow_pinch); |
+ touch_emulator_->Enable(); |
} else { |
if (touch_emulator_) |
touch_emulator_->Disable(); |