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

Unified Diff: content/public/browser/web_contents_delegate.h

Issue 10905058: Upstream the Android port find-in-page feature. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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
Index: content/public/browser/web_contents_delegate.h
diff --git a/content/public/browser/web_contents_delegate.h b/content/public/browser/web_contents_delegate.h
index 5a339aec3d06e456acf4cd0e72c0c92ab85b4295..420b41a8689a6962aa4ca4395becd1bf339c261f 100644
--- a/content/public/browser/web_contents_delegate.h
+++ b/content/public/browser/web_contents_delegate.h
@@ -18,6 +18,7 @@
#include "content/public/common/window_container_type.h"
#include "third_party/skia/include/core/SkColor.h"
#include "ui/gfx/native_widget_types.h"
+#include "ui/gfx/rect_f.h"
#include "webkit/glue/window_open_disposition.h"
class FilePath;
@@ -394,6 +395,15 @@ class CONTENT_EXPORT WebContentsDelegate {
int active_match_ordinal,
bool final_update) {}
+#if defined(OS_ANDROID)
+ // Provides the rects of the current find-in-page matches.
+ // Sent as a reply to RequestFindMatchRects.
+ virtual void GetFindMatchRectsReply(WebContents* web_contents,
jam 2012/09/04 16:39:09 nit: get rid of the "Get" in the method name, it's
Leandro GraciĆ” Gil 2012/09/04 18:25:50 Done.
+ int version,
+ const std::vector<gfx::RectF>& rects,
+ const gfx::RectF& active_rect) {}
+#endif
+
// Invoked when the preferred size of the contents has been changed.
virtual void UpdatePreferredSize(WebContents* web_contents,
const gfx::Size& pref_size) {}

Powered by Google App Engine
This is Rietveld 408576698