Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / remoting / client / plugin / pepper_input_handler.cc
index f12b1fd..3b12906 100644 (file)
@@ -218,6 +218,11 @@ void PepperInputHandler::SetMouseCursor(scoped_ptr<pp::ImageData> image,
   }
 }
 
+void PepperInputHandler::HideMouseCursor() {
+  cursor_image_.reset();
+  pp::MouseCursor::SetCursor(instance_, PP_MOUSECURSOR_TYPE_NONE);
+}
+
 void PepperInputHandler::MouseLockLost() {
   DCHECK(mouse_lock_state_ == MouseLockOn ||
          mouse_lock_state_ == MouseLockCancelling);
@@ -280,10 +285,7 @@ void PepperInputHandler::UpdateMouseCursor() {
                                *cursor_image_,
                                cursor_hotspot_);
   } else {
-    // If there is no cursor shape stored, either because the host never
-    // supplied one, or we were previously in mouse-lock mode, then use
-    // a standard arrow pointer.
-    pp::MouseCursor::SetCursor(instance_, PP_MOUSECURSOR_TYPE_POINTER);
+    pp::MouseCursor::SetCursor(instance_, PP_MOUSECURSOR_TYPE_NONE);
   }
 }