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

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

Issue 296943003: Allow mouse-input to be enabled even if the plugin does not have keyboard focus. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 7 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_instance.h ('k') | remoting/client/plugin/pepper_input_handler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/client/plugin/chromoting_instance.cc
diff --git a/remoting/client/plugin/chromoting_instance.cc b/remoting/client/plugin/chromoting_instance.cc
index 83c25cb6d0e2e074507a1f7b2f509caea6644729..100004de093ba6b2c1708eb09863b6b27f89487a 100644
--- a/remoting/client/plugin/chromoting_instance.cc
+++ b/remoting/client/plugin/chromoting_instance.cc
@@ -360,6 +360,8 @@ void ChromotingInstance::HandleMessage(const pp::Var& message) {
HandleAllowMouseLockMessage();
} else if (method == "enableMediaSourceRendering") {
HandleEnableMediaSourceRendering();
+ } else if (method == "sendMouseInputWhenUnfocused") {
+ HandleSendMouseInputWhenUnfocused();
}
}
@@ -964,6 +966,10 @@ void ChromotingInstance::HandleEnableMediaSourceRendering() {
use_media_source_rendering_ = true;
}
+void ChromotingInstance::HandleSendMouseInputWhenUnfocused() {
+ input_handler_.set_send_mouse_input_when_unfocused(true);
+}
+
ChromotingStats* ChromotingInstance::GetStats() {
if (!video_renderer_.get())
return NULL;
« no previous file with comments | « remoting/client/plugin/chromoting_instance.h ('k') | remoting/client/plugin/pepper_input_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698