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

Unified Diff: components/arc/input/arc_input_bridge_impl.h

Issue 1523643002: arc-bridge: Move most methods to Mojo interfaces (Closed) Base URL: https://chromium.googlesource.com/a/chromium/src.git@master
Patch Set: Rebased to ToT 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 | « components/arc/common/settings.mojom ('k') | components/arc/input/arc_input_bridge_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/arc/input/arc_input_bridge_impl.h
diff --git a/components/arc/input/arc_input_bridge_impl.h b/components/arc/input/arc_input_bridge_impl.h
index d71fbde0c92ec76442669746bd2b40e24effe1e6..0d6acb5edfa4cec5eb4321d2f77985c34386e381 100644
--- a/components/arc/input/arc_input_bridge_impl.h
+++ b/components/arc/input/arc_input_bridge_impl.h
@@ -2,8 +2,12 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef COMPONENTS_EXO_ARC_INPUT_ARC_INPUT_BRIDGE_IMPL_H_
-#define COMPONENTS_EXO_ARC_INPUT_ARC_INPUT_BRIDGE_IMPL_H_
+#ifndef COMPONENTS_ARC_INPUT_ARC_INPUT_BRIDGE_IMPL_H_
+#define COMPONENTS_ARC_INPUT_ARC_INPUT_BRIDGE_IMPL_H_
+
+#include <stdint.h>
+#include <string>
+#include <vector>
#include "base/files/scoped_file.h"
#include "base/macros.h"
@@ -45,7 +49,7 @@ class ArcInputBridgeImpl : public ArcInputBridge,
void OnWindowInitialized(aura::Window* new_window) override;
// Overridden from ArcBridgeService::Observer:
- void OnInstanceBootPhase(InstanceBootPhase phase) override;
+ void OnInputInstanceReady() override;
private:
// Specialized method to translate and send events to the right file
@@ -66,8 +70,8 @@ class ArcInputBridgeImpl : public ArcInputBridge,
// as in 0 (released), 1 (pressed) or 2 (repeated press).
void SendKernelEvent(const base::ScopedFD& fd,
base::TimeDelta timestamp,
- unsigned short type,
- unsigned short code,
+ uint16_t type,
+ uint16_t code,
int value);
// Shorthand for sending EV_SYN/SYN_REPORT
@@ -80,8 +84,7 @@ class ArcInputBridgeImpl : public ArcInputBridge,
int FindTouchSlot(int tracking_id);
// Maps DOM key codes to evdev key codes
- unsigned short DomCodeToEvdevCode(ui::DomCode dom_code);
-
+ uint16_t DomCodeToEvdevCode(ui::DomCode dom_code);
// Setup bridge devices on the instance side. This needs to be called after
// the InstanceBootPhase::SYSTEM_SERVICES_READY has been reached.
@@ -130,4 +133,4 @@ class ArcInputBridgeImpl : public ArcInputBridge,
} // namespace arc
-#endif // COMPONENTS_EXO_ARC_INPUT_ARC_INPUT_BRIDGE_IMPL_H_
+#endif // COMPONENTS_ARC_INPUT_ARC_INPUT_BRIDGE_IMPL_H_
« no previous file with comments | « components/arc/common/settings.mojom ('k') | components/arc/input/arc_input_bridge_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698