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" | 15 #include "ui/events/gesture_detection/gesture_configuration.h" |
16 | 16 |
17 #if defined(USE_AURA) | 17 #if defined(USE_AURA) |
18 #include "ui/aura/env.h" | 18 #include "ui/aura/env.h" |
19 #include "ui/aura/test/test_screen.h" | 19 #include "ui/aura/test/test_screen.h" |
20 #endif | 20 #endif |
21 | 21 |
22 using blink::WebGestureEvent; | 22 using blink::WebGestureEvent; |
23 using blink::WebInputEvent; | 23 using blink::WebInputEvent; |
24 using blink::WebKeyboardEvent; | 24 using blink::WebKeyboardEvent; |
25 using blink::WebMouseEvent; | 25 using blink::WebMouseEvent; |
(...skipping 490 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
516 MouseDown(100, 200); | 516 MouseDown(100, 200); |
517 EXPECT_EQ("TouchStart GestureTapDown", ExpectedEvents()); | 517 EXPECT_EQ("TouchStart GestureTapDown", ExpectedEvents()); |
518 MouseUp(200, 200); | 518 MouseUp(200, 200); |
519 EXPECT_EQ( | 519 EXPECT_EQ( |
520 "TouchMove GestureTapCancel GestureScrollBegin GestureScrollUpdate" | 520 "TouchMove GestureTapCancel GestureScrollBegin GestureScrollUpdate" |
521 " TouchEnd GestureScrollEnd", | 521 " TouchEnd GestureScrollEnd", |
522 ExpectedEvents()); | 522 ExpectedEvents()); |
523 } | 523 } |
524 | 524 |
525 } // namespace content | 525 } // namespace content |
OLD | NEW |