Index: ui/views/controls/textfield/views_text_context_menu.h |
diff --git a/ui/views/controls/textfield/views_text_context_menu.h b/ui/views/controls/textfield/views_text_context_menu.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..0ced681fd717e09e6fc01f31d1e8ae7d016a5a2a |
--- /dev/null |
+++ b/ui/views/controls/textfield/views_text_context_menu.h |
@@ -0,0 +1,27 @@ |
+// Copyright 2016 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef UI_VIEWS_CONTROLS_TEXTFIELD_VIEWS_TEXT_CONTEXT_MENU_H_ |
+#define UI_VIEWS_CONTROLS_TEXTFIELD_VIEWS_TEXT_CONTEXT_MENU_H_ |
+ |
+#include "ui/base/cocoa/text_context_menu.h" |
+#include "ui/base/models/simple_menu_model.h" |
+#include "ui/views/views_export.h" |
+ |
+namespace views { |
+class Textfield; |
+class View; |
+ |
+class VIEWS_EXPORT ViewsTextContextMenu : public TextContextMenu::Delegate { |
+ public: |
+ virtual ~ViewsTextContextMenu() {} |
+ |
+ static ViewsTextContextMenu* Create(Textfield* textfield); |
+ |
+ virtual void UpdateContextMenu(ui::SimpleMenuModel* menu) = 0; |
tapted
2016/07/22 03:06:42
Can |menu| just be passed in via |Create|?
spqchan
2016/12/12 19:32:28
Done.
|
+}; |
+ |
+} // namespace views |
+ |
+#endif // UI_VIEWS_CONTROLS_TEXTFIELD_VIEWS_TEXT_CONTEXT_MENU_H_ |