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

Unified Diff: content/browser/android/content_view_core_impl.h

Issue 292113008: Plumbing for browser process to access text surrounding selection. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@adb_install_humans
Patch Set: Created 6 years, 7 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/browser/android/content_view_core_impl.h
diff --git a/content/browser/android/content_view_core_impl.h b/content/browser/android/content_view_core_impl.h
index 37527891754bab7d8d5e38bcd088baca11519a7d..e73635e4e107a272c7640e4887069b178c886c3a 100644
--- a/content/browser/android/content_view_core_impl.h
+++ b/content/browser/android/content_view_core_impl.h
@@ -223,6 +223,10 @@ class ContentViewCoreImpl : public ContentViewCore,
jint GetCurrentRenderProcessId(JNIEnv* env, jobject obj);
+ void TextSurroundingSelectionRequest(JNIEnv* env,
+ jobject obj,
+ jint max_length);
+
// --------------------------------------------------------------------------
// Public methods that call to Java via JNI
// --------------------------------------------------------------------------
@@ -294,6 +298,10 @@ class ContentViewCoreImpl : public ContentViewCore,
void SetAccessibilityEnabledInternal(bool enabled);
+ void OnTextSurroundingSelectionResponse(const base::string16& content,
+ unsigned start_offset,
+ unsigned end_offset);
+
// --------------------------------------------------------------------------
// Methods called from native code
// --------------------------------------------------------------------------
« no previous file with comments | « no previous file | content/browser/android/content_view_core_impl.cc » ('j') | content/browser/frame_host/render_frame_host_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698