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

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: Addressing vabr@'s comments 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 720 matching lines...) Expand 10 before | Expand all | Expand 10 after
731 event_result = WebInputEventResult::kHandledSystem; 731 event_result = WebInputEventResult::kHandledSystem;
732 else 732 else
733 event_result = mouse_event_manager_->HandleMousePressEvent(mev); 733 event_result = mouse_event_manager_->HandleMousePressEvent(mev);
734 } 734 }
735 735
736 if (mev.GetHitTestResult().InnerNode() && 736 if (mev.GetHitTestResult().InnerNode() &&
737 mouse_event.button == WebPointerProperties::Button::kLeft) { 737 mouse_event.button == WebPointerProperties::Button::kLeft) {
738 DCHECK_EQ(WebInputEvent::kMouseDown, mouse_event.GetType()); 738 DCHECK_EQ(WebInputEvent::kMouseDown, mouse_event.GetType());
739 HitTestResult result = mev.GetHitTestResult(); 739 HitTestResult result = mev.GetHitTestResult();
740 result.SetToShadowHostIfInRestrictedShadowRoot(); 740 result.SetToShadowHostIfInRestrictedShadowRoot();
741 frame_->GetChromeClient().OnMouseDown(result.InnerNode()); 741 frame_->GetChromeClient().OnMouseDown(*result.InnerNode());
742 } 742 }
743 743
744 return event_result; 744 return event_result;
745 } 745 }
746 746
747 WebInputEventResult EventHandler::HandleMouseMoveEvent( 747 WebInputEventResult EventHandler::HandleMouseMoveEvent(
748 const WebMouseEvent& event, 748 const WebMouseEvent& event,
749 const Vector<WebMouseEvent>& coalesced_events) { 749 const Vector<WebMouseEvent>& coalesced_events) {
750 TRACE_EVENT0("blink", "EventHandler::handleMouseMoveEvent"); 750 TRACE_EVENT0("blink", "EventHandler::handleMouseMoveEvent");
751 751
(...skipping 1361 matching lines...) Expand 10 before | Expand all | Expand 10 after
2113 MouseEventWithHitTestResults& mev, 2113 MouseEventWithHitTestResults& mev,
2114 LocalFrame* subframe) { 2114 LocalFrame* subframe) {
2115 WebInputEventResult result = 2115 WebInputEventResult result =
2116 subframe->GetEventHandler().HandleMouseReleaseEvent(mev.Event()); 2116 subframe->GetEventHandler().HandleMouseReleaseEvent(mev.Event());
2117 if (result != WebInputEventResult::kNotHandled) 2117 if (result != WebInputEventResult::kNotHandled)
2118 return result; 2118 return result;
2119 return WebInputEventResult::kHandledSystem; 2119 return WebInputEventResult::kHandledSystem;
2120 } 2120 }
2121 2121
2122 } // namespace blink 2122 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698