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

Unified Diff: remoting/client/plugin/pepper_input_handler.h

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.cc ('k') | remoting/client/plugin/pepper_input_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
« no previous file with comments | « remoting/client/plugin/chromoting_instance.cc ('k') | remoting/client/plugin/pepper_input_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698