Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(230)

Side by Side Diff: remoting/client/plugin/chromoting_instance.h

Issue 23484015: Added support of relative mouse motion in Chromoting. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: CR feedback and rebased Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | remoting/client/plugin/chromoting_instance.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 static const int kApiMinScriptableVersion = 5; 95 static const int kApiMinScriptableVersion = 5;
96 96
97 // Helper method to parse authentication_methods parameter. 97 // Helper method to parse authentication_methods parameter.
98 static bool ParseAuthMethods(const std::string& auth_methods, 98 static bool ParseAuthMethods(const std::string& auth_methods,
99 ClientConfig* config); 99 ClientConfig* config);
100 100
101 explicit ChromotingInstance(PP_Instance instance); 101 explicit ChromotingInstance(PP_Instance instance);
102 virtual ~ChromotingInstance(); 102 virtual ~ChromotingInstance();
103 103
104 // pp::Instance interface. 104 // pp::Instance interface.
105 virtual void DidChangeFocus(bool has_focus) OVERRIDE;
105 virtual void DidChangeView(const pp::View& view) OVERRIDE; 106 virtual void DidChangeView(const pp::View& view) OVERRIDE;
106 virtual bool Init(uint32_t argc, const char* argn[], 107 virtual bool Init(uint32_t argc, const char* argn[],
107 const char* argv[]) OVERRIDE; 108 const char* argv[]) OVERRIDE;
108 virtual void HandleMessage(const pp::Var& message) OVERRIDE; 109 virtual void HandleMessage(const pp::Var& message) OVERRIDE;
109 virtual bool HandleInputEvent(const pp::InputEvent& event) OVERRIDE; 110 virtual bool HandleInputEvent(const pp::InputEvent& event) OVERRIDE;
110 111
111 // ClientUserInterface interface. 112 // ClientUserInterface interface.
112 virtual void OnConnectionState(protocol::ConnectionToHost::State state, 113 virtual void OnConnectionState(protocol::ConnectionToHost::State state,
113 protocol::ErrorCode error) OVERRIDE; 114 protocol::ErrorCode error) OVERRIDE;
114 virtual void OnConnectionReady(bool ready) OVERRIDE; 115 virtual void OnConnectionReady(bool ready) OVERRIDE;
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 void HandleRemapKey(const base::DictionaryValue& data); 189 void HandleRemapKey(const base::DictionaryValue& data);
189 void HandleTrapKey(const base::DictionaryValue& data); 190 void HandleTrapKey(const base::DictionaryValue& data);
190 void HandleSendClipboardItem(const base::DictionaryValue& data); 191 void HandleSendClipboardItem(const base::DictionaryValue& data);
191 void HandleNotifyClientResolution(const base::DictionaryValue& data); 192 void HandleNotifyClientResolution(const base::DictionaryValue& data);
192 void HandlePauseVideo(const base::DictionaryValue& data); 193 void HandlePauseVideo(const base::DictionaryValue& data);
193 void HandlePauseAudio(const base::DictionaryValue& data); 194 void HandlePauseAudio(const base::DictionaryValue& data);
194 void HandleOnPinFetched(const base::DictionaryValue& data); 195 void HandleOnPinFetched(const base::DictionaryValue& data);
195 void HandleOnThirdPartyTokenFetched(const base::DictionaryValue& data); 196 void HandleOnThirdPartyTokenFetched(const base::DictionaryValue& data);
196 void HandleRequestPairing(const base::DictionaryValue& data); 197 void HandleRequestPairing(const base::DictionaryValue& data);
197 void HandleExtensionMessage(const base::DictionaryValue& data); 198 void HandleExtensionMessage(const base::DictionaryValue& data);
199 void HandleAllowMouseLockMessage();
198 200
199 // Helper method called from Connect() to connect with parsed config. 201 // Helper method called from Connect() to connect with parsed config.
200 void ConnectWithConfig(const ClientConfig& config, 202 void ConnectWithConfig(const ClientConfig& config,
201 const std::string& local_jid); 203 const std::string& local_jid);
202 204
203 // Helper method to post messages to the webapp. 205 // Helper method to post messages to the webapp.
204 void PostChromotingMessage(const std::string& method, 206 void PostChromotingMessage(const std::string& method,
205 scoped_ptr<base::DictionaryValue> data); 207 scoped_ptr<base::DictionaryValue> data);
206 208
207 // Posts trapped keys to the web-app to handle. 209 // Posts trapped keys to the web-app to handle.
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 261
260 // Weak reference to this instance, used for global logging and task posting. 262 // Weak reference to this instance, used for global logging and task posting.
261 base::WeakPtrFactory<ChromotingInstance> weak_factory_; 263 base::WeakPtrFactory<ChromotingInstance> weak_factory_;
262 264
263 DISALLOW_COPY_AND_ASSIGN(ChromotingInstance); 265 DISALLOW_COPY_AND_ASSIGN(ChromotingInstance);
264 }; 266 };
265 267
266 } // namespace remoting 268 } // namespace remoting
267 269
268 #endif // REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_ 270 #endif // REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_
OLDNEW
« no previous file with comments | « no previous file | remoting/client/plugin/chromoting_instance.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698