Index: content/browser/android/text_surroundings_delegate.h |
diff --git a/content/browser/android/text_surroundings_delegate.h b/content/browser/android/text_surroundings_delegate.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..858fb7f807e275990d0847b32143f7615dd1eb8c |
--- /dev/null |
+++ b/content/browser/android/text_surroundings_delegate.h |
@@ -0,0 +1,20 @@ |
+// Delegate for receiving a response containing text surrounding the selection. |
+ |
+#ifndef CONTENT_BROWSER_ANDROID_TEXT_SURROUNDINGS_DELEGATE_H_ |
+#define CONTENT_BROWSER_ANDROID_TEXT_SURROUNDINGS_DELEGATE_H_ |
+ |
+namespace content { |
+ |
+// Defines an interface for a delegate to receive text that surrounds the |
+// selection. |
+class TextSurroundingsDelegate { |
+ public: |
+ virtual void OnTextSurroundingSelectionResponse(const base::string16& content, |
+ int start_offset, |
+ int end_offset) = 0; |
+ protected: |
jdduke (slow)
2014/06/10 22:08:09
This should probably go in the content/public/andr
donnd
2014/06/17 22:23:25
Done.
Looks like the delegate never holds on to t
|
+ virtual ~TextSurroundingsDelegate() {} |
+}; |
+ |
+} // namespace content |
+#endif // CONTENT_BROWSER_ANDROID_TEXT_SURROUNDINGS_DELEGATE_H_ |