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

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

Issue 2569273002: Add constructors to WebInputEvents and setters so we can work at cleaning up these public structs. (Closed)
Patch Set: Fix mouse up event sender not modifying modifiers 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 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 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 bool& moved_beyond_slop_region, 180 bool& moved_beyond_slop_region,
181 uint32_t& unique_touch_event_id); 181 uint32_t& unique_touch_event_id);
182 uint32_t GetUniqueTouchEventId(gin::Arguments* args); 182 uint32_t GetUniqueTouchEventId(gin::Arguments* args);
183 void SendCurrentTouchEvent(blink::WebInputEvent::Type, gin::Arguments* args); 183 void SendCurrentTouchEvent(blink::WebInputEvent::Type, gin::Arguments* args);
184 184
185 void GestureEvent(blink::WebInputEvent::Type, 185 void GestureEvent(blink::WebInputEvent::Type,
186 gin::Arguments*); 186 gin::Arguments*);
187 187
188 void UpdateClickCountForButton(blink::WebMouseEvent::Button); 188 void UpdateClickCountForButton(blink::WebMouseEvent::Button);
189 189
190 void InitMouseWheelEvent(gin::Arguments* args, 190 blink::WebMouseWheelEvent GetMouseWheelEvent(gin::Arguments* args,
191 MouseScrollType scroll_type, 191 MouseScrollType scroll_type,
192 blink::WebMouseWheelEvent* event, 192 bool* send_gestures);
193 bool* send_gestures);
194 void InitPointerProperties(gin::Arguments* args, 193 void InitPointerProperties(gin::Arguments* args,
195 blink::WebPointerProperties* e, 194 blink::WebPointerProperties* e,
196 float* radius_x, 195 float* radius_x,
197 float* radius_y); 196 float* radius_y);
198 197
199 void FinishDragAndDrop(const blink::WebMouseEvent&, blink::WebDragOperation); 198 void FinishDragAndDrop(const blink::WebMouseEvent&, blink::WebDragOperation);
200 199
200 int ModifiersForPointer(int pointer_id);
201 void DoDragAfterMouseUp(const blink::WebMouseEvent&); 201 void DoDragAfterMouseUp(const blink::WebMouseEvent&);
202 void DoDragAfterMouseMove(const blink::WebMouseEvent&); 202 void DoDragAfterMouseMove(const blink::WebMouseEvent&);
203 void ReplaySavedEvents(); 203 void ReplaySavedEvents();
204 blink::WebInputEventResult HandleInputEventOnViewOrPopup( 204 blink::WebInputEventResult HandleInputEventOnViewOrPopup(
205 const blink::WebInputEvent& event); 205 const blink::WebInputEvent& event);
206 206
207 void SendGesturesForMouseWheelEvent( 207 void SendGesturesForMouseWheelEvent(
208 const blink::WebMouseWheelEvent wheel_event); 208 const blink::WebMouseWheelEvent wheel_event);
209 209
210 std::unique_ptr<blink::WebInputEvent> TransformScreenToWidgetCoordinates( 210 std::unique_ptr<blink::WebInputEvent> TransformScreenToWidgetCoordinates(
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
330 double last_event_timestamp_; 330 double last_event_timestamp_;
331 331
332 base::WeakPtrFactory<EventSender> weak_factory_; 332 base::WeakPtrFactory<EventSender> weak_factory_;
333 333
334 DISALLOW_COPY_AND_ASSIGN(EventSender); 334 DISALLOW_COPY_AND_ASSIGN(EventSender);
335 }; 335 };
336 336
337 } // namespace test_runner 337 } // namespace test_runner
338 338
339 #endif // COMPONENTS_TEST_RUNNER_EVENT_SENDER_H_ 339 #endif // COMPONENTS_TEST_RUNNER_EVENT_SENDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698