diff options
author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-25 08:26:49 +0000 |
---|---|---|
committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-25 08:26:49 +0000 |
commit | 24a7f3c1308fd32d8620f5bd412ede8f84da9794 (patch) | |
tree | 6102a956d92d49466394a9cac1960bef2af87fca /chrome/renderer/webplugin_delegate_pepper.h | |
parent | 64c8ec0d7073939d6be8e5a23bc926078d23193c (diff) | |
download | chromium_src-24a7f3c1308fd32d8620f5bd412ede8f84da9794.zip chromium_src-24a7f3c1308fd32d8620f5bd412ede8f84da9794.tar.gz chromium_src-24a7f3c1308fd32d8620f5bd412ede8f84da9794.tar.bz2 |
Chrome side of adding search support to Pepper.
Review URL: http://codereview.chromium.org/1075011
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42585 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/webplugin_delegate_pepper.h')
-rw-r--r-- | chrome/renderer/webplugin_delegate_pepper.h | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/chrome/renderer/webplugin_delegate_pepper.h b/chrome/renderer/webplugin_delegate_pepper.h index 4f34631..13c1f47 100644 --- a/chrome/renderer/webplugin_delegate_pepper.h +++ b/chrome/renderer/webplugin_delegate_pepper.h @@ -74,6 +74,14 @@ class WebPluginDelegatePepper : public webkit_glue::WebPluginDelegate { unsigned long resource_id, const GURL& url, int notify_id); virtual webkit_glue::WebPluginResourceClient* CreateSeekableResourceClient( unsigned long resource_id, int range_request_id); + virtual bool SupportsFind(); + virtual void StartFind(const std::string& search_text, + bool case_sensitive, + int identifier); + virtual void SelectFindResult(bool forward); + virtual void StopFind(); + virtual void NumberOfFindResultsChanged(int total, bool final_result); + virtual void SelectedFindResultChanged(int index); // WebPlugin2DDeviceDelegate implementation. virtual NPError Device2DQueryCapability(int32 capability, int32* value); @@ -149,8 +157,6 @@ class WebPluginDelegatePepper : public webkit_glue::WebPluginDelegate { virtual bool PrintPage(int page_number, WebKit::WebCanvas* canvas); virtual void PrintEnd(); - // End of WebPluginDelegate implementation. - gfx::Rect GetRect() const { return window_rect_; } gfx::Rect GetClipRect() const { return clip_rect_; } @@ -188,6 +194,8 @@ class WebPluginDelegatePepper : public webkit_glue::WebPluginDelegate { gfx::Size* page_dimensions); NPPPrintExtensions* GetPrintExtensions(); + NPPFindExtensions* GetFindExtensions(); + #if defined(OS_WIN) // Compresses the given bitmap as JPEG and draws it into the backing platform // DC (Windows-only). @@ -246,6 +254,9 @@ class WebPluginDelegatePepper : public webkit_glue::WebPluginDelegate { CommandBufferProxy* command_buffer_; #endif + // The id of the current find operation, or -1 if none is in process. + int find_identifier_; + // Tells the browser out-of-band where the nested delegate lives on // the page. void SendNestedDelegateGeometryToBrowser(const gfx::Rect& window_rect, |