Index: content/public/browser/android/text_surroundings_delegate.h |
diff --git a/content/public/browser/android/text_surroundings_delegate.h b/content/public/browser/android/text_surroundings_delegate.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..b984bbd77056a17ef9a906ae043e4e5ca6ebeecc |
--- /dev/null |
+++ b/content/public/browser/android/text_surroundings_delegate.h |
@@ -0,0 +1,24 @@ |
+// Delegate for receiving a response containing text surrounding the selection. |
+ |
+#ifndef CONTENT_PUBLIC_BROWSER_ANDROID_TEXT_SURROUNDINGS_DELEGATE_H_ |
+#define CONTENT_PUBLIC_BROWSER_ANDROID_TEXT_SURROUNDINGS_DELEGATE_H_ |
+ |
+#include "base/strings/string16.h" |
+#include "content/common/content_export.h" |
+ |
+namespace content { |
+ |
jdduke (slow)
2014/06/18 20:32:53
I think you can get rid of this class now.
donnd
2014/06/18 21:55:27
Done.
|
+// Defines an interface for a delegate to receive text that surrounds the |
+// selection. |
+class CONTENT_EXPORT TextSurroundingsDelegate { |
+ public: |
+ virtual void OnTextSurroundingSelectionResponse(const base::string16& content, |
+ int start_offset, |
+ int end_offset) = 0; |
+ protected: |
+ virtual ~TextSurroundingsDelegate() {} |
+}; |
+ |
+} // namespace content |
+ |
+#endif // CONTENT_PUBLIC_BROWSER_ANDROID_TEXT_SURROUNDINGS_DELEGATE_H_ |