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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 // Message handlers for messages that come from JavaScript. Called | 123 // Message handlers for messages that come from JavaScript. Called |
124 // from HandleMessage(). | 124 // from HandleMessage(). |
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 NotifyClientResolution(int width, int height, int x_dpi, int y_dpi); |
134 void PauseVideo(bool pause); | 134 void PauseVideo(bool pause); |
135 void PauseAudio(bool pause); | 135 void PauseAudio(bool pause); |
136 | 136 |
137 // Return statistics record by ChromotingClient. | 137 // Return statistics record by ChromotingClient. |
138 // If no connection is currently active then NULL will be returned. | 138 // If no connection is currently active then NULL will be returned. |
139 ChromotingStats* GetStats(); | 139 ChromotingStats* GetStats(); |
140 | 140 |
141 // 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 |
142 // our plugin instance. | 142 // our plugin instance. |
143 // This is called by the plugin's PPP_InitializeModule. | 143 // This is called by the plugin's PPP_InitializeModule. |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 scoped_refptr<PepperXmppProxy> xmpp_proxy_; | 211 scoped_refptr<PepperXmppProxy> xmpp_proxy_; |
212 | 212 |
213 base::WeakPtrFactory<ChromotingInstance> weak_factory_; | 213 base::WeakPtrFactory<ChromotingInstance> weak_factory_; |
214 | 214 |
215 DISALLOW_COPY_AND_ASSIGN(ChromotingInstance); | 215 DISALLOW_COPY_AND_ASSIGN(ChromotingInstance); |
216 }; | 216 }; |
217 | 217 |
218 } // namespace remoting | 218 } // namespace remoting |
219 | 219 |
220 #endif // REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_ | 220 #endif // REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_ |
OLD | NEW |