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

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: 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/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.

Powered by Google App Engine
This is Rietveld 408576698