Index: webkit/plugins/ppapi/ppapi_plugin_instance.cc |
diff --git a/webkit/plugins/ppapi/ppapi_plugin_instance.cc b/webkit/plugins/ppapi/ppapi_plugin_instance.cc |
index 242c2464bbb115edc28208d5bdd66b8d96c43a92..4af282964089a370ba2635308dab0c66ea00b8dc 100644 |
--- a/webkit/plugins/ppapi/ppapi_plugin_instance.cc |
+++ b/webkit/plugins/ppapi/ppapi_plugin_instance.cc |
@@ -359,7 +359,7 @@ bool PluginInstance::SetCursor(PP_CursorType_Dev type, |
PP_Resource custom_image, |
const PP_Point* hot_spot) { |
if (type != PP_CURSORTYPE_CUSTOM) { |
- cursor_.reset(new WebCursorInfo(static_cast<WebCursorInfo::Type>(type))); |
+ DoSetCursor(new WebCursorInfo(static_cast<WebCursorInfo::Type>(type))); |
return true; |
} |
@@ -402,7 +402,7 @@ bool PluginInstance::SetCursor(PP_CursorType_Dev type, |
return false; |
#endif |
- cursor_.reset(custom_cursor.release()); |
+ DoSetCursor(custom_cursor.release()); |
return true; |
} |
@@ -1545,5 +1545,11 @@ void PluginInstance::SubscribeToPolicyUpdates(PP_Instance instance) { |
delegate()->SubscribeToPolicyUpdates(this); |
} |
+void PluginInstance::DoSetCursor(WebCursorInfo* cursor) { |
+ cursor_.reset(cursor); |
+ if (fullscreen_container_) |
+ fullscreen_container_->DidChangeCursor(*cursor); |
+} |
+ |
} // namespace ppapi |
} // namespace webkit |