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

Unified Diff: ui/gfx/render_text_mac.h

Issue 2348143003: MacViews: Implement Force Touch/Mac dictionary lookup for Textfields. (Closed)
Patch Set: --- 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 7c1d67e9314adb3941cb2c0177faccf4c10b4f88..8ee4f970e2643a4d59369b747906bddceaa8a341 100644
--- a/ui/gfx/render_text_mac.h
+++ b/ui/gfx/render_text_mac.h
@@ -109,6 +109,10 @@ class GFX_EXPORT RenderTextMac : public RenderText {
// Clears cached style. Doesn't update display text (e.g. eliding).
void InvalidateStyle();
+ // RenderText:
+ bool GetStyledStringForRange(const Range& range,
+ NativeStyledString str) const override;
+
// The Core Text line of text. Created by |EnsureLayout()|.
base::ScopedCFTypeRef<CTLineRef> line_;

Powered by Google App Engine
This is Rietveld 408576698