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

Unified Diff: content/renderer/pepper_plugin_delegate_impl.cc

Issue 7740056: Revert 98767 - Reimplement the Pepper fullscreen API to use webkitRequestFullScreen and friends. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 4 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 | « content/renderer/pepper_plugin_delegate_impl.h ('k') | webkit/plugins/ppapi/mock_plugin_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/pepper_plugin_delegate_impl.cc
===================================================================
--- content/renderer/pepper_plugin_delegate_impl.cc (revision 98865)
+++ content/renderer/pepper_plugin_delegate_impl.cc (working copy)
@@ -1299,6 +1299,13 @@
webkit::ppapi::PPB_Flash_Menu_Impl* menu,
const gfx::Point& position) {
int32 render_widget_id = render_view_->routing_id();
+ if (instance->IsFullscreen(instance->pp_instance())) {
+ webkit::ppapi::FullscreenContainer* container =
+ instance->fullscreen_container();
+ DCHECK(container);
+ render_widget_id =
+ static_cast<RenderWidgetFullscreenPepper*>(container)->routing_id();
+ }
int request_id = pending_context_menus_.Add(
new scoped_refptr<webkit::ppapi::PPB_Flash_Menu_Impl>(menu));
@@ -1362,6 +1369,12 @@
saved_context_menu_action_ = action;
}
+webkit::ppapi::FullscreenContainer*
+PepperPluginDelegateImpl::CreateFullscreenContainer(
+ webkit::ppapi::PluginInstance* instance) {
+ return render_view_->CreatePepperFullscreenContainer(instance);
+}
+
gfx::Size PepperPluginDelegateImpl::GetScreenSize() {
WebKit::WebScreenInfo info = render_view_->screenInfo();
return gfx::Size(info.rect.width, info.rect.height);
Property changes on: content/renderer/pepper_plugin_delegate_impl.cc
___________________________________________________________________
Deleted: svn:mergeinfo
« no previous file with comments | « content/renderer/pepper_plugin_delegate_impl.h ('k') | webkit/plugins/ppapi/mock_plugin_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698