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

Side by Side Diff: ui/events/blink/web_input_event_traits.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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "base/logging.h" 7 #include "base/logging.h"
8 #include "base/strings/stringprintf.h" 8 #include "base/strings/stringprintf.h"
9 #include "third_party/WebKit/public/platform/WebGestureEvent.h" 9 #include "third_party/WebKit/public/platform/WebGestureEvent.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 base::StringAppendF; 14 using base::StringAppendF;
13 using base::SStringPrintf; 15 using base::SStringPrintf;
14 using blink::WebGestureEvent; 16 using blink::WebGestureEvent;
15 using blink::WebInputEvent; 17 using blink::WebInputEvent;
16 using blink::WebKeyboardEvent; 18 using blink::WebKeyboardEvent;
17 using blink::WebMouseEvent; 19 using blink::WebMouseEvent;
18 using blink::WebMouseWheelEvent; 20 using blink::WebMouseWheelEvent;
19 using blink::WebTouchEvent; 21 using blink::WebTouchEvent;
20 using blink::WebTouchPoint; 22 using blink::WebTouchPoint;
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 source_event_type = SourceEventType::WHEEL; 247 source_event_type = SourceEventType::WHEEL;
246 } else if (event.sourceDevice == 248 } else if (event.sourceDevice ==
247 blink::WebGestureDevice::WebGestureDeviceTouchscreen) { 249 blink::WebGestureDevice::WebGestureDeviceTouchscreen) {
248 source_event_type = SourceEventType::TOUCH; 250 source_event_type = SourceEventType::TOUCH;
249 } 251 }
250 LatencyInfo latency_info(source_event_type); 252 LatencyInfo latency_info(source_event_type);
251 return latency_info; 253 return latency_info;
252 } 254 }
253 255
254 } // namespace ui 256 } // namespace ui
OLDNEW
« no previous file with comments | « ui/events/blink/web_input_event_builders_win.h ('k') | ui/events/blink/web_input_event_traits_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698