Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(157)

Side by Side Diff: ui/events/blink/web_input_event_traits_unittest.cc

Issue 2639273002: Give WebTouchEvent and WebKeyboardEvent their own headers (Closed)
Patch Set: Rebase Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/events/blink/web_input_event_traits.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « ui/events/blink/web_input_event_traits.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698