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

Unified Diff: components/test_runner/event_sender.h

Issue 1352523002: Use high precision timestamp for Event.timestamp (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | components/test_runner/event_sender.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/test_runner/event_sender.h
diff --git a/components/test_runner/event_sender.h b/components/test_runner/event_sender.h
index f882290fcae8931af468f32703445c7a128785ff..6f48eaf29e3492587a392e5c0733635ae1872a85 100644
--- a/components/test_runner/event_sender.h
+++ b/components/test_runner/event_sender.h
@@ -184,6 +184,8 @@ class EventSender : public base::SupportsWeakPtr<EventSender> {
void ReplaySavedEvents();
bool HandleInputEventOnViewOrPopup(const blink::WebInputEvent&);
+ double last_event_timestamp() { return last_event_timestamp_; }
+
bool force_layout_on_events() const { return force_layout_on_events_; }
void set_force_layout_on_events(bool force) {
force_layout_on_events_ = force;
@@ -279,6 +281,8 @@ class EventSender : public base::SupportsWeakPtr<EventSender> {
uint32 time_offset_ms_;
int click_count_;
+ // Timestamp (in seconds) of the last event that was dispatched
+ double last_event_timestamp_;
base::WeakPtrFactory<EventSender> weak_factory_;
« 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