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

Unified 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: 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
Index: remoting/client/plugin/chromoting_scriptable_object.h
diff --git a/remoting/client/plugin/chromoting_scriptable_object.h b/remoting/client/plugin/chromoting_scriptable_object.h
index 9e4433edce976afa2b559b8e42f67cc8dedd6338..e6894f28844749b30e2579d67f3126149268b065 100644
--- a/remoting/client/plugin/chromoting_scriptable_object.h
+++ b/remoting/client/plugin/chromoting_scriptable_object.h
@@ -103,6 +103,9 @@
// // Method for receiving an XMPP IQ stanza in response to a previous
// // sendIq() invocation. Other packets will be silently dropped.
// void onIq(string response_xml);
+//
+// // Method for releasing all keys to ensure a consistent host state.
+// void releaseAllKeys();
// }
#ifndef REMOTING_CLIENT_PLUGIN_CHROMOTING_SCRIPTABLE_OBJECT_H_
@@ -218,10 +221,15 @@ class ChromotingScriptableObject
// This method is called by JS to set scale-to-fit.
pp::Var DoSetScaleToFit(const std::vector<pp::Var>& args, pp::Var* exception);
- // This method is caleld by Javascript to provide responses to sendIq()
+ // This method is called by Javascript to provide responses to sendIq()
// requests.
pp::Var DoOnIq(const std::vector<pp::Var>& args, pp::Var* exception);
+ // This method is called by Javascript when the plugin loses input focus to
+ // release all pressed keys.
+ pp::Var DoReleaseAllKeys(const std::vector<pp::Var>& args,
+ pp::Var* exception);
+
PropertyNameMap property_names_;
std::vector<PropertyDescriptor> properties_;
scoped_refptr<PepperXmppProxy> xmpp_proxy_;
« no previous file with comments | « remoting/client/plugin/chromoting_instance.cc ('k') | remoting/client/plugin/chromoting_scriptable_object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698