diff options
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, |