| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "content/browser/renderer_host/input/touch_event_queue.h" | 5 #include "content/browser/renderer_host/input/touch_event_queue.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <utility> | 10 #include <utility> |
| 11 | 11 |
| 12 #include "base/location.h" | 12 #include "base/location.h" |
| 13 #include "base/logging.h" | 13 #include "base/logging.h" |
| 14 #include "base/message_loop/message_loop.h" | 14 #include "base/message_loop/message_loop.h" |
| 15 #include "base/single_thread_task_runner.h" | 15 #include "base/single_thread_task_runner.h" |
| 16 #include "base/thread_task_runner_handle.h" | 16 #include "base/threading/thread_task_runner_handle.h" |
| 17 #include "content/browser/renderer_host/input/timeout_monitor.h" | 17 #include "content/browser/renderer_host/input/timeout_monitor.h" |
| 18 #include "content/common/input/synthetic_web_input_event_builders.h" | 18 #include "content/common/input/synthetic_web_input_event_builders.h" |
| 19 #include "content/common/input/web_touch_event_traits.h" | 19 #include "content/common/input/web_touch_event_traits.h" |
| 20 #include "testing/gtest/include/gtest/gtest.h" | 20 #include "testing/gtest/include/gtest/gtest.h" |
| 21 #include "third_party/WebKit/public/web/WebInputEvent.h" | 21 #include "third_party/WebKit/public/web/WebInputEvent.h" |
| 22 | 22 |
| 23 using blink::WebGestureEvent; | 23 using blink::WebGestureEvent; |
| 24 using blink::WebInputEvent; | 24 using blink::WebInputEvent; |
| 25 using blink::WebTouchEvent; | 25 using blink::WebTouchEvent; |
| 26 using blink::WebTouchPoint; | 26 using blink::WebTouchPoint; |
| (...skipping 2680 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2707 EXPECT_EQ(0U, queued_event_count()); | 2707 EXPECT_EQ(0U, queued_event_count()); |
| 2708 | 2708 |
| 2709 EXPECT_EQ(WebInputEvent::TouchStart, all_sent_events()[0].type); | 2709 EXPECT_EQ(WebInputEvent::TouchStart, all_sent_events()[0].type); |
| 2710 EXPECT_EQ(WebInputEvent::TouchScrollStarted, all_sent_events()[1].type); | 2710 EXPECT_EQ(WebInputEvent::TouchScrollStarted, all_sent_events()[1].type); |
| 2711 EXPECT_EQ(WebInputEvent::TouchMove, all_sent_events()[2].type); | 2711 EXPECT_EQ(WebInputEvent::TouchMove, all_sent_events()[2].type); |
| 2712 EXPECT_EQ(WebInputEvent::TouchEnd, all_sent_events()[3].type); | 2712 EXPECT_EQ(WebInputEvent::TouchEnd, all_sent_events()[3].type); |
| 2713 EXPECT_EQ(4U, GetAndResetSentEventCount()); | 2713 EXPECT_EQ(4U, GetAndResetSentEventCount()); |
| 2714 } | 2714 } |
| 2715 | 2715 |
| 2716 } // namespace content | 2716 } // namespace content |
| OLD | NEW |