| 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/WebGestureEvent.h" |
| 9 #include "third_party/WebKit/public/platform/WebInputEvent.h" | 9 #include "third_party/WebKit/public/platform/WebInputEvent.h" |
| 10 #include "third_party/WebKit/public/platform/WebKeyboardEvent.h" |
| 10 #include "third_party/WebKit/public/platform/WebMouseWheelEvent.h" | 11 #include "third_party/WebKit/public/platform/WebMouseWheelEvent.h" |
| 12 #include "third_party/WebKit/public/platform/WebTouchEvent.h" |
| 11 | 13 |
| 12 using blink::WebGestureEvent; | 14 using blink::WebGestureEvent; |
| 13 using blink::WebInputEvent; | 15 using blink::WebInputEvent; |
| 14 using blink::WebKeyboardEvent; | 16 using blink::WebKeyboardEvent; |
| 15 using blink::WebMouseEvent; | 17 using blink::WebMouseEvent; |
| 16 using blink::WebMouseWheelEvent; | 18 using blink::WebMouseWheelEvent; |
| 17 using blink::WebTouchEvent; | 19 using blink::WebTouchEvent; |
| 18 | 20 |
| 19 namespace ui { | 21 namespace ui { |
| 20 namespace { | 22 namespace { |
| (...skipping 23 matching lines...) Expand all Loading... |
| 44 EXPECT_FALSE(WebInputEventTraits::ToString(gesture).empty()); | 46 EXPECT_FALSE(WebInputEventTraits::ToString(gesture).empty()); |
| 45 | 47 |
| 46 WebTouchEvent touch(WebInputEvent::TouchStart, WebInputEvent::NoModifiers, | 48 WebTouchEvent touch(WebInputEvent::TouchStart, WebInputEvent::NoModifiers, |
| 47 WebInputEvent::TimeStampForTesting); | 49 WebInputEvent::TimeStampForTesting); |
| 48 touch.touchesLength = 1; | 50 touch.touchesLength = 1; |
| 49 EXPECT_FALSE(WebInputEventTraits::ToString(touch).empty()); | 51 EXPECT_FALSE(WebInputEventTraits::ToString(touch).empty()); |
| 50 } | 52 } |
| 51 | 53 |
| 52 } // namespace | 54 } // namespace |
| 53 } // namespace ui | 55 } // namespace ui |
| OLD | NEW |