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

Unified Diff: remoting/client/plugin/chromoting_scriptable_object.cc

Issue 7316011: Release all keys on blur. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Avoid error messages on blur before the session is created. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/client/plugin/chromoting_scriptable_object.h ('k') | remoting/webapp/me2mom/remoting.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/client/plugin/chromoting_scriptable_object.cc
diff --git a/remoting/client/plugin/chromoting_scriptable_object.cc b/remoting/client/plugin/chromoting_scriptable_object.cc
index 51e1f5a6c93d65ca5fe50ea1d130ad7f4e7f4c4f..410a4e3dea05143169dca41283ccad69d78ba3de 100644
--- a/remoting/client/plugin/chromoting_scriptable_object.cc
+++ b/remoting/client/plugin/chromoting_scriptable_object.cc
@@ -102,6 +102,7 @@ void ChromotingScriptableObject::Init() {
AddMethod("submitLoginInfo", &ChromotingScriptableObject::DoSubmitLogin);
AddMethod("setScaleToFit", &ChromotingScriptableObject::DoSetScaleToFit);
AddMethod("onIq", &ChromotingScriptableObject::DoOnIq);
+ AddMethod("releaseAllKeys", &ChromotingScriptableObject::DoReleaseAllKeys);
}
bool ChromotingScriptableObject::HasProperty(const Var& name, Var* exception) {
@@ -457,4 +458,14 @@ Var ChromotingScriptableObject::DoOnIq(const std::vector<Var>& args,
return Var();
}
+Var ChromotingScriptableObject::DoReleaseAllKeys(
+ const std::vector<pp::Var>& args, pp::Var* exception) {
+ if (args.size() != 0) {
+ *exception = Var("Usage: DoReleaseAllKeys()");
+ return Var();
+ }
+ instance_->ReleaseAllKeys();
+ return Var();
+}
+
} // namespace remoting
« no previous file with comments | « remoting/client/plugin/chromoting_scriptable_object.h ('k') | remoting/webapp/me2mom/remoting.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698