Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(113)

Unified Diff: third_party/WebKit/Source/web/WebPluginContainerImpl.cpp

Issue 2650403006: Remove PlatformMouseEvent and use WebMouseEvent instead (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 1a49f3e23e7d0bc68a0ba6c872a8afaea169b639..bf3084fd68ec9d8a10fecdcc71dad09338fcf260 100644
--- a/third_party/WebKit/Source/web/WebPluginContainerImpl.cpp
+++ b/third_party/WebKit/Source/web/WebPluginContainerImpl.cpp
@@ -706,16 +706,16 @@ void WebPluginContainerImpl::handleMouseEvent(MouseEvent* event) {
// in the call to HandleEvent. See http://b/issue?id=1362948
FrameView* parentView = toFrameView(parent());
- WebMouseEventBuilder webEvent(this, LayoutItem(m_element->layoutObject()),
- *event);
- if (webEvent.type() == WebInputEvent::Undefined)
+ WebMouseEventBuilder transformedEvent(
+ this, LayoutItem(m_element->layoutObject()), *event);
+ if (transformedEvent.type() == WebInputEvent::Undefined)
return;
if (event->type() == EventTypeNames::mousedown)
focusPlugin();
WebCursorInfo cursorInfo;
- if (m_webPlugin->handleInputEvent(webEvent, cursorInfo) !=
+ if (m_webPlugin->handleInputEvent(transformedEvent, cursorInfo) !=
WebInputEventResult::NotHandled)
event->setDefaultHandled();

Powered by Google App Engine
This is Rietveld 408576698