summaryrefslogtreecommitdiffstats
path: root/webkit/glue/plugins/webplugin_delegate.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 /webkit/glue/plugins/webplugin_delegate.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 'webkit/glue/plugins/webplugin_delegate.h')
-rw-r--r--webkit/glue/plugins/webplugin_delegate.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/webkit/glue/plugins/webplugin_delegate.h b/webkit/glue/plugins/webplugin_delegate.h
index f496d52..3b04d24 100644
--- a/webkit/glue/plugins/webplugin_delegate.h
+++ b/webkit/glue/plugins/webplugin_delegate.h
@@ -143,7 +143,7 @@ class WebPluginDelegate : public WebPlugin2DDeviceDelegate,
// See WebPluginContainerImpl's description of the interface.
virtual bool SupportsFind() { return false; }
- 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) {}
@@ -156,11 +156,11 @@ class WebPluginDelegate : public WebPlugin2DDeviceDelegate,
// Used for zooming of full page plugins. 0 means reset, while -1 means zoom
// out and +1 means zoom in.
- virtual void Zoom(int factor) {}
- // Copy the selected text.
- virtual void Copy() {}
- // Gets the selected UTF8 text, if any.
- virtual string16 GetSelectedText() { return string16(); }
+ virtual void SetZoomFactor(float scale, bool text_only) {}
+ // Gets the selected text, if any.
+ virtual bool HasSelection() const { return false; }
+ virtual string16 GetSelectionAsText() const { return string16(); }
+ virtual string16 GetSelectionAsMarkup() const { return string16(); }
};
} // namespace webkit_glue