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 "ui/events/blink/web_input_event_traits.h" | 5 #include "ui/events/blink/web_input_event_traits.h" |
6 | 6 |
7 #include "testing/gtest/include/gtest/gtest.h" | 7 #include "testing/gtest/include/gtest/gtest.h" |
| 8 #include "third_party/WebKit/public/platform/WebGestureEvent.h" |
8 #include "third_party/WebKit/public/platform/WebInputEvent.h" | 9 #include "third_party/WebKit/public/platform/WebInputEvent.h" |
| 10 #include "third_party/WebKit/public/platform/WebMouseWheelEvent.h" |
9 | 11 |
10 using blink::WebGestureEvent; | 12 using blink::WebGestureEvent; |
11 using blink::WebInputEvent; | 13 using blink::WebInputEvent; |
12 using blink::WebKeyboardEvent; | 14 using blink::WebKeyboardEvent; |
13 using blink::WebMouseEvent; | 15 using blink::WebMouseEvent; |
14 using blink::WebMouseWheelEvent; | 16 using blink::WebMouseWheelEvent; |
15 using blink::WebTouchEvent; | 17 using blink::WebTouchEvent; |
16 | 18 |
17 namespace ui { | 19 namespace ui { |
18 namespace { | 20 namespace { |
(...skipping 21 matching lines...) Expand all Loading... |
40 EXPECT_FALSE(WebInputEventTraits::ToString(gesture).empty()); | 42 EXPECT_FALSE(WebInputEventTraits::ToString(gesture).empty()); |
41 | 43 |
42 WebTouchEvent touch; | 44 WebTouchEvent touch; |
43 touch.type = WebInputEvent::TouchStart; | 45 touch.type = WebInputEvent::TouchStart; |
44 touch.touchesLength = 1; | 46 touch.touchesLength = 1; |
45 EXPECT_FALSE(WebInputEventTraits::ToString(touch).empty()); | 47 EXPECT_FALSE(WebInputEventTraits::ToString(touch).empty()); |
46 } | 48 } |
47 | 49 |
48 } // namespace | 50 } // namespace |
49 } // namespace ui | 51 } // namespace ui |
OLD | NEW |