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

Unified Diff: chrome/renderer/pepper/pepper_pdf_host.cc

Issue 19744007: Create a public API around webkit::ppapi::PluginInstance and use it in chrome. After this, webkit/p… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: review comments and undo checkdeps change Created 7 years, 5 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 | « chrome/renderer/pepper/pepper_flash_renderer_host.cc ('k') | chrome/renderer/pepper/ppb_pdf_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/pepper/pepper_pdf_host.cc
===================================================================
--- chrome/renderer/pepper/pepper_pdf_host.cc (revision 213462)
+++ chrome/renderer/pepper/pepper_pdf_host.cc (working copy)
@@ -182,7 +182,7 @@
PluginInstance* instance = host_->GetPluginInstance(pp_instance());
if (!instance)
return PP_ERROR_FAILED;
- instance->render_view()->DidStartLoading();
+ instance->GetRenderView()->DidStartLoading();
return PP_OK;
}
@@ -191,7 +191,7 @@
PluginInstance* instance = host_->GetPluginInstance(pp_instance());
if (!instance)
return PP_ERROR_FAILED;
- instance->render_view()->DidStopLoading();
+ instance->GetRenderView()->DidStopLoading();
return PP_OK;
}
@@ -200,9 +200,9 @@
PluginInstance* instance = host_->GetPluginInstance(pp_instance());
if (!instance)
return PP_ERROR_FAILED;
- instance->render_view()->Send(
+ instance->GetRenderView()->Send(
new ChromeViewHostMsg_PDFUpdateContentRestrictions(
- instance->render_view()->GetRoutingID(), restrictions));
+ instance->GetRenderView()->GetRoutingID(), restrictions));
return PP_OK;
}
@@ -235,7 +235,7 @@
return PP_OK;
WebKit::WebView* view =
- instance->container()->element().document().frame()->view();
+ instance->GetContainer()->element().document().frame()->view();
content::RenderView* render_view = content::RenderView::FromWebView(view);
render_view->Send(new ChromeViewHostMsg_PDFHasUnsupportedFeature(
render_view->GetRoutingID()));
@@ -249,7 +249,7 @@
if (!instance)
return PP_ERROR_FAILED;
- WebKit::WebElement element = instance->container()->element();
+ WebKit::WebElement element = instance->GetContainer()->element();
WebKit::WebView* view = element.document().frame()->view();
content::RenderView* render_view = content::RenderView::FromWebView(view);
@@ -268,8 +268,8 @@
PluginInstance* instance = host_->GetPluginInstance(pp_instance());
if (!instance)
return PP_ERROR_FAILED;
- GURL url = instance->plugin_url();
- content::RenderView* render_view = instance->render_view();
+ GURL url = instance->GetPluginURL();
+ content::RenderView* render_view = instance->GetRenderView();
WebKit::WebFrame* frame = render_view->GetWebView()->mainFrame();
content::Referrer referrer(frame->document().url(),
frame->document().referrerPolicy());
« no previous file with comments | « chrome/renderer/pepper/pepper_flash_renderer_host.cc ('k') | chrome/renderer/pepper/ppb_pdf_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698