summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/webplugin_delegate_pepper.h
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-08 20:33:01 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-08 20:33:01 +0000
commit0fdbf8c361ea8b3a51c9c81b9e90da145d357a3c (patch)
treed9816c6046fab903f2695301e13eded622422626 /chrome/renderer/webplugin_delegate_pepper.h
parentf51ffcf1fa06f12c96cc3bcb6c0659c65371fe81 (diff)
downloadchromium_src-0fdbf8c361ea8b3a51c9c81b9e90da145d357a3c.zip
chromium_src-0fdbf8c361ea8b3a51c9c81b9e90da145d357a3c.tar.gz
chromium_src-0fdbf8c361ea8b3a51c9c81b9e90da145d357a3c.tar.bz2
Chrome side of making RenderView not special case PluginDocument and making the WebPlugin API more like WebView.
Review URL: http://codereview.chromium.org/2827047 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51886 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/webplugin_delegate_pepper.h')
-rw-r--r--chrome/renderer/webplugin_delegate_pepper.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/chrome/renderer/webplugin_delegate_pepper.h b/chrome/renderer/webplugin_delegate_pepper.h
index e812cd9..f18f68a8 100644
--- a/chrome/renderer/webplugin_delegate_pepper.h
+++ b/chrome/renderer/webplugin_delegate_pepper.h
@@ -81,7 +81,7 @@ class WebPluginDelegatePepper : public webkit_glue::WebPluginDelegate,
virtual webkit_glue::WebPluginResourceClient* CreateSeekableResourceClient(
unsigned long resource_id, int range_request_id);
virtual bool SupportsFind();
- virtual void StartFind(const std::string& search_text,
+ virtual void StartFind(const string16& search_text,
bool case_sensitive,
int identifier);
virtual void SelectFindResult(bool forward);
@@ -95,9 +95,10 @@ class WebPluginDelegatePepper : public webkit_glue::WebPluginDelegate,
virtual NPWidgetExtensions* GetWidgetExtensions();
virtual bool SetCursor(NPCursorType type);
virtual NPFontExtensions* GetFontExtensions();
- virtual void Zoom(int factor);
- virtual void Copy();
- virtual string16 GetSelectedText();
+ virtual void SetZoomFactor(float scale, bool text_only);
+ virtual bool HasSelection() const;
+ virtual string16 GetSelectionAsText() const;
+ virtual string16 GetSelectionAsMarkup() const;
// WebPlugin2DDeviceDelegate implementation.
virtual NPError Device2DQueryCapability(int32 capability, int32* value);
@@ -268,7 +269,7 @@ class WebPluginDelegatePepper : public webkit_glue::WebPluginDelegate,
// Returns the selection. If nothing is selected, returns an empty string.
// If html is true, it will return a string only if html data is available.
- string16 GetSelectedText(bool html);
+ string16 GetSelectedText(bool html) const;
base::WeakPtr<RenderView> render_view_;