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

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

Issue 693893005: Fix large cursors not to trigger MouseLock (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add an explicit HideMouseCursor() helper. Created 6 years, 2 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 48d85c264a448a488c25e4940d03a8d6e18d7129..37dd4c9b00c143f7adbd8ef47c72412a8c3f7c51 100644
--- a/remoting/client/plugin/pepper_input_handler.h
+++ b/remoting/client/plugin/pepper_input_handler.h
@@ -43,11 +43,15 @@ class PepperInputHandler : public pp::MouseLock {
// Called when the plugin receives or loses focus.
void DidChangeFocus(bool has_focus);
- // Sets the mouse cursor image. Passing NULL image will lock the mouse if
- // mouse lock is enabled.
+ // Sets the mouse cursor image. Passing NULL |image| will cause the cursor to
+ // be hidden.
+ // Passing NULL |image| will also cause mouse-lock to be entered, if allowed.
void SetMouseCursor(scoped_ptr<pp::ImageData> image,
const pp::Point& hotspot);
+ // Hides the mousr cursor without triggering mouse-lock.
+ void HideMouseCursor();
+
// Enable or disable sending mouse input when the plugin does not have input
// focus.
void set_send_mouse_input_when_unfocused(bool send) {
« 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