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 #ifndef REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_ | 5 #ifndef REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_ |
6 #define REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_ | 6 #define REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/gtest_prod_util.h" | 10 #include "base/gtest_prod_util.h" |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 void HandleVideoControl(const base::DictionaryValue& data); | 189 void HandleVideoControl(const base::DictionaryValue& data); |
190 void HandlePauseAudio(const base::DictionaryValue& data); | 190 void HandlePauseAudio(const base::DictionaryValue& data); |
191 void HandleOnPinFetched(const base::DictionaryValue& data); | 191 void HandleOnPinFetched(const base::DictionaryValue& data); |
192 void HandleOnThirdPartyTokenFetched(const base::DictionaryValue& data); | 192 void HandleOnThirdPartyTokenFetched(const base::DictionaryValue& data); |
193 void HandleRequestPairing(const base::DictionaryValue& data); | 193 void HandleRequestPairing(const base::DictionaryValue& data); |
194 void HandleExtensionMessage(const base::DictionaryValue& data); | 194 void HandleExtensionMessage(const base::DictionaryValue& data); |
195 void HandleAllowMouseLockMessage(); | 195 void HandleAllowMouseLockMessage(); |
196 void HandleSendMouseInputWhenUnfocused(); | 196 void HandleSendMouseInputWhenUnfocused(); |
197 void HandleDelegateLargeCursors(); | 197 void HandleDelegateLargeCursors(); |
198 void HandleEnableDebugRegion(const base::DictionaryValue& data); | 198 void HandleEnableDebugRegion(const base::DictionaryValue& data); |
199 void HandleEnableTouchEvents(); | 199 void HandleEnableTouchEvents(const base::DictionaryValue& data); |
200 | 200 |
201 void Disconnect(); | 201 void Disconnect(); |
202 | 202 |
203 // Helper method to post messages to the webapp. | 203 // Helper method to post messages to the webapp. |
204 void PostChromotingMessage(const std::string& method, | 204 void PostChromotingMessage(const std::string& method, |
205 const pp::VarDictionary& data); | 205 const pp::VarDictionary& data); |
206 | 206 |
207 // Same as above, but serializes messages to JSON before sending them. This | 207 // Same as above, but serializes messages to JSON before sending them. This |
208 // method is used for backward compatibility with older version of the webapp | 208 // method is used for backward compatibility with older version of the webapp |
209 // that expect to received most messages formatted using JSON. | 209 // that expect to received most messages formatted using JSON. |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
281 | 281 |
282 // Weak reference to this instance, used for global logging and task posting. | 282 // Weak reference to this instance, used for global logging and task posting. |
283 base::WeakPtrFactory<ChromotingInstance> weak_factory_; | 283 base::WeakPtrFactory<ChromotingInstance> weak_factory_; |
284 | 284 |
285 DISALLOW_COPY_AND_ASSIGN(ChromotingInstance); | 285 DISALLOW_COPY_AND_ASSIGN(ChromotingInstance); |
286 }; | 286 }; |
287 | 287 |
288 } // namespace remoting | 288 } // namespace remoting |
289 | 289 |
290 #endif // REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_ | 290 #endif // REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_ |
OLD | NEW |