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

Unified Diff: ui/gfx/render_text_mac.h

Issue 2348143003: MacViews: Implement Force Touch/Mac dictionary lookup for Textfields. (Closed)
Patch Set: Rebase. Created 4 years, 3 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
Index: ui/gfx/render_text_mac.h
diff --git a/ui/gfx/render_text_mac.h b/ui/gfx/render_text_mac.h
index 9b44a0627a6835e2d2b57535f21902bab6ff6fbf..979b37c36b8b3f6e437db8a752a9d5e69f424024 100644
--- a/ui/gfx/render_text_mac.h
+++ b/ui/gfx/render_text_mac.h
@@ -108,6 +108,10 @@ class GFX_EXPORT RenderTextMac : public RenderText {
// Clears cached style. Doesn't update display text (e.g. eliding).
void InvalidateStyle();
+ // RenderText:
+ bool GetDecoratedTextForRange(const Range& range,
+ DecoratedText* decorated_text) const override;
+
// The Core Text line of text. Created by |EnsureLayout()|.
base::ScopedCFTypeRef<CTLineRef> line_;

Powered by Google App Engine
This is Rietveld 408576698