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

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

Issue 1936853002: Assert event timestamp to be monotonic and not from future Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Change to histogram Created 4 years, 2 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 | « no previous file | 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 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 void GestureTwoFingerTap(gin::Arguments* args); 163 void GestureTwoFingerTap(gin::Arguments* args);
164 164
165 void MouseScrollBy(gin::Arguments* args, MouseScrollType scroll_type); 165 void MouseScrollBy(gin::Arguments* args, MouseScrollType scroll_type);
166 void MouseMoveTo(gin::Arguments* args); 166 void MouseMoveTo(gin::Arguments* args);
167 void MouseLeave(); 167 void MouseLeave();
168 void ScheduleAsynchronousClick(int button_number, int modifiers); 168 void ScheduleAsynchronousClick(int button_number, int modifiers);
169 void ScheduleAsynchronousKeyDown(const std::string& code_str, 169 void ScheduleAsynchronousKeyDown(const std::string& code_str,
170 int modifiers, 170 int modifiers,
171 KeyLocationCode location); 171 KeyLocationCode location);
172 172
173 double GetCurrentEventTimeSec(); 173 double GetMockTimeSeconds();
174 174
175 void DoLeapForward(int milliseconds); 175 void DoLeapForward(int milliseconds);
176 176
177 void GetOptionalTouchArgs(gin::Arguments* args, 177 void GetOptionalTouchArgs(gin::Arguments* args,
178 bool& moved_beyond_slop_region, 178 bool& moved_beyond_slop_region,
179 uint32_t& unique_touch_event_id); 179 uint32_t& unique_touch_event_id);
180 uint32_t GetUniqueTouchEventId(gin::Arguments* args); 180 uint32_t GetUniqueTouchEventId(gin::Arguments* args);
181 void SendCurrentTouchEvent(blink::WebInputEvent::Type, gin::Arguments* args); 181 void SendCurrentTouchEvent(blink::WebInputEvent::Type, gin::Arguments* args);
182 182
183 void GestureEvent(blink::WebInputEvent::Type, 183 void GestureEvent(blink::WebInputEvent::Type,
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 double last_event_timestamp_; 326 double last_event_timestamp_;
327 327
328 base::WeakPtrFactory<EventSender> weak_factory_; 328 base::WeakPtrFactory<EventSender> weak_factory_;
329 329
330 DISALLOW_COPY_AND_ASSIGN(EventSender); 330 DISALLOW_COPY_AND_ASSIGN(EventSender);
331 }; 331 };
332 332
333 } // namespace test_runner 333 } // namespace test_runner
334 334
335 #endif // COMPONENTS_TEST_RUNNER_EVENT_SENDER_H_ 335 #endif // COMPONENTS_TEST_RUNNER_EVENT_SENDER_H_
OLDNEW
« no previous file with comments | « no previous file | components/test_runner/event_sender.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698