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

Unified Diff: remoting/protocol/client_event_dispatcher.cc

Issue 836183002: Rename sequence_number to timestamp. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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 | « remoting/proto/video.proto ('k') | remoting/protocol/connection_to_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/client_event_dispatcher.cc
diff --git a/remoting/protocol/client_event_dispatcher.cc b/remoting/protocol/client_event_dispatcher.cc
index 18e2d2d0bf6ed9fd1c4989af073ef1b260921398..983cba6347b923c8e92c19e206852bc88728e6fd 100644
--- a/remoting/protocol/client_event_dispatcher.cc
+++ b/remoting/protocol/client_event_dispatcher.cc
@@ -33,7 +33,7 @@ void ClientEventDispatcher::InjectKeyEvent(const KeyEvent& event) {
DCHECK(event.has_usb_keycode());
DCHECK(event.has_pressed());
EventMessage message;
- message.set_sequence_number(base::Time::Now().ToInternalValue());
+ message.set_timestamp(base::Time::Now().ToInternalValue());
message.mutable_key_event()->CopyFrom(event);
writer_.Write(SerializeAndFrameMessage(message), base::Closure());
}
@@ -41,14 +41,14 @@ void ClientEventDispatcher::InjectKeyEvent(const KeyEvent& event) {
void ClientEventDispatcher::InjectTextEvent(const TextEvent& event) {
DCHECK(event.has_text());
EventMessage message;
- message.set_sequence_number(base::Time::Now().ToInternalValue());
+ message.set_timestamp(base::Time::Now().ToInternalValue());
message.mutable_text_event()->CopyFrom(event);
writer_.Write(SerializeAndFrameMessage(message), base::Closure());
}
void ClientEventDispatcher::InjectMouseEvent(const MouseEvent& event) {
EventMessage message;
- message.set_sequence_number(base::Time::Now().ToInternalValue());
+ message.set_timestamp(base::Time::Now().ToInternalValue());
message.mutable_mouse_event()->CopyFrom(event);
writer_.Write(SerializeAndFrameMessage(message), base::Closure());
}
« no previous file with comments | « remoting/proto/video.proto ('k') | remoting/protocol/connection_to_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698