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

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

Issue 7316011: Release all keys on blur. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 5 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 // This implements the JavaScript class entrypoint for the plugin instance. 5 // This implements the JavaScript class entrypoint for the plugin instance.
6 // The Javascript API is defined as follows. 6 // The Javascript API is defined as follows.
7 // 7 //
8 // interface ChromotingScriptableObject { 8 // interface ChromotingScriptableObject {
9 // 9 //
10 // // Chromoting session API version (for this plugin). 10 // // Chromoting session API version (for this plugin).
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 // 96 //
97 // // Method for submitting login information. 97 // // Method for submitting login information.
98 // void submitLoginInfo(string username, string password); 98 // void submitLoginInfo(string username, string password);
99 // 99 //
100 // // Method for setting scale-to-fit. 100 // // Method for setting scale-to-fit.
101 // void setScaleToFit(bool scale_to_fit); 101 // void setScaleToFit(bool scale_to_fit);
102 // 102 //
103 // // Method for receiving an XMPP IQ stanza in response to a previous 103 // // Method for receiving an XMPP IQ stanza in response to a previous
104 // // sendIq() invocation. Other packets will be silently dropped. 104 // // sendIq() invocation. Other packets will be silently dropped.
105 // void onIq(string response_xml); 105 // void onIq(string response_xml);
106 //
107 // // Method for releasing all keys to ensure a consistent host state.
108 // void releaseAllKeys();
106 // } 109 // }
107 110
108 #ifndef REMOTING_CLIENT_PLUGIN_CHROMOTING_SCRIPTABLE_OBJECT_H_ 111 #ifndef REMOTING_CLIENT_PLUGIN_CHROMOTING_SCRIPTABLE_OBJECT_H_
109 #define REMOTING_CLIENT_PLUGIN_CHROMOTING_SCRIPTABLE_OBJECT_H_ 112 #define REMOTING_CLIENT_PLUGIN_CHROMOTING_SCRIPTABLE_OBJECT_H_
110 113
111 #include <map> 114 #include <map>
112 #include <string> 115 #include <string>
113 #include <vector> 116 #include <vector>
114 117
115 #include "base/memory/weak_ptr.h" 118 #include "base/memory/weak_ptr.h"
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 214
212 pp::Var DoConnect(const std::vector<pp::Var>& args, pp::Var* exception); 215 pp::Var DoConnect(const std::vector<pp::Var>& args, pp::Var* exception);
213 pp::Var DoDisconnect(const std::vector<pp::Var>& args, pp::Var* exception); 216 pp::Var DoDisconnect(const std::vector<pp::Var>& args, pp::Var* exception);
214 217
215 // This method is called by JS to provide login information. 218 // This method is called by JS to provide login information.
216 pp::Var DoSubmitLogin(const std::vector<pp::Var>& args, pp::Var* exception); 219 pp::Var DoSubmitLogin(const std::vector<pp::Var>& args, pp::Var* exception);
217 220
218 // This method is called by JS to set scale-to-fit. 221 // This method is called by JS to set scale-to-fit.
219 pp::Var DoSetScaleToFit(const std::vector<pp::Var>& args, pp::Var* exception); 222 pp::Var DoSetScaleToFit(const std::vector<pp::Var>& args, pp::Var* exception);
220 223
221 // This method is caleld by Javascript to provide responses to sendIq() 224 // This method is called by Javascript to provide responses to sendIq()
222 // requests. 225 // requests.
223 pp::Var DoOnIq(const std::vector<pp::Var>& args, pp::Var* exception); 226 pp::Var DoOnIq(const std::vector<pp::Var>& args, pp::Var* exception);
224 227
228 // This method is called by Javascript when the plugin loses input focus to
229 // release all pressed keys.
230 pp::Var DoReleaseAllKeys(const std::vector<pp::Var>& args,
231 pp::Var* exception);
232
225 PropertyNameMap property_names_; 233 PropertyNameMap property_names_;
226 std::vector<PropertyDescriptor> properties_; 234 std::vector<PropertyDescriptor> properties_;
227 scoped_refptr<PepperXmppProxy> xmpp_proxy_; 235 scoped_refptr<PepperXmppProxy> xmpp_proxy_;
228 236
229 ChromotingInstance* instance_; 237 ChromotingInstance* instance_;
230 }; 238 };
231 239
232 } // namespace remoting 240 } // namespace remoting
233 241
234 #endif // REMOTING_CLIENT_PLUGIN_CHROMOTING_SCRIPTABLE_OBJECT_H_ 242 #endif // REMOTING_CLIENT_PLUGIN_CHROMOTING_SCRIPTABLE_OBJECT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698