| 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_SESSION_H_ | 5 #ifndef REMOTING_CLIENT_CHROMOTING_SESSION_H_ |
| 6 #define REMOTING_CLIENT_CHROMOTING_SESSION_H_ | 6 #define REMOTING_CLIENT_CHROMOTING_SESSION_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 // mouse button depressed. If |button| is BUTTON_UNDEFINED, no click is made. | 110 // mouse button depressed. If |button| is BUTTON_UNDEFINED, no click is made. |
| 111 void SendMouseEvent(int x, | 111 void SendMouseEvent(int x, |
| 112 int y, | 112 int y, |
| 113 protocol::MouseEvent_MouseButton button, | 113 protocol::MouseEvent_MouseButton button, |
| 114 bool button_down); | 114 bool button_down); |
| 115 void SendMouseWheelEvent(int delta_x, int delta_y); | 115 void SendMouseWheelEvent(int delta_x, int delta_y); |
| 116 | 116 |
| 117 // Sends the provided keyboard scan code to the host. | 117 // Sends the provided keyboard scan code to the host. |
| 118 bool SendKeyEvent(int scan_code, int key_code, bool key_down); | 118 bool SendKeyEvent(int scan_code, int key_code, bool key_down); |
| 119 | 119 |
| 120 bool SendKeyEvent(int key_code, bool key_down); |
| 121 |
| 120 void SendTextEvent(const std::string& text); | 122 void SendTextEvent(const std::string& text); |
| 121 | 123 |
| 122 // Sends the provided touch event payload to the host. | 124 // Sends the provided touch event payload to the host. |
| 123 void SendTouchEvent(const protocol::TouchEvent& touch_event); | 125 void SendTouchEvent(const protocol::TouchEvent& touch_event); |
| 124 | 126 |
| 125 // Enables or disables the video channel. May be called from any thread. | 127 // Enables or disables the video channel. May be called from any thread. |
| 126 void EnableVideoChannel(bool enable); | 128 void EnableVideoChannel(bool enable); |
| 127 | 129 |
| 128 void SendClientMessage(const std::string& type, const std::string& data); | 130 void SendClientMessage(const std::string& type, const std::string& data); |
| 129 | 131 |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 216 | 218 |
| 217 base::WeakPtr<ChromotingSession> weak_ptr_; | 219 base::WeakPtr<ChromotingSession> weak_ptr_; |
| 218 base::WeakPtrFactory<ChromotingSession> weak_factory_; | 220 base::WeakPtrFactory<ChromotingSession> weak_factory_; |
| 219 | 221 |
| 220 DISALLOW_COPY_AND_ASSIGN(ChromotingSession); | 222 DISALLOW_COPY_AND_ASSIGN(ChromotingSession); |
| 221 }; | 223 }; |
| 222 | 224 |
| 223 } // namespace remoting | 225 } // namespace remoting |
| 224 | 226 |
| 225 #endif // REMOTING_CLIENT_CHROMOTING_SESSION_H_ | 227 #endif // REMOTING_CLIENT_CHROMOTING_SESSION_H_ |
| OLD | NEW |