OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // TODO(ajwong): We need to come up with a better description of the | 5 // TODO(ajwong): We need to come up with a better description of the |
6 // responsibilities for each thread. | 6 // responsibilities for each thread. |
7 | 7 |
8 #ifndef REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_ | 8 #ifndef REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_ |
9 #define REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_ | 9 #define REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_ |
10 | 10 |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 // Message handlers for messages that come from JavaScript. Called | 138 // Message handlers for messages that come from JavaScript. Called |
139 // from HandleMessage() and ChromotingScriptableObject. | 139 // from HandleMessage() and ChromotingScriptableObject. |
140 void Connect(const ClientConfig& config); | 140 void Connect(const ClientConfig& config); |
141 void Disconnect(); | 141 void Disconnect(); |
142 void OnIncomingIq(const std::string& iq); | 142 void OnIncomingIq(const std::string& iq); |
143 void ReleaseAllKeys(); | 143 void ReleaseAllKeys(); |
144 void InjectKeyEvent(const protocol::KeyEvent& event); | 144 void InjectKeyEvent(const protocol::KeyEvent& event); |
145 void RemapKey(uint32 in_usb_keycode, uint32 out_usb_keycode); | 145 void RemapKey(uint32 in_usb_keycode, uint32 out_usb_keycode); |
146 void TrapKey(uint32 usb_keycode, bool trap); | 146 void TrapKey(uint32 usb_keycode, bool trap); |
147 void SendClipboardItem(const std::string& mime_type, const std::string& item); | 147 void SendClipboardItem(const std::string& mime_type, const std::string& item); |
| 148 void NotifyClientDimensions(int width, int height); |
148 | 149 |
149 // Return statistics record by ChromotingClient. | 150 // Return statistics record by ChromotingClient. |
150 // If no connection is currently active then NULL will be returned. | 151 // If no connection is currently active then NULL will be returned. |
151 ChromotingStats* GetStats(); | 152 ChromotingStats* GetStats(); |
152 | 153 |
153 // Registers a global log message handler that redirects the log output to | 154 // Registers a global log message handler that redirects the log output to |
154 // our plugin instance. | 155 // our plugin instance. |
155 // This is called by the plugin's PPP_InitializeModule. | 156 // This is called by the plugin's PPP_InitializeModule. |
156 // Note that no logging will be processed unless a ChromotingInstance has been | 157 // Note that no logging will be processed unless a ChromotingInstance has been |
157 // registered for logging (see RegisterLoggingInstance). | 158 // registered for logging (see RegisterLoggingInstance). |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 pp::Var instance_object_; | 216 pp::Var instance_object_; |
216 | 217 |
217 scoped_ptr<ScopedThreadProxy> thread_proxy_; | 218 scoped_ptr<ScopedThreadProxy> thread_proxy_; |
218 | 219 |
219 DISALLOW_COPY_AND_ASSIGN(ChromotingInstance); | 220 DISALLOW_COPY_AND_ASSIGN(ChromotingInstance); |
220 }; | 221 }; |
221 | 222 |
222 } // namespace remoting | 223 } // namespace remoting |
223 | 224 |
224 #endif // REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_ | 225 #endif // REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_ |
OLD | NEW |