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

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: 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
Index: remoting/client/plugin/chromoting_instance.cc
diff --git a/remoting/client/plugin/chromoting_instance.cc b/remoting/client/plugin/chromoting_instance.cc
index 3504c71fcbf62d05dc2c7abc55f0f7fe86658eb0..936d9f0e720e50cb20b3d6dd4f2459d5ac7675e9 100644
--- a/remoting/client/plugin/chromoting_instance.cc
+++ b/remoting/client/plugin/chromoting_instance.cc
@@ -174,7 +174,8 @@ logging::LogMessageHandlerFunction g_logging_old_handler = NULL;
const char ChromotingInstance::kApiFeatures[] =
"highQualityScaling injectKeyEvent sendClipboardItem remapKey trapKey "
"notifyClientResolution pauseVideo pauseAudio asyncPin thirdPartyAuth "
- "pinlessAuth extensionMessage allowMouseLock mediaSourceRendering";
+ "pinlessAuth extensionMessage allowMouseLock mediaSourceRendering "
+ "sendMouseInputWhenUnfocused";
Wez 2014/05/22 01:14:23 nit: Unless there is some fallback behaviour the a
Jamie 2014/05/22 01:32:09 Done.
const char ChromotingInstance::kRequestedCapabilities[] = "";
const char ChromotingInstance::kSupportedCapabilities[] = "desktopShape";
@@ -339,6 +340,8 @@ void ChromotingInstance::HandleMessage(const pp::Var& message) {
HandleAllowMouseLockMessage();
} else if (method == "enableMediaSourceRendering") {
HandleEnableMediaSourceRendering();
+ } else if (method == "sendMouseInputWhenUnfocused") {
+ HandleSendMouseInputWhenUnfocused();
}
}
@@ -918,6 +921,10 @@ void ChromotingInstance::HandleEnableMediaSourceRendering() {
use_media_source_rendering_ = true;
}
+void ChromotingInstance::HandleSendMouseInputWhenUnfocused() {
+ input_handler_.SendMouseInputWhenUnfocused();
+}
+
ChromotingStats* ChromotingInstance::GetStats() {
if (!video_renderer_.get())
return NULL;

Powered by Google App Engine
This is Rietveld 408576698