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

Side by Side Diff: remoting/client/jni/chromoting_jni_instance.h

Issue 21120005: Add Android Chromoting client keyboard input (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Improve related comments Created 7 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef REMOTING_CLIENT_CHROMOTING_JNI_INSTANCE_H_ 5 #ifndef REMOTING_CLIENT_CHROMOTING_JNI_INSTANCE_H_
6 #define REMOTING_CLIENT_CHROMOTING_JNI_INSTANCE_H_ 6 #define REMOTING_CLIENT_CHROMOTING_JNI_INSTANCE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 // Schedules a redraw on the display thread. May be called from any thread. 57 // Schedules a redraw on the display thread. May be called from any thread.
58 void RedrawDesktop(); 58 void RedrawDesktop();
59 59
60 // Moves the host's cursor to the specified coordinates, optionally with some 60 // Moves the host's cursor to the specified coordinates, optionally with some
61 // mouse button depressed. If |button| is BUTTON_UNDEFINED, no click is made. 61 // mouse button depressed. If |button| is BUTTON_UNDEFINED, no click is made.
62 void PerformMouseAction(int x, 62 void PerformMouseAction(int x,
63 int y, 63 int y,
64 protocol::MouseEvent_MouseButton button, 64 protocol::MouseEvent_MouseButton button,
65 bool buttonDown); 65 bool buttonDown);
66 66
67 // Sends the provided keyboard scan code to the host.
68 void PerformKeyboardAction(int keyCode, bool keyDown);
69
67 // ClientUserInterface implementation. 70 // ClientUserInterface implementation.
68 virtual void OnConnectionState( 71 virtual void OnConnectionState(
69 protocol::ConnectionToHost::State state, 72 protocol::ConnectionToHost::State state,
70 protocol::ErrorCode error) OVERRIDE; 73 protocol::ErrorCode error) OVERRIDE;
71 virtual void OnConnectionReady(bool ready) OVERRIDE; 74 virtual void OnConnectionReady(bool ready) OVERRIDE;
72 virtual void SetCapabilities(const std::string& capabilities) OVERRIDE; 75 virtual void SetCapabilities(const std::string& capabilities) OVERRIDE;
73 virtual void SetPairingResponse( 76 virtual void SetPairingResponse(
74 const protocol::PairingResponse& response) OVERRIDE; 77 const protocol::PairingResponse& response) OVERRIDE;
75 virtual protocol::ClipboardStub* GetClipboardStub() OVERRIDE; 78 virtual protocol::ClipboardStub* GetClipboardStub() OVERRIDE;
76 virtual protocol::CursorShapeStub* GetCursorShapeStub() OVERRIDE; 79 virtual protocol::CursorShapeStub* GetCursorShapeStub() OVERRIDE;
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 std::string host_pubkey_; 133 std::string host_pubkey_;
131 134
132 friend class base::RefCountedThreadSafe<ChromotingJniInstance>; 135 friend class base::RefCountedThreadSafe<ChromotingJniInstance>;
133 136
134 DISALLOW_COPY_AND_ASSIGN(ChromotingJniInstance); 137 DISALLOW_COPY_AND_ASSIGN(ChromotingJniInstance);
135 }; 138 };
136 139
137 } // namespace remoting 140 } // namespace remoting
138 141
139 #endif 142 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698