Index: remoting/client/plugin/pepper_input_handler.h |
diff --git a/remoting/client/plugin/pepper_input_handler.h b/remoting/client/plugin/pepper_input_handler.h |
index d975670b57b223403ff0c8b7cd1e413c29bafddf..9ec04755282bec688d39598f7978e2c62f0e9478 100644 |
--- a/remoting/client/plugin/pepper_input_handler.h |
+++ b/remoting/client/plugin/pepper_input_handler.h |
@@ -48,6 +48,12 @@ class PepperInputHandler : public pp::MouseLock { |
void SetMouseCursor(scoped_ptr<pp::ImageData> image, |
const pp::Point& hotspot); |
+ // Enable or disable sending mouse input when the plugin does not have input |
+ // focus. |
+ void set_send_mouse_input_when_unfocused(bool send) { |
+ send_mouse_input_when_unfocused_ = send; |
+ } |
+ |
private: |
enum MouseLockState { |
MouseLockDisallowed, |
@@ -90,6 +96,10 @@ class PepperInputHandler : public pp::MouseLock { |
// True if the plugin has focus. |
bool has_focus_; |
+ // True if the plugin should respond to mouse input even if it does not have |
+ // keyboard focus. |
+ bool send_mouse_input_when_unfocused_; |
+ |
MouseLockState mouse_lock_state_; |
// Accumulated sub-pixel and sub-tick deltas from wheel events. |