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

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

Issue 2581943003: Move WebMouseWheelEvent into its own header file. (Closed)
Patch Set: Fix mac unittest Created 4 years 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 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 <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "content/browser/renderer_host/input/touch_emulator_client.h" 11 #include "content/browser/renderer_host/input/touch_emulator_client.h"
12 #include "content/common/cursors/webcursor.h" 12 #include "content/common/cursors/webcursor.h"
13 #include "content/common/input/input_event_ack_state.h" 13 #include "content/common/input/input_event_ack_state.h"
14 #include "third_party/WebKit/public/platform/WebInputEvent.h" 14 #include "third_party/WebKit/public/platform/WebInputEvent.h"
15 #include "ui/events/gesture_detection/filtered_gesture_provider.h" 15 #include "ui/events/gesture_detection/filtered_gesture_provider.h"
16 #include "ui/events/gesture_detection/gesture_provider_config_helper.h" 16 #include "ui/events/gesture_detection/gesture_provider_config_helper.h"
17 #include "ui/gfx/geometry/size_f.h" 17 #include "ui/gfx/geometry/size_f.h"
18 18
19 namespace blink {
20 class WebMouseWheelEvent;
21 }
22
19 namespace content { 23 namespace content {
20 24
21 // Emulates touch input with mouse and keyboard. 25 // Emulates touch input with mouse and keyboard.
22 class CONTENT_EXPORT TouchEmulator : public ui::GestureProviderClient { 26 class CONTENT_EXPORT TouchEmulator : public ui::GestureProviderClient {
23 public: 27 public:
24 TouchEmulator(TouchEmulatorClient* client, float device_scale_factor); 28 TouchEmulator(TouchEmulatorClient* client, float device_scale_factor);
25 ~TouchEmulator() override; 29 ~TouchEmulator() override;
26 30
27 void Enable(ui::GestureProviderConfigType config_type); 31 void Enable(ui::GestureProviderConfigType config_type);
28 void Disable(); 32 void Disable();
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 // The cumulative scale change from the start of pinch gesture. 124 // The cumulative scale change from the start of pinch gesture.
121 float pinch_scale_; 125 float pinch_scale_;
122 bool pinch_gesture_active_; 126 bool pinch_gesture_active_;
123 127
124 DISALLOW_COPY_AND_ASSIGN(TouchEmulator); 128 DISALLOW_COPY_AND_ASSIGN(TouchEmulator);
125 }; 129 };
126 130
127 } // namespace content 131 } // namespace content
128 132
129 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_TOUCH_EMULATOR_H_ 133 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_TOUCH_EMULATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698