| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/events/PointerEventFactory.h" | 5 #include "core/events/PointerEventFactory.h" |
| 6 | 6 |
| 7 #include <gtest/gtest.h> |
| 8 #include <climits> |
| 7 #include "core/frame/FrameView.h" | 9 #include "core/frame/FrameView.h" |
| 8 #include "core/page/Page.h" | 10 #include "core/page/Page.h" |
| 9 #include "public/platform/WebPointerProperties.h" | 11 #include "public/platform/WebPointerProperties.h" |
| 10 #include <climits> | |
| 11 #include <gtest/gtest.h> | |
| 12 | 12 |
| 13 namespace blink { | 13 namespace blink { |
| 14 | 14 |
| 15 namespace { | 15 namespace { |
| 16 | 16 |
| 17 const char* pointerTypeNameForWebPointPointerType( | 17 const char* pointerTypeNameForWebPointPointerType( |
| 18 WebPointerProperties::PointerType type) { | 18 WebPointerProperties::PointerType type) { |
| 19 switch (type) { | 19 switch (type) { |
| 20 case WebPointerProperties::PointerType::Unknown: | 20 case WebPointerProperties::PointerType::Unknown: |
| 21 return ""; | 21 return ""; |
| (...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 445 | 445 |
| 446 TEST_F(PointerEventFactoryTest, CoalescedEvents) { | 446 TEST_F(PointerEventFactoryTest, CoalescedEvents) { |
| 447 createAndCheckMouseEvent(WebPointerProperties::PointerType::Mouse, 0, | 447 createAndCheckMouseEvent(WebPointerProperties::PointerType::Mouse, 0, |
| 448 m_expectedMouseId, true, WebInputEvent::NoModifiers, | 448 m_expectedMouseId, true, WebInputEvent::NoModifiers, |
| 449 4); | 449 4); |
| 450 createAndCheckTouchEvent(WebPointerProperties::PointerType::Touch, 0, | 450 createAndCheckTouchEvent(WebPointerProperties::PointerType::Touch, 0, |
| 451 m_mappedIdStart, true, WebTouchPoint::StateMoved, 3); | 451 m_mappedIdStart, true, WebTouchPoint::StateMoved, 3); |
| 452 } | 452 } |
| 453 | 453 |
| 454 } // namespace blink | 454 } // namespace blink |
| OLD | NEW |