| 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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 void Connect(const ClientConfig& config); | 125 void Connect(const ClientConfig& config); |
| 126 void Disconnect(); | 126 void Disconnect(); |
| 127 void OnIncomingIq(const std::string& iq); | 127 void OnIncomingIq(const std::string& iq); |
| 128 void ReleaseAllKeys(); | 128 void ReleaseAllKeys(); |
| 129 void InjectKeyEvent(const protocol::KeyEvent& event); | 129 void InjectKeyEvent(const protocol::KeyEvent& event); |
| 130 void RemapKey(uint32 in_usb_keycode, uint32 out_usb_keycode); | 130 void RemapKey(uint32 in_usb_keycode, uint32 out_usb_keycode); |
| 131 void TrapKey(uint32 usb_keycode, bool trap); | 131 void TrapKey(uint32 usb_keycode, bool trap); |
| 132 void SendClipboardItem(const std::string& mime_type, const std::string& item); | 132 void SendClipboardItem(const std::string& mime_type, const std::string& item); |
| 133 void NotifyClientDimensions(int width, int height); | 133 void NotifyClientDimensions(int width, int height); |
| 134 void PauseVideo(bool pause); | 134 void PauseVideo(bool pause); |
| 135 void PauseAudio(bool pause); |
| 135 | 136 |
| 136 // Return statistics record by ChromotingClient. | 137 // Return statistics record by ChromotingClient. |
| 137 // If no connection is currently active then NULL will be returned. | 138 // If no connection is currently active then NULL will be returned. |
| 138 ChromotingStats* GetStats(); | 139 ChromotingStats* GetStats(); |
| 139 | 140 |
| 140 // Registers a global log message handler that redirects the log output to | 141 // Registers a global log message handler that redirects the log output to |
| 141 // our plugin instance. | 142 // our plugin instance. |
| 142 // This is called by the plugin's PPP_InitializeModule. | 143 // This is called by the plugin's PPP_InitializeModule. |
| 143 // Note that no logging will be processed unless a ChromotingInstance has been | 144 // Note that no logging will be processed unless a ChromotingInstance has been |
| 144 // registered for logging (see RegisterLoggingInstance). | 145 // registered for logging (see RegisterLoggingInstance). |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 scoped_refptr<PepperXmppProxy> xmpp_proxy_; | 207 scoped_refptr<PepperXmppProxy> xmpp_proxy_; |
| 207 | 208 |
| 208 base::WeakPtrFactory<ChromotingInstance> weak_factory_; | 209 base::WeakPtrFactory<ChromotingInstance> weak_factory_; |
| 209 | 210 |
| 210 DISALLOW_COPY_AND_ASSIGN(ChromotingInstance); | 211 DISALLOW_COPY_AND_ASSIGN(ChromotingInstance); |
| 211 }; | 212 }; |
| 212 | 213 |
| 213 } // namespace remoting | 214 } // namespace remoting |
| 214 | 215 |
| 215 #endif // REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_ | 216 #endif // REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_ |
| OLD | NEW |