Chromium Code Reviews| Index: content/renderer/npapi/webplugin_impl.cc |
| diff --git a/content/renderer/npapi/webplugin_impl.cc b/content/renderer/npapi/webplugin_impl.cc |
| index ac739b5bc974523564a2ec6ba1dec844a03e7e65..636974262a8665e3c78b248e80e7eba5b5e543f8 100644 |
| --- a/content/renderer/npapi/webplugin_impl.cc |
| +++ b/content/renderer/npapi/webplugin_impl.cc |
| @@ -72,6 +72,7 @@ using blink::WebFrame; |
| using blink::WebHTTPBody; |
| using blink::WebHTTPHeaderVisitor; |
| using blink::WebInputEvent; |
| +using blink::WebInputEventResult; |
| using blink::WebKeyboardEvent; |
| using blink::WebMouseEvent; |
| using blink::WebPluginContainer; |
| @@ -418,11 +419,12 @@ bool WebPluginImpl::acceptsInputEvents() { |
| return accepts_input_events_; |
| } |
| -bool WebPluginImpl::handleInputEvent( |
| - const WebInputEvent& event, WebCursorInfo& cursor_info) { |
| +WebInputEventResult WebPluginImpl::handleInputEvent( |
| + const WebInputEvent& event, |
| + WebCursorInfo& cursor_info) { |
| // Swallow context menu events in order to suppress the default context menu. |
| if (event.type == WebInputEvent::ContextMenu) |
| - return true; |
| + return WebInputEventResult::HandledSuppressed; |
| WebCursor::CursorInfo web_cursor_info; |
| bool ret = delegate_->HandleInputEvent(event, &web_cursor_info); |
| @@ -433,7 +435,8 @@ bool WebPluginImpl::handleInputEvent( |
| #if defined(OS_WIN) |
| cursor_info.externalHandle = web_cursor_info.external_handle; |
| #endif |
| - return ret; |
| + return ret ? WebInputEventResult::HandledSystem |
|
Rick Byers
2015/11/27 21:31:52
A plugin probably counts as "application", don't y
dtapuska
2015/11/30 16:15:43
Done.
|
| + : WebInputEventResult::NotHandled; |
| } |
| void WebPluginImpl::didReceiveResponse(const WebURLResponse& response) { |