summaryrefslogtreecommitdiffstats
path: root/ui/views
diff options
context:
space:
mode:
Diffstat (limited to 'ui/views')
-rw-r--r--ui/views/controls/textfield/native_textfield_views.cc2
-rw-r--r--ui/views/controls/textfield/native_textfield_views.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/ui/views/controls/textfield/native_textfield_views.cc b/ui/views/controls/textfield/native_textfield_views.cc
index b6b0d09..a86e5bc 100644
--- a/ui/views/controls/textfield/native_textfield_views.cc
+++ b/ui/views/controls/textfield/native_textfield_views.cc
@@ -424,7 +424,7 @@ bool NativeTextfieldViews::DrawsHandles() {
return false;
}
-void NativeTextfieldViews::OpenContextMenu(const gfx::Point anchor) {
+void NativeTextfieldViews::OpenContextMenu(const gfx::Point& anchor) {
touch_selection_controller_.reset();
ShowContextMenu(anchor, false);
}
diff --git a/ui/views/controls/textfield/native_textfield_views.h b/ui/views/controls/textfield/native_textfield_views.h
index 23cd6f2..7e7dd28 100644
--- a/ui/views/controls/textfield/native_textfield_views.h
+++ b/ui/views/controls/textfield/native_textfield_views.h
@@ -89,7 +89,7 @@ class VIEWS_EXPORT NativeTextfieldViews : public View,
virtual void ConvertPointToScreen(gfx::Point* point) OVERRIDE;
virtual void ConvertPointFromScreen(gfx::Point* point) OVERRIDE;
virtual bool DrawsHandles() OVERRIDE;
- virtual void OpenContextMenu(const gfx::Point anchor) OVERRIDE;
+ virtual void OpenContextMenu(const gfx::Point& anchor) OVERRIDE;
// ContextMenuController overrides:
virtual void ShowContextMenuForView(View* source,