| Index: third_party/WebKit/Source/web/WebPluginContainerImpl.cpp
|
| diff --git a/third_party/WebKit/Source/web/WebPluginContainerImpl.cpp b/third_party/WebKit/Source/web/WebPluginContainerImpl.cpp
|
| index 18404005ce7c2fbc4ff12521f2e86797e7fb044b..10a10cfc09fcf8669a327ff65a029cc6414281b4 100644
|
| --- a/third_party/WebKit/Source/web/WebPluginContainerImpl.cpp
|
| +++ b/third_party/WebKit/Source/web/WebPluginContainerImpl.cpp
|
| @@ -791,7 +791,7 @@ void WebPluginContainerImpl::handleMouseEvent(MouseEvent* event)
|
| focusPlugin();
|
|
|
| WebCursorInfo cursorInfo;
|
| - if (m_webPlugin->handleInputEvent(webEvent, cursorInfo))
|
| + if (m_webPlugin->handleInputEvent(webEvent, cursorInfo) != WebInputEventResult::NotHandled)
|
| event->setDefaultHandled();
|
|
|
| // A windowless plugin can change the cursor in response to a mouse move
|
| @@ -836,7 +836,7 @@ void WebPluginContainerImpl::handleWheelEvent(WheelEvent* event)
|
| return;
|
|
|
| WebCursorInfo cursorInfo;
|
| - if (m_webPlugin->handleInputEvent(webEvent, cursorInfo))
|
| + if (m_webPlugin->handleInputEvent(webEvent, cursorInfo) != WebInputEventResult::NotHandled)
|
| event->setDefaultHandled();
|
| }
|
|
|
| @@ -879,7 +879,7 @@ void WebPluginContainerImpl::handleKeyboardEvent(KeyboardEvent* event)
|
| view->client()->handleCurrentKeyboardEvent();
|
|
|
| WebCursorInfo cursorInfo;
|
| - if (m_webPlugin->handleInputEvent(webEvent, cursorInfo))
|
| + if (m_webPlugin->handleInputEvent(webEvent, cursorInfo) != WebInputEventResult::NotHandled)
|
| event->setDefaultHandled();
|
| }
|
|
|
| @@ -897,7 +897,7 @@ void WebPluginContainerImpl::handleTouchEvent(TouchEvent* event)
|
| focusPlugin();
|
|
|
| WebCursorInfo cursorInfo;
|
| - if (m_webPlugin->handleInputEvent(webEvent, cursorInfo))
|
| + if (m_webPlugin->handleInputEvent(webEvent, cursorInfo) != WebInputEventResult::NotHandled)
|
| event->setDefaultHandled();
|
| // FIXME: Can a plugin change the cursor from a touch-event callback?
|
| return;
|
| @@ -916,7 +916,7 @@ void WebPluginContainerImpl::handleGestureEvent(GestureEvent* event)
|
| if (event->type() == EventTypeNames::gesturetapdown)
|
| focusPlugin();
|
| WebCursorInfo cursorInfo;
|
| - if (m_webPlugin->handleInputEvent(webEvent, cursorInfo)) {
|
| + if (m_webPlugin->handleInputEvent(webEvent, cursorInfo) != WebInputEventResult::NotHandled) {
|
| event->setDefaultHandled();
|
| return;
|
| }
|
| @@ -931,7 +931,7 @@ void WebPluginContainerImpl::synthesizeMouseEventIfPossible(TouchEvent* event)
|
| return;
|
|
|
| WebCursorInfo cursorInfo;
|
| - if (m_webPlugin->handleInputEvent(webEvent, cursorInfo))
|
| + if (m_webPlugin->handleInputEvent(webEvent, cursorInfo) != WebInputEventResult::NotHandled)
|
| event->setDefaultHandled();
|
| }
|
|
|
|
|