summaryrefslogtreecommitdiffstats
path: root/content/browser/browser_plugin/browser_plugin_guest_helper.cc
diff options
context:
space:
mode:
authoryusufo@chromium.org <yusufo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-30 00:26:01 +0000
committeryusufo@chromium.org <yusufo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-30 00:26:01 +0000
commit3d5c243b1ce05106cfaaa3c236be066c772fec62 (patch)
tree153d1cf5f161dda523f3849c7b560766ced66130 /content/browser/browser_plugin/browser_plugin_guest_helper.cc
parent8350f16f65f145e137b732578491bc4cc2877784 (diff)
downloadchromium_src-3d5c243b1ce05106cfaaa3c236be066c772fec62.zip
chromium_src-3d5c243b1ce05106cfaaa3c236be066c772fec62.tar.gz
chromium_src-3d5c243b1ce05106cfaaa3c236be066c772fec62.tar.bz2
Change the InputEventAck codepath to use a tri-state-enum instead of a boolean
Right now whenever an input event ACK is sent back to render_widget_host_impl we do not distinguish between events that are returned because they didn't hit any touch event handlers vs events not handled by touch event handler when there is a hit. This change adds a tri-state enum to the IPC message that will be used to distinguish NotProcessed touch events from Returned touch events. BUG=135818 Review URL: https://chromiumcodereview.appspot.com/11363133 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@170304 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/browser_plugin/browser_plugin_guest_helper.cc')
-rw-r--r--content/browser/browser_plugin/browser_plugin_guest_helper.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/content/browser/browser_plugin/browser_plugin_guest_helper.cc b/content/browser/browser_plugin/browser_plugin_guest_helper.cc
index b1de4d9..abd2c14 100644
--- a/content/browser/browser_plugin/browser_plugin_guest_helper.cc
+++ b/content/browser/browser_plugin/browser_plugin_guest_helper.cc
@@ -51,8 +51,9 @@ void BrowserPluginGuestHelper::OnUpdateRect(
void BrowserPluginGuestHelper::OnHandleInputEventAck(
WebKit::WebInputEvent::Type event_type,
- bool processed) {
- guest_->HandleInputEventAck(render_view_host(), processed);
+ InputEventAckState ack_result) {
+ guest_->HandleInputEventAck(render_view_host(),
+ ack_result == INPUT_EVENT_ACK_STATE_CONSUMED);
}
void BrowserPluginGuestHelper::OnTakeFocus(bool reverse) {