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

Side by Side Diff: third_party/WebKit/Source/core/input/GestureManager.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 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "core/input/GestureManager.h" 5 #include "core/input/GestureManager.h"
6 6
7 #include "core/dom/Document.h" 7 #include "core/dom/Document.h"
8 #include "core/dom/DocumentUserGestureToken.h" 8 #include "core/dom/DocumentUserGestureToken.h"
9 #include "core/editing/SelectionController.h" 9 #include "core/editing/SelectionController.h"
10 #include "core/events/GestureEvent.h" 10 #include "core/events/GestureEvent.h"
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 if (mouse_down_event_result == WebInputEventResult::kNotHandled) { 227 if (mouse_down_event_result == WebInputEventResult::kNotHandled) {
228 mouse_down_event_result = mouse_event_manager_->HandleMousePressEvent( 228 mouse_down_event_result = mouse_event_manager_->HandleMousePressEvent(
229 MouseEventWithHitTestResults(fake_mouse_down, current_hit_test)); 229 MouseEventWithHitTestResults(fake_mouse_down, current_hit_test));
230 } 230 }
231 } 231 }
232 232
233 if (current_hit_test.InnerNode()) { 233 if (current_hit_test.InnerNode()) {
234 DCHECK(gesture_event.GetType() == WebInputEvent::kGestureTap); 234 DCHECK(gesture_event.GetType() == WebInputEvent::kGestureTap);
235 HitTestResult result = current_hit_test; 235 HitTestResult result = current_hit_test;
236 result.SetToShadowHostIfInRestrictedShadowRoot(); 236 result.SetToShadowHostIfInRestrictedShadowRoot();
237 frame_->GetChromeClient().OnMouseDown(result.InnerNode()); 237 frame_->GetChromeClient().OnMouseDown(*result.InnerNode());
238 } 238 }
239 239
240 // FIXME: Use a hit-test cache to avoid unnecessary hit tests. 240 // FIXME: Use a hit-test cache to avoid unnecessary hit tests.
241 // http://crbug.com/398920 241 // http://crbug.com/398920
242 if (current_hit_test.InnerNode()) { 242 if (current_hit_test.InnerNode()) {
243 LocalFrame* main_frame = frame_->LocalFrameRoot(); 243 LocalFrame* main_frame = frame_->LocalFrameRoot();
244 if (main_frame && main_frame->View()) 244 if (main_frame && main_frame->View())
245 main_frame->View()->UpdateAllLifecyclePhases(); 245 main_frame->View()->UpdateAllLifecyclePhases();
246 adjusted_point = frame_view->RootFrameToContents(tapped_position); 246 adjusted_point = frame_view->RootFrameToContents(tapped_position);
247 current_hit_test = EventHandlingUtil::HitTestResultInFrame( 247 current_hit_test = EventHandlingUtil::HitTestResultInFrame(
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
432 } 432 }
433 return WebInputEventResult::kNotHandled; 433 return WebInputEventResult::kNotHandled;
434 } 434 }
435 435
436 WTF::Optional<WTF::TimeTicks> GestureManager::GetLastShowPressTimestamp() 436 WTF::Optional<WTF::TimeTicks> GestureManager::GetLastShowPressTimestamp()
437 const { 437 const {
438 return last_show_press_timestamp_; 438 return last_show_press_timestamp_;
439 } 439 }
440 440
441 } // namespace blink 441 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698