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

Unified Diff: ui/views/word_lookup_client.h

Issue 2164483006: [MacViews] Implemented text context menu (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 3 years, 10 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
« no previous file with comments | « ui/views/controls/views_text_services_context_menu_mac.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/word_lookup_client.h
diff --git a/ui/views/word_lookup_client.h b/ui/views/word_lookup_client.h
index d9c200f5566728032778cb9e267d42a1d74d07fb..f7c744b14904a9c13166e9d5900bc31751284f6f 100644
--- a/ui/views/word_lookup_client.h
+++ b/ui/views/word_lookup_client.h
@@ -20,11 +20,20 @@ class VIEWS_EXPORT WordLookupClient {
// Retrieves the word displayed at the given |point| along with its styling
// information. |point| is in the coordinate system of the view. If no word is
// displayed at the point, returns a nearby word. |baseline_point| should
- // correspond to the baseline point of the leftmost glyph of the |word| in the
+ // correspond to the baseline point of the leftmost glyph of the word in the
// view's coordinates. Returns false, if no word can be retrieved.
- virtual bool GetDecoratedWordAtPoint(const gfx::Point& point,
- gfx::DecoratedText* decorated_word,
- gfx::Point* baseline_point) = 0;
+ virtual bool GetDecoratedWordAndBaselineAtPoint(
+ const gfx::Point& point,
+ gfx::DecoratedText* decorated_word,
+ gfx::Point* baseline_point) = 0;
+
+ // Retrieves the text that is currently selected with its styling
+ // information. |baseline_point| should correspond to the baseline point of
+ // the leftmost glyph of the word in the view's coordinates. Returns
+ // false, if no text can be retrieved.
+ virtual bool GetDecoratedTextAndBaselineFromSelection(
+ gfx::DecoratedText* decorated_text,
+ gfx::Point* baseline_point) = 0;
protected:
virtual ~WordLookupClient() {}
« no previous file with comments | « ui/views/controls/views_text_services_context_menu_mac.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698