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

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

Issue 2701993002: DO NOT COMMIT: Results of running new (proposed) clang-format on Blink (Closed)
Patch Set: Created 3 years, 10 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 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 if (!m_suppressMouseEventsFromGestures) { 209 if (!m_suppressMouseEventsFromGestures) {
210 m_mouseEventManager->setClickCount(gestureEvent.tapCount()); 210 m_mouseEventManager->setClickCount(gestureEvent.tapCount());
211 211
212 mouseDownEventResult = 212 mouseDownEventResult =
213 m_mouseEventManager->setMousePositionAndDispatchMouseEvent( 213 m_mouseEventManager->setMousePositionAndDispatchMouseEvent(
214 currentHitTest.innerNode(), currentHitTest.canvasRegionId(), 214 currentHitTest.innerNode(), currentHitTest.canvasRegionId(),
215 EventTypeNames::mousedown, fakeMouseDown); 215 EventTypeNames::mousedown, fakeMouseDown);
216 m_selectionController->initializeSelectionState(); 216 m_selectionController->initializeSelectionState();
217 if (mouseDownEventResult == WebInputEventResult::NotHandled) { 217 if (mouseDownEventResult == WebInputEventResult::NotHandled) {
218 mouseDownEventResult = m_mouseEventManager->handleMouseFocus( 218 mouseDownEventResult = m_mouseEventManager->handleMouseFocus(
219 currentHitTest, m_frame->document() 219 currentHitTest,
220 ->domWindow() 220 m_frame->document()
221 ->getInputDeviceCapabilities() 221 ->domWindow()
222 ->firesTouchEvents(true)); 222 ->getInputDeviceCapabilities()
223 ->firesTouchEvents(true));
223 } 224 }
224 if (mouseDownEventResult == WebInputEventResult::NotHandled) { 225 if (mouseDownEventResult == WebInputEventResult::NotHandled) {
225 mouseDownEventResult = m_mouseEventManager->handleMousePressEvent( 226 mouseDownEventResult = m_mouseEventManager->handleMousePressEvent(
226 MouseEventWithHitTestResults(fakeMouseDown, currentHitTest)); 227 MouseEventWithHitTestResults(fakeMouseDown, currentHitTest));
227 } 228 }
228 } 229 }
229 230
230 if (currentHitTest.innerNode()) { 231 if (currentHitTest.innerNode()) {
231 DCHECK(gestureEvent.type() == WebInputEvent::GestureTap); 232 DCHECK(gestureEvent.type() == WebInputEvent::GestureTap);
232 HitTestResult result = currentHitTest; 233 HitTestResult result = currentHitTest;
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
432 433
433 return &m_frame->page()->frameHost(); 434 return &m_frame->page()->frameHost();
434 } 435 }
435 436
436 WTF::Optional<WTF::TimeTicks> GestureManager::getLastShowPressTimestamp() 437 WTF::Optional<WTF::TimeTicks> GestureManager::getLastShowPressTimestamp()
437 const { 438 const {
438 return m_lastShowPressTimestamp; 439 return m_lastShowPressTimestamp;
439 } 440 }
440 441
441 } // namespace blink 442 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698