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

Unified Diff: content/public/browser/android/content_view_core.h

Issue 322203002: Add an interface to gather text surrounding the selection. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@surroundings-patch-5
Patch Set: Comments. Created 6 years, 6 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/android/content_view_core.h
diff --git a/content/public/browser/android/content_view_core.h b/content/public/browser/android/content_view_core.h
index 1501985b8a53bfa15439eb84ada178e1b8f34d63..75746d6e97b106d66b5caa57861e8a85b81e7e9d 100644
--- a/content/public/browser/android/content_view_core.h
+++ b/content/public/browser/android/content_view_core.h
@@ -8,8 +8,10 @@
#include <jni.h>
#include "base/android/scoped_java_ref.h"
+#include "base/basictypes.h"
jdduke (slow) 2014/06/17 22:43:26 I don't think you need to add this include.
donnd 2014/06/18 00:09:58 Done.
#include "base/callback.h"
#include "content/common/content_export.h"
+#include "content/public/browser/android/text_surroundings_delegate.h"
#include "content/public/browser/navigation_controller.h"
#include "ui/gfx/rect.h"
@@ -68,6 +70,11 @@ class CONTENT_EXPORT ContentViewCore {
const gfx::Vector2dF& scroll_offset,
float page_scale_factor)> UpdateFrameInfoCallback;
+ // Text surrounding selection.
+ virtual void SetTextSurroundingsDelegate(TextSurroundingsDelegate* delegate)
+ = 0;
jdduke (slow) 2014/06/17 22:43:26 "= 0;" should be "OVERRIDE;".
donnd 2014/06/18 00:09:59 Really? The compiler complains about that. Moot
+ virtual void RequestTextSurroundingSelection(int max_length) const = 0;
+
protected:
virtual ~ContentViewCore() {};
};

Powered by Google App Engine
This is Rietveld 408576698