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

Unified Diff: remoting/host/input_injector_x11.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/input_injector_win.cc ('k') | remoting/host/ipc_audio_capturer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/input_injector_x11.cc
diff --git a/remoting/host/input_injector_x11.cc b/remoting/host/input_injector_x11.cc
index 1a93c20e69a384af8353f1d7ee044966284703e5..98ee434fcee4eaaa46c42f6ee0a97645a6999464 100644
--- a/remoting/host/input_injector_x11.cc
+++ b/remoting/host/input_injector_x11.cc
@@ -4,6 +4,8 @@
#include "remoting/host/input_injector.h"
+#include <stddef.h>
+#include <stdint.h>
#include <X11/extensions/XInput.h>
#include <X11/extensions/XTest.h>
#include <X11/Xlib.h>
@@ -12,16 +14,14 @@
#include <set>
-#include "base/basictypes.h"
#include "base/bind.h"
#include "base/compiler_specific.h"
#include "base/location.h"
+#include "base/macros.h"
#include "base/single_thread_task_runner.h"
#include "base/strings/utf_string_conversion_utils.h"
+#include "build/build_config.h"
#include "remoting/base/logging.h"
-#if defined(OS_CHROMEOS)
-#include "remoting/host/chromeos/point_transformer.h"
-#endif
#include "remoting/host/clipboard.h"
#include "remoting/host/linux/unicode_to_keysym.h"
#include "remoting/host/linux/x11_util.h"
@@ -30,6 +30,10 @@
#include "ui/events/keycodes/dom/dom_code.h"
#include "ui/events/keycodes/dom/keycode_converter.h"
+#if defined(OS_CHROMEOS)
+#include "remoting/host/chromeos/point_transformer.h"
+#endif
+
namespace remoting {
namespace {
@@ -352,7 +356,7 @@ void InputInjectorX11::Core::InjectTextEvent(const TextEvent& event) {
pressed_keys_.clear();
const std::string text = event.text();
- for (int32 index = 0; index < static_cast<int32>(text.size()); ++index) {
+ for (int32_t index = 0; index < static_cast<int32_t>(text.size()); ++index) {
uint32_t code_point;
if (!base::ReadUnicodeCharacter(
text.c_str(), text.size(), &index, &code_point)) {
« no previous file with comments | « remoting/host/input_injector_win.cc ('k') | remoting/host/ipc_audio_capturer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698