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

Side by Side Diff: content/public/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: Comments. 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_PUBLIC_BROWSER_ANDROID_TEXT_SURROUNDINGS_DELEGATE_H_
4 #define CONTENT_PUBLIC_BROWSER_ANDROID_TEXT_SURROUNDINGS_DELEGATE_H_
5
6 #include "base/strings/string16.h"
7
8 namespace content {
9
10 // Defines an interface for a delegate to receive text that surrounds the
11 // selection.
12 class TextSurroundingsDelegate {
jdduke (slow) 2014/06/17 22:43:26 I think you'll want to make this: class CONTENT_E
donnd 2014/06/18 00:09:59 Done.
13 public:
14 virtual void OnTextSurroundingSelectionResponse(const base::string16& content,
15 int start_offset,
16 int end_offset) = 0;
17 protected:
18 virtual ~TextSurroundingsDelegate() {}
19 };
20
21 } // namespace content
jdduke (slow) 2014/06/17 22:43:26 Nit: Newline before the #endif.
donnd 2014/06/18 00:09:59 Done.
22 #endif // CONTENT_PUBLIC_BROWSER_ANDROID_TEXT_SURROUNDINGS_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698