}
}
+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);
*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);
}
}