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

Unified Diff: chrome/renderer/chrome_ppb_pdf_impl.cc

Issue 7709020: Moving the ViewHostMsg_PDFHasUnsupportedFeature IPC message to Chrome as PDF is a chrome specific (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 | « chrome/common/render_messages.h ('k') | content/common/view_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/chrome_ppb_pdf_impl.cc
===================================================================
--- chrome/renderer/chrome_ppb_pdf_impl.cc (revision 97671)
+++ chrome/renderer/chrome_ppb_pdf_impl.cc (working copy)
@@ -7,7 +7,9 @@
#include "base/metrics/histogram.h"
#include "base/utf_string_conversions.h"
#include "build/build_config.h"
+#include "chrome/common/render_messages.h"
#include "content/common/view_messages.h"
+#include "content/renderer/pepper_plugin_delegate_impl.h"
#include "content/renderer/render_thread.h"
#include "grit/webkit_resources.h"
#include "grit/webkit_strings.h"
@@ -320,7 +322,12 @@
if (!instance->IsFullPagePlugin())
return;
- instance->delegate()->HasUnsupportedFeature();
+ PepperPluginDelegateImpl* pepper_delegate =
+ static_cast<PepperPluginDelegateImpl*>(instance->delegate());
+
+ RenderThread::current()->Send(
+ new ChromeViewHostMsg_PDFHasUnsupportedFeature(
+ pepper_delegate->GetRoutingId()));
}
void SaveAs(PP_Instance instance_id) {
« no previous file with comments | « chrome/common/render_messages.h ('k') | content/common/view_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698