Commit 93e15565 authored by yael.aharon@intel.com's avatar yael.aharon@intel.com

Pass information to ppapi plugin if a mouse button was pressed during...

Pass information to ppapi plugin if a mouse button was pressed during MouseMove event. This patch requiers a separate patch I submitted to blink.

BUG=179054
TEST=Load the 2d or input example plugins and try to draw in them.

Review URL: https://chromiumcodereview.appspot.com/14324006

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@195444 0039d316-1c4b-4281-b951-d872f2087c98
parent fea8f7e8
......@@ -238,3 +238,5 @@ Raphael Kubo da Costa <raphael.kubo.da.costa@intel.com>
Yandex LLC <*@yandex-team.ru>
Yoshinori Sano <yoshinori.sano@gmail.com>
Mrunal Kapade <mrunal.kapade@intel.com>
Yael Aharon <yael.aharon@intel.com>
......@@ -191,6 +191,7 @@ void AppendMouseEvent(const WebInputEvent& event,
InputEventData result = GetEventWithCommonFieldsAndType(event);
result.event_modifiers = mouse_event.modifiers;
if (mouse_event.type == WebInputEvent::MouseDown ||
mouse_event.type == WebInputEvent::MouseMove ||
mouse_event.type == WebInputEvent::MouseUp) {
result.mouse_button =
static_cast<PP_InputEvent_MouseButton>(mouse_event.button);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment