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

Side by Side Diff: content/browser/renderer_host/input/touch_emulator.h

Issue 250923005: Touch emulator: overwrite timestamps from mouse event with current time. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed jdduke's comment Created 6 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | content/browser/renderer_host/input/touch_emulator.cc » ('j') | 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 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_TOUCH_EMULATOR_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_TOUCH_EMULATOR_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_TOUCH_EMULATOR_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_TOUCH_EMULATOR_H_
7 7
8 #include "content/browser/renderer_host/input/touch_emulator_client.h" 8 #include "content/browser/renderer_host/input/touch_emulator_client.h"
9 #include "content/common/cursors/webcursor.h" 9 #include "content/common/cursors/webcursor.h"
10 #include "content/port/common/input_event_ack_state.h" 10 #include "content/port/common/input_event_ack_state.h"
(...skipping 30 matching lines...) Expand all
41 41
42 void InitCursorFromResource(WebCursor* cursor, float scale, int resource_id); 42 void InitCursorFromResource(WebCursor* cursor, float scale, int resource_id);
43 void ResetState(); 43 void ResetState();
44 void UpdateCursor(); 44 void UpdateCursor();
45 bool UpdateShiftPressed(bool shift_pressed); 45 bool UpdateShiftPressed(bool shift_pressed);
46 46
47 // Whether we should convert scrolls into pinches. 47 // Whether we should convert scrolls into pinches.
48 bool InPinchGestureMode() const; 48 bool InPinchGestureMode() const;
49 49
50 bool FillTouchEventAndPoint(const blink::WebMouseEvent& mouse_event); 50 bool FillTouchEventAndPoint(const blink::WebMouseEvent& mouse_event);
51 void FillPinchEvent(const blink::WebInputEvent& event); 51 void FillPinchEvent(const blink::WebGestureEvent& event);
52 52
53 // The following methods generate and pass gesture events to the renderer. 53 // The following methods generate and pass gesture events to the renderer.
54 void PinchBegin(const blink::WebGestureEvent& event); 54 void PinchBegin(const blink::WebGestureEvent& event);
55 void PinchUpdate(const blink::WebGestureEvent& event); 55 void PinchUpdate(const blink::WebGestureEvent& event);
56 void PinchEnd(const blink::WebGestureEvent& event); 56 void PinchEnd(const blink::WebGestureEvent& event);
57 void ScrollEnd(const blink::WebGestureEvent& event); 57 void ScrollEnd(const blink::WebGestureEvent& event);
58 58
59 TouchEmulatorClient* const client_; 59 TouchEmulatorClient* const client_;
60 ui::FilteredGestureProvider gesture_provider_; 60 ui::FilteredGestureProvider gesture_provider_;
61 61
(...skipping 29 matching lines...) Expand all
91 // The cumulative scale change from the start of pinch gesture. 91 // The cumulative scale change from the start of pinch gesture.
92 float pinch_scale_; 92 float pinch_scale_;
93 bool pinch_gesture_active_; 93 bool pinch_gesture_active_;
94 94
95 DISALLOW_COPY_AND_ASSIGN(TouchEmulator); 95 DISALLOW_COPY_AND_ASSIGN(TouchEmulator);
96 }; 96 };
97 97
98 } // namespace content 98 } // namespace content
99 99
100 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_TOUCH_EMULATOR_H_ 100 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_TOUCH_EMULATOR_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/renderer_host/input/touch_emulator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698