OLD | NEW |
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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 void ProvideSecret(const std::string& pin); | 55 void ProvideSecret(const std::string& pin); |
56 | 56 |
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 button_down); |
66 | 66 |
67 // Sends the provided keyboard scan code to the host. | 67 // Sends the provided keyboard scan code to the host. |
68 void PerformKeyboardAction(int keyCode, bool keyDown); | 68 void PerformKeyboardAction(int key_code, bool key_down); |
69 | 69 |
70 // ClientUserInterface implementation. | 70 // ClientUserInterface implementation. |
71 virtual void OnConnectionState( | 71 virtual void OnConnectionState( |
72 protocol::ConnectionToHost::State state, | 72 protocol::ConnectionToHost::State state, |
73 protocol::ErrorCode error) OVERRIDE; | 73 protocol::ErrorCode error) OVERRIDE; |
74 virtual void OnConnectionReady(bool ready) OVERRIDE; | 74 virtual void OnConnectionReady(bool ready) OVERRIDE; |
75 virtual void SetCapabilities(const std::string& capabilities) OVERRIDE; | 75 virtual void SetCapabilities(const std::string& capabilities) OVERRIDE; |
76 virtual void SetPairingResponse( | 76 virtual void SetPairingResponse( |
77 const protocol::PairingResponse& response) OVERRIDE; | 77 const protocol::PairingResponse& response) OVERRIDE; |
78 virtual protocol::ClipboardStub* GetClipboardStub() OVERRIDE; | 78 virtual protocol::ClipboardStub* GetClipboardStub() OVERRIDE; |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 std::string host_pubkey_; | 133 std::string host_pubkey_; |
134 | 134 |
135 friend class base::RefCountedThreadSafe<ChromotingJniInstance>; | 135 friend class base::RefCountedThreadSafe<ChromotingJniInstance>; |
136 | 136 |
137 DISALLOW_COPY_AND_ASSIGN(ChromotingJniInstance); | 137 DISALLOW_COPY_AND_ASSIGN(ChromotingJniInstance); |
138 }; | 138 }; |
139 | 139 |
140 } // namespace remoting | 140 } // namespace remoting |
141 | 141 |
142 #endif | 142 #endif |
OLD | NEW |