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

Unified Diff: ui/views/controls/textfield/textfield.h

Issue 2164483006: [MacViews] Implemented text context menu (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ditto Created 4 years, 5 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/controls/textfield/textfield.h
diff --git a/ui/views/controls/textfield/textfield.h b/ui/views/controls/textfield/textfield.h
index ac1f0cf6df1655ae16a3883e072a97249b5b7953..6b778d0e4e7a8ee7d13819e753ef4d8956510e74 100644
--- a/ui/views/controls/textfield/textfield.h
+++ b/ui/views/controls/textfield/textfield.h
@@ -28,6 +28,7 @@
#include "ui/gfx/text_constants.h"
#include "ui/views/context_menu_controller.h"
#include "ui/views/controls/textfield/textfield_model.h"
+#include "ui/views/controls/textfield/views_text_context_menu.h"
#include "ui/views/drag_controller.h"
#include "ui/views/view.h"
@@ -482,6 +483,8 @@ class VIEWS_EXPORT Textfield : public View,
std::unique_ptr<ui::SimpleMenuModel> context_menu_contents_;
std::unique_ptr<views::MenuRunner> context_menu_runner_;
+ std::unique_ptr<ViewsTextContextMenu> text_context_menu_;
+
// Used to bind callback functions to this object.
base::WeakPtrFactory<Textfield> weak_ptr_factory_;

Powered by Google App Engine
This is Rietveld 408576698