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

Unified Diff: ui/views/view.h

Issue 2348143003: MacViews: Implement Force Touch/Mac dictionary lookup for Textfields. (Closed)
Patch Set: Address review. 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
« no previous file with comments | « ui/views/controls/textfield/textfield_model.cc ('k') | ui/views/view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
sky 2016/09/26 16:20:18 Can you outline why this needs to be exposed on Vi
karandeepb 2016/09/27 01:09:11 So the problem we want to solve is given a views::
+ 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
« no previous file with comments | « ui/views/controls/textfield/textfield_model.cc ('k') | ui/views/view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698