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; |