| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 <vector> | 5 #include <vector> |
| 6 | 6 |
| 7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
| 10 #include "base/time/time.h" | 10 #include "base/time/time.h" |
| 11 #include "content/browser/renderer_host/input/touch_emulator.h" | 11 #include "content/browser/renderer_host/input/touch_emulator.h" |
| 12 #include "content/browser/renderer_host/input/touch_emulator_client.h" | 12 #include "content/browser/renderer_host/input/touch_emulator_client.h" |
| 13 #include "content/common/input/web_input_event_traits.h" | 13 #include "content/common/input/web_input_event_traits.h" |
| 14 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
| 15 #include "ui/events/gesture_detection/gesture_config_helper.h" | |
| 16 | 15 |
| 17 #if defined(USE_AURA) | 16 #if defined(USE_AURA) |
| 18 #include "ui/aura/env.h" | 17 #include "ui/aura/env.h" |
| 19 #include "ui/aura/test/test_screen.h" | 18 #include "ui/aura/test/test_screen.h" |
| 20 #endif | 19 #endif |
| 21 | 20 |
| 22 using blink::WebGestureEvent; | 21 using blink::WebGestureEvent; |
| 23 using blink::WebInputEvent; | 22 using blink::WebInputEvent; |
| 24 using blink::WebKeyboardEvent; | 23 using blink::WebKeyboardEvent; |
| 25 using blink::WebMouseEvent; | 24 using blink::WebMouseEvent; |
| (...skipping 490 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 516 MouseDown(100, 200); | 515 MouseDown(100, 200); |
| 517 EXPECT_EQ("TouchStart GestureTapDown", ExpectedEvents()); | 516 EXPECT_EQ("TouchStart GestureTapDown", ExpectedEvents()); |
| 518 MouseUp(200, 200); | 517 MouseUp(200, 200); |
| 519 EXPECT_EQ( | 518 EXPECT_EQ( |
| 520 "TouchMove GestureTapCancel GestureScrollBegin GestureScrollUpdate" | 519 "TouchMove GestureTapCancel GestureScrollBegin GestureScrollUpdate" |
| 521 " TouchEnd GestureScrollEnd", | 520 " TouchEnd GestureScrollEnd", |
| 522 ExpectedEvents()); | 521 ExpectedEvents()); |
| 523 } | 522 } |
| 524 | 523 |
| 525 } // namespace content | 524 } // namespace content |
| OLD | NEW |