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 c72243e5a0e8f924413a279533c2f56be4ff53a3..328e009de322915c2461fc8a78f9a79d9a7bd09c 100644 |
--- a/remoting/client/plugin/pepper_input_handler.h |
+++ b/remoting/client/plugin/pepper_input_handler.h |
@@ -44,6 +44,9 @@ class PepperInputHandler : public pp::MouseLock { |
void SetMouseCursor(scoped_ptr<pp::ImageData> image, |
const pp::Point& hotspot); |
+ // Enables sending input when the plugin does not have input focus. |
Wez
2014/05/22 01:14:23
nit: mouse input
Jamie
2014/05/22 01:32:09
Done.
|
+ void SendMouseInputWhenUnfocused(); |
+ |
private: |
enum MouseLockState { |
MouseLockDisallowed, |
@@ -86,6 +89,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. |