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

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: update to use websurroundingtext 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/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 269ac88443973362cedc8b467da532d2cd14b51e..a751e69a8e3750251deef8035fc7de10febe47cd 100644
--- a/content/browser/android/content_view_core_impl.h
+++ b/content/browser/android/content_view_core_impl.h
@@ -224,6 +224,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
// --------------------------------------------------------------------------
@@ -295,6 +299,10 @@ class ContentViewCoreImpl : public ContentViewCore,
void SetAccessibilityEnabledInternal(bool enabled);
+ void OnTextSurroundingSelectionResponse(const base::string16& content,
+ int start_offset,
+ int 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/android/content_view_core_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698