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

Unified Diff: ui/views/view.h

Issue 2348143003: MacViews: Implement Force Touch/Mac dictionary lookup for Textfields. (Closed)
Patch Set: Fix compile. 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/views/view.h
diff --git a/ui/views/view.h b/ui/views/view.h
index 55cc02bb54da4eaa205df9f8adc17d5f84245279..aa903d99ae0c35576acccad8189ee3452a4413ef 100644
--- a/ui/views/view.h
+++ b/ui/views/view.h
@@ -49,6 +49,7 @@ namespace gfx {
class Canvas;
class Insets;
class Path;
+class RenderText;
class Transform;
}
@@ -573,6 +574,11 @@ class VIEWS_EXPORT View : public ui::LayerDelegate,
// NULL.
virtual View* GetTooltipHandlerForPoint(const gfx::Point& point);
+ // Returns the RenderText instance corresponding to the view. Currently, only
+ // views which have at most one RenderText instance, should implement this.
+ virtual const gfx::RenderText* GetRenderText() const;
+ gfx::RenderText* GetRenderText();
+
// Return the cursor that should be used for this view or the default cursor.
// The event location is in the receiver's coordinate system. The caller is
// responsible for managing the lifetime of the returned object, though that

Powered by Google App Engine
This is Rietveld 408576698