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

Side by Side Diff: content/browser/android/text_surroundings_delegate.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: 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Delegate for receiving a response containing text surrounding the selection.
2
3 #ifndef CONTENT_BROWSER_ANDROID_TEXT_SURROUNDINGS_DELEGATE_H_
4 #define CONTENT_BROWSER_ANDROID_TEXT_SURROUNDINGS_DELEGATE_H_
5
6 namespace content {
7
8 // Defines an interface for a delegate to receive text that surrounds the
9 // selection.
10 class TextSurroundingsDelegate {
11 public:
12 virtual void OnTextSurroundingSelectionResponse(const base::string16& content,
13 int start_offset,
14 int end_offset) = 0;
15 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
16 virtual ~TextSurroundingsDelegate() {}
17 };
18
19 } // namespace content
20 #endif // CONTENT_BROWSER_ANDROID_TEXT_SURROUNDINGS_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698