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

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

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 | « webkit/glue/plugins/pepper_plugin_delegate.h ('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
===================================================================
--- webkit/glue/plugins/pepper_plugin_instance.h (revision 51864)
+++ webkit/glue/plugins/pepper_plugin_instance.h (working copy)
@@ -10,6 +10,7 @@
#include "base/basictypes.h"
#include "base/ref_counted.h"
+#include "base/string16.h"
#include "gfx/rect.h"
#include "third_party/ppapi/c/pp_instance.h"
#include "third_party/ppapi/c/pp_resource.h"
@@ -56,6 +57,8 @@
const gfx::Rect& position() const { return position_; }
const gfx::Rect& clip() const { return clip_; }
+ int find_identifier() const { return find_identifier_; }
+
PP_Instance GetPPInstance();
// Paints the current backing store to the web page.
@@ -93,6 +96,15 @@
void ViewInitiatedPaint();
void ViewFlushedPaint();
+ string16 GetSelectedText(bool html);
+ void Zoom(float factor, bool text_only);
+ bool SupportsFind();
+ void StartFind(const string16& search_text,
+ bool case_sensitive,
+ int identifier);
+ void SelectFindResult(bool forward);
+ void StopFind();
+
private:
PluginDelegate* delegate_;
scoped_refptr<PluginModule> module_;
@@ -118,6 +130,9 @@
// The current device context for painting in 2D.
scoped_refptr<DeviceContext2D> device_context_2d_;
+ // The id of the current find operation, or -1 if none is in process.
+ int find_identifier_;
+
DISALLOW_COPY_AND_ASSIGN(PluginInstance);
};
« no previous file with comments | « webkit/glue/plugins/pepper_plugin_delegate.h ('k') | webkit/glue/plugins/pepper_plugin_instance.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698