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

Side by Side Diff: components/test_runner/event_sender.h

Issue 2093343002: Scale the emulated event in EventSender when use-zoom-for-dsf is enabled (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 | « components/test_runner/BUILD.gn ('k') | components/test_runner/event_sender.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 COMPONENTS_TEST_RUNNER_EVENT_SENDER_H_ 5 #ifndef COMPONENTS_TEST_RUNNER_EVENT_SENDER_H_
6 #define COMPONENTS_TEST_RUNNER_EVENT_SENDER_H_ 6 #define COMPONENTS_TEST_RUNNER_EVENT_SENDER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 198
199 void DoDragAfterMouseUp(const blink::WebMouseEvent&); 199 void DoDragAfterMouseUp(const blink::WebMouseEvent&);
200 void DoDragAfterMouseMove(const blink::WebMouseEvent&); 200 void DoDragAfterMouseMove(const blink::WebMouseEvent&);
201 void ReplaySavedEvents(); 201 void ReplaySavedEvents();
202 blink::WebInputEventResult HandleInputEventOnViewOrPopup( 202 blink::WebInputEventResult HandleInputEventOnViewOrPopup(
203 const blink::WebInputEvent&); 203 const blink::WebInputEvent&);
204 204
205 void SendGesturesForMouseWheelEvent( 205 void SendGesturesForMouseWheelEvent(
206 const blink::WebMouseWheelEvent wheel_event); 206 const blink::WebMouseWheelEvent wheel_event);
207 207
208 std::unique_ptr<blink::WebInputEvent> ScaleEvent(
tkent 2016/06/27 00:54:55 We should have a comment that this returns null un
oshima 2016/06/27 02:29:36 Done.
209 const blink::WebInputEvent& event);
210
208 double last_event_timestamp() { return last_event_timestamp_; } 211 double last_event_timestamp() { return last_event_timestamp_; }
209 212
210 bool force_layout_on_events() const { return force_layout_on_events_; } 213 bool force_layout_on_events() const { return force_layout_on_events_; }
211 void set_force_layout_on_events(bool force) { 214 void set_force_layout_on_events(bool force) {
212 force_layout_on_events_ = force; 215 force_layout_on_events_ = force;
213 } 216 }
214 217
215 bool is_drag_mode() const { return is_drag_mode_; } 218 bool is_drag_mode() const { return is_drag_mode_; }
216 void set_is_drag_mode(bool drag_mode) { is_drag_mode_ = drag_mode; } 219 void set_is_drag_mode(bool drag_mode) { is_drag_mode_ = drag_mode; }
217 220
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 double last_event_timestamp_; 326 double last_event_timestamp_;
324 327
325 base::WeakPtrFactory<EventSender> weak_factory_; 328 base::WeakPtrFactory<EventSender> weak_factory_;
326 329
327 DISALLOW_COPY_AND_ASSIGN(EventSender); 330 DISALLOW_COPY_AND_ASSIGN(EventSender);
328 }; 331 };
329 332
330 } // namespace test_runner 333 } // namespace test_runner
331 334
332 #endif // COMPONENTS_TEST_RUNNER_EVENT_SENDER_H_ 335 #endif // COMPONENTS_TEST_RUNNER_EVENT_SENDER_H_
OLDNEW
« no previous file with comments | « components/test_runner/BUILD.gn ('k') | components/test_runner/event_sender.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698