Chromium Code Reviews| Index: third_party/WebKit/Source/core/input/PointerEventManager.cpp |
| diff --git a/third_party/WebKit/Source/core/input/PointerEventManager.cpp b/third_party/WebKit/Source/core/input/PointerEventManager.cpp |
| index 21ce995d0f67a222d0160e4a6e62a6fa861c49a5..5142eceb2e4f30b65595de606e8f208e49115ce9 100644 |
| --- a/third_party/WebKit/Source/core/input/PointerEventManager.cpp |
| +++ b/third_party/WebKit/Source/core/input/PointerEventManager.cpp |
| @@ -168,6 +168,12 @@ WebInputEventResult PointerEventManager::dispatchPointerEvent( |
| UseCounter::count(m_frame->document(), |
| UseCounter::PointerEventDispatchPointerDown); |
| + std::unique_ptr<UserGestureIndicator> gestureIndicator; |
| + if (eventType == EventTypeNames::pointerup) { |
| + gestureIndicator = |
| + wrapUnique(new UserGestureIndicator(DefinitelyProcessingUserGesture)); |
|
mustaq
2016/10/07 19:06:21
Can't we make this a one-liner like this?
if(poi
Navid Zolghadr
2016/10/11 13:19:26
That wouldn't work. Because the variable will go o
Rick Byers
2016/10/11 15:11:52
Note that you can also avoid indirection via a uni
Navid Zolghadr
2016/10/12 15:18:01
Since the other change landed before this if I add
|
| + } |
| + |
| DispatchEventResult dispatchResult = target->dispatchEvent(pointerEvent); |
| return EventHandlingUtil::toWebInputEventResult(dispatchResult); |
| } |