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

Unified Diff: chrome/renderer/webplugin_delegate_pepper.h

Issue 1075011: Chrome side of adding search support to Pepper. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 9 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 | « chrome/renderer/render_view.cc ('k') | chrome/renderer/webplugin_delegate_pepper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/webplugin_delegate_pepper.h
===================================================================
--- chrome/renderer/webplugin_delegate_pepper.h (revision 42528)
+++ chrome/renderer/webplugin_delegate_pepper.h (working copy)
@@ -74,6 +74,14 @@
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 @@
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 @@
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 @@
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,
« no previous file with comments | « chrome/renderer/render_view.cc ('k') | chrome/renderer/webplugin_delegate_pepper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698