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

Side by Side Diff: content/common/input/synthetic_web_input_event_builders.cc

Issue 1560553002: Framelet Prototype 2016 Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased + Applied Brett's Windows + Fixed security issue Created 4 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "content/common/input/synthetic_web_input_event_builders.h" 5 #include "content/common/input/synthetic_web_input_event_builders.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "content/common/input/web_touch_event_traits.h" 8 #include "content/public/common/input/web_touch_event_traits.h"
9 #include "ui/events/base_event_utils.h" 9 #include "ui/events/base_event_utils.h"
10 #include "ui/events/keycodes/keyboard_codes.h" 10 #include "ui/events/keycodes/keyboard_codes.h"
11 11
12 namespace content { 12 namespace content {
13 13
14 using blink::WebInputEvent; 14 using blink::WebInputEvent;
15 using blink::WebKeyboardEvent; 15 using blink::WebKeyboardEvent;
16 using blink::WebGestureEvent; 16 using blink::WebGestureEvent;
17 using blink::WebMouseEvent; 17 using blink::WebMouseEvent;
18 using blink::WebMouseWheelEvent; 18 using blink::WebMouseWheelEvent;
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 touches[index].state = WebTouchPoint::StateCancelled; 221 touches[index].state = WebTouchPoint::StateCancelled;
222 WebTouchEventTraits::ResetType( 222 WebTouchEventTraits::ResetType(
223 WebInputEvent::TouchCancel, timeStampSeconds, this); 223 WebInputEvent::TouchCancel, timeStampSeconds, this);
224 } 224 }
225 225
226 void SyntheticWebTouchEvent::SetTimestamp(base::TimeDelta timestamp) { 226 void SyntheticWebTouchEvent::SetTimestamp(base::TimeDelta timestamp) {
227 timeStampSeconds = timestamp.InSecondsF(); 227 timeStampSeconds = timestamp.InSecondsF();
228 } 228 }
229 229
230 } // namespace content 230 } // namespace content
OLDNEW
« no previous file with comments | « content/common/input/scoped_web_input_event.cc ('k') | content/common/input/touch_event_stream_validator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698