diff options
Diffstat (limited to 'webkit/plugins/ppapi/ppapi_plugin_instance.h')
-rw-r--r-- | webkit/plugins/ppapi/ppapi_plugin_instance.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/webkit/plugins/ppapi/ppapi_plugin_instance.h b/webkit/plugins/ppapi/ppapi_plugin_instance.h index fdb3dce..6109278 100644 --- a/webkit/plugins/ppapi/ppapi_plugin_instance.h +++ b/webkit/plugins/ppapi/ppapi_plugin_instance.h @@ -256,8 +256,10 @@ class PluginInstance : public base::RefCounted<PluginInstance>, // Switches between fullscreen and normal mode. If |delay_report| is set to // false, it may report the new state through DidChangeView immediately. If // true, it will delay it. When called from the plugin, delay_report should be - // true to avoid re-entrancy. - void SetFullscreen(bool fullscreen, bool delay_report); + // true to avoid re-entrancy. Returns true on success, false on failure + // (e.g. trying to enter fullscreen when not processing a user gesture or + // trying to set fullscreen when already in fullscreen mode). + bool SetFullscreen(bool fullscreen, bool delay_report); // Implementation of PPB_Flash. int32_t Navigate(PPB_URLRequestInfo_Impl* request, |