| 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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 void RedrawDesktop(); | 76 void RedrawDesktop(); |
| 77 | 77 |
| 78 // Moves the host's cursor to the specified coordinates, optionally with some | 78 // Moves the host's cursor to the specified coordinates, optionally with some |
| 79 // mouse button depressed. If |button| is BUTTON_UNDEFINED, no click is made. | 79 // mouse button depressed. If |button| is BUTTON_UNDEFINED, no click is made. |
| 80 void SendMouseEvent(int x, int y, | 80 void SendMouseEvent(int x, int y, |
| 81 protocol::MouseEvent_MouseButton button, | 81 protocol::MouseEvent_MouseButton button, |
| 82 bool button_down); | 82 bool button_down); |
| 83 void SendMouseWheelEvent(int delta_x, int delta_y); | 83 void SendMouseWheelEvent(int delta_x, int delta_y); |
| 84 | 84 |
| 85 // Sends the provided keyboard scan code to the host. | 85 // Sends the provided keyboard scan code to the host. |
| 86 bool SendKeyEvent(int key_code, bool key_down); | 86 bool SendKeyEvent(int scan_code, int key_code, bool key_down); |
| 87 | 87 |
| 88 void SendTextEvent(const std::string& text); | 88 void SendTextEvent(const std::string& text); |
| 89 | 89 |
| 90 // Enables or disables the video channel. May be called from any thread. | 90 // Enables or disables the video channel. May be called from any thread. |
| 91 void EnableVideoChannel(bool enable); | 91 void EnableVideoChannel(bool enable); |
| 92 | 92 |
| 93 void SendClientMessage(const std::string& type, const std::string& data); | 93 void SendClientMessage(const std::string& type, const std::string& data); |
| 94 | 94 |
| 95 // Records paint time for statistics logging, if enabled. May be called from | 95 // Records paint time for statistics logging, if enabled. May be called from |
| 96 // any thread. | 96 // any thread. |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 friend class base::RefCountedThreadSafe<ChromotingJniInstance>; | 184 friend class base::RefCountedThreadSafe<ChromotingJniInstance>; |
| 185 | 185 |
| 186 base::WeakPtrFactory<ChromotingJniInstance> weak_factory_; | 186 base::WeakPtrFactory<ChromotingJniInstance> weak_factory_; |
| 187 | 187 |
| 188 DISALLOW_COPY_AND_ASSIGN(ChromotingJniInstance); | 188 DISALLOW_COPY_AND_ASSIGN(ChromotingJniInstance); |
| 189 }; | 189 }; |
| 190 | 190 |
| 191 } // namespace remoting | 191 } // namespace remoting |
| 192 | 192 |
| 193 #endif | 193 #endif |
| OLD | NEW |