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

Unified Diff: chrome/renderer/pepper_plugin_delegate_impl.cc

Issue 2827047: Make RenderView call the plugin through WebKit::WebPlugin (instead of casting... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: compile until webkit is rolled Created 10 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_plugin_delegate_impl.h ('k') | chrome/renderer/render_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/pepper_plugin_delegate_impl.cc
===================================================================
--- chrome/renderer/pepper_plugin_delegate_impl.cc (revision 51864)
+++ chrome/renderer/pepper_plugin_delegate_impl.cc (working copy)
@@ -6,6 +6,7 @@
#include "app/surface/transport_dib.h"
#include "base/scoped_ptr.h"
+#include "chrome/renderer/render_view.h"
#include "webkit/glue/plugins/pepper_plugin_instance.h"
#if defined(OS_MACOSX)
@@ -131,3 +132,19 @@
return new PlatformImage2DImpl(width, height, dib);
}
+
+void PepperPluginDelegateImpl::DidChangeNumberOfFindResults(int identifier,
+ int total,
+ bool final_result) {
+ if (total == 0) {
+ render_view_->ReportNoFindInPageResults(identifier);
+ } else {
+ render_view_->reportFindInPageMatchCount(identifier, total, final_result);
+ }
+}
+
+void PepperPluginDelegateImpl::DidChangeSelectedFindResult(int identifier,
+ int index) {
+ render_view_->reportFindInPageSelection(
+ identifier, index + 1, WebKit::WebRect());
+}
« no previous file with comments | « chrome/renderer/pepper_plugin_delegate_impl.h ('k') | chrome/renderer/render_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698