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

Unified Diff: remoting/client/chromoting_session.h

Issue 2868383003: [CRD iOS] Send key events to the session. (Closed)
Patch Set: Update based on feedback. Created 3 years, 7 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/client/BUILD.gn ('k') | remoting/client/input/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/client/chromoting_session.h
diff --git a/remoting/client/chromoting_session.h b/remoting/client/chromoting_session.h
index 8f67c653d0152f563db7fe95a1b8d1e6d581efe9..29c0f6713ea012680971c1f112bd1140a7b91cf1 100644
--- a/remoting/client/chromoting_session.h
+++ b/remoting/client/chromoting_session.h
@@ -17,6 +17,7 @@
#include "remoting/client/client_telemetry_logger.h"
#include "remoting/client/client_user_interface.h"
#include "remoting/client/connect_to_host_info.h"
+#include "remoting/client/input/client_input_injector.h"
#include "remoting/proto/control.pb.h"
#include "remoting/proto/event.pb.h"
#include "remoting/protocol/clipboard_stub.h"
@@ -39,7 +40,8 @@ class ChromotingClientRuntime;
// destroyed on the network thread. Except where indicated, all methods are
// called on the network thread.
class ChromotingSession : public ClientUserInterface,
- public protocol::ClipboardStub {
+ public protocol::ClipboardStub,
+ public ClientInputInjector {
public:
class Delegate {
public:
@@ -114,10 +116,9 @@ class ChromotingSession : public ClientUserInterface,
bool button_down);
void SendMouseWheelEvent(int delta_x, int delta_y);
- // Sends the provided keyboard scan code to the host.
- bool SendKeyEvent(int scan_code, int key_code, bool key_down);
-
- void SendTextEvent(const std::string& text);
+ // ClientInputInjector implementation.
+ bool SendKeyEvent(int scan_code, int key_code, bool key_down) override;
+ void SendTextEvent(const std::string& text) override;
// Sends the provided touch event payload to the host.
void SendTouchEvent(const protocol::TouchEvent& touch_event);
« no previous file with comments | « remoting/client/BUILD.gn ('k') | remoting/client/input/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698