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

Unified Diff: webkit/glue/plugins/pepper_plugin_instance.h

Issue 2896009: add find hookup (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: update DEPS 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 | « DEPS ('k') | webkit/glue/plugins/pepper_plugin_instance.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/plugins/pepper_plugin_instance.h
diff --git a/webkit/glue/plugins/pepper_plugin_instance.h b/webkit/glue/plugins/pepper_plugin_instance.h
index 0f836f06a0bcb7cac4a1c383ef29079addfc5c0d..716eca07e338f9b1820107d306f3bf6ffceec36c 100644
--- a/webkit/glue/plugins/pepper_plugin_instance.h
+++ b/webkit/glue/plugins/pepper_plugin_instance.h
@@ -16,6 +16,8 @@
#include "third_party/ppapi/c/pp_cursor_type.h"
#include "third_party/ppapi/c/pp_instance.h"
#include "third_party/ppapi/c/pp_resource.h"
+#include "third_party/ppapi/c/ppb_find.h"
+#include "third_party/ppapi/c/ppp_find.h"
#include "third_party/WebKit/WebKit/chromium/public/WebCanvas.h"
typedef struct _pp_Var PP_Var;
@@ -51,6 +53,10 @@ class PluginInstance : public base::RefCounted<PluginInstance> {
// Converts the given instance ID to an actual instance object.
static PluginInstance* FromPPInstance(PP_Instance instance);
+ // Returns a pointer to the interface implementing PPB_Find that is
+ // exposed to the plugin.
+ static const PPB_Find* GetFindInterface();
+
PluginDelegate* delegate() const { return delegate_; }
PluginModule* module() const { return module_.get(); }
@@ -135,6 +141,9 @@ class PluginInstance : public base::RefCounted<PluginInstance> {
// The id of the current find operation, or -1 if none is in process.
int find_identifier_;
+ // The plugin find interface.
+ const PPP_Find* plugin_find_interface_;
+
// Containes the cursor if it's set by the plugin.
scoped_ptr<WebKit::WebCursorInfo> cursor_;
« no previous file with comments | « DEPS ('k') | webkit/glue/plugins/pepper_plugin_instance.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698