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

Unified Diff: remoting/host/remote_input_filter.cc

Issue 1547473005: Switch to standard integer types in remoting/host/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/host/remote_input_filter.h ('k') | remoting/host/remote_input_filter_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/remote_input_filter.cc
diff --git a/remoting/host/remote_input_filter.cc b/remoting/host/remote_input_filter.cc
index 3201431f49423f0e9146ac59b77efd8b423693a9..8897608569623c365ea2fa1b13016a964dc52f43 100644
--- a/remoting/host/remote_input_filter.cc
+++ b/remoting/host/remote_input_filter.cc
@@ -4,6 +4,8 @@
#include "remoting/host/remote_input_filter.h"
+#include <stdint.h>
+
#include "base/logging.h"
#include "remoting/proto/event.pb.h"
@@ -17,7 +19,7 @@ const unsigned int kNumRemoteMousePositions = 50;
// The number of milliseconds for which to block remote input when local input
// is received.
-const int64 kRemoteBlockTimeoutMillis = 2000;
+const int64_t kRemoteBlockTimeoutMillis = 2000;
} // namespace
@@ -103,7 +105,7 @@ void RemoteInputFilter::InjectTouchEvent(const protocol::TouchEvent& event) {
bool RemoteInputFilter::ShouldIgnoreInput() const {
// Ignore remote events if the local mouse moved recently.
- int64 millis =
+ int64_t millis =
(base::TimeTicks::Now() - latest_local_input_time_).InMilliseconds();
if (millis < kRemoteBlockTimeoutMillis)
return true;
« no previous file with comments | « remoting/host/remote_input_filter.h ('k') | remoting/host/remote_input_filter_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698