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

Side by Side Diff: third_party/WebKit/Source/core/input/EventHandler.cpp

Issue 2766053002: [refactor] Fix autofill features for payments when the form is inside an OOPIF (Closed)
Patch Set: Using Node& instead of Node* Created 3 years, 8 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights
3 * reserved. 3 * reserved.
4 * Copyright (C) 2006 Alexey Proskuryakov (ap@webkit.org) 4 * Copyright (C) 2006 Alexey Proskuryakov (ap@webkit.org)
5 * Copyright (C) 2012 Digia Plc. and/or its subsidiary(-ies) 5 * Copyright (C) 2012 Digia Plc. and/or its subsidiary(-ies)
6 * 6 *
7 * Redistribution and use in source and binary forms, with or without 7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions 8 * modification, are permitted provided that the following conditions
9 * are met: 9 * are met:
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
(...skipping 708 matching lines...) Expand 10 before | Expand all | Expand 10 after
719 eventResult = WebInputEventResult::HandledSystem; 719 eventResult = WebInputEventResult::HandledSystem;
720 else 720 else
721 eventResult = m_mouseEventManager->handleMousePressEvent(mev); 721 eventResult = m_mouseEventManager->handleMousePressEvent(mev);
722 } 722 }
723 723
724 if (mev.hitTestResult().innerNode() && 724 if (mev.hitTestResult().innerNode() &&
725 mouseEvent.button == WebPointerProperties::Button::Left) { 725 mouseEvent.button == WebPointerProperties::Button::Left) {
726 DCHECK_EQ(WebInputEvent::MouseDown, mouseEvent.type()); 726 DCHECK_EQ(WebInputEvent::MouseDown, mouseEvent.type());
727 HitTestResult result = mev.hitTestResult(); 727 HitTestResult result = mev.hitTestResult();
728 result.setToShadowHostIfInRestrictedShadowRoot(); 728 result.setToShadowHostIfInRestrictedShadowRoot();
729 m_frame->chromeClient().onMouseDown(result.innerNode()); 729 m_frame->chromeClient().onMouseDown(*result.innerNode());
730 } 730 }
731 731
732 return eventResult; 732 return eventResult;
733 } 733 }
734 734
735 WebInputEventResult EventHandler::handleMouseMoveEvent( 735 WebInputEventResult EventHandler::handleMouseMoveEvent(
736 const WebMouseEvent& event, 736 const WebMouseEvent& event,
737 const Vector<WebMouseEvent>& coalescedEvents) { 737 const Vector<WebMouseEvent>& coalescedEvents) {
738 TRACE_EVENT0("blink", "EventHandler::handleMouseMoveEvent"); 738 TRACE_EVENT0("blink", "EventHandler::handleMouseMoveEvent");
739 739
(...skipping 1346 matching lines...) Expand 10 before | Expand all | Expand 10 after
2086 MouseEventWithHitTestResults& mev, 2086 MouseEventWithHitTestResults& mev,
2087 LocalFrame* subframe) { 2087 LocalFrame* subframe) {
2088 WebInputEventResult result = 2088 WebInputEventResult result =
2089 subframe->eventHandler().handleMouseReleaseEvent(mev.event()); 2089 subframe->eventHandler().handleMouseReleaseEvent(mev.event());
2090 if (result != WebInputEventResult::NotHandled) 2090 if (result != WebInputEventResult::NotHandled)
2091 return result; 2091 return result;
2092 return WebInputEventResult::HandledSystem; 2092 return WebInputEventResult::HandledSystem;
2093 } 2093 }
2094 2094
2095 } // namespace blink 2095 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698