OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef UI_VIEWS_CONTROLS_TEXTFIELD_VIEWS_TEXT_CONTEXT_MENU_H_ | |
6 #define UI_VIEWS_CONTROLS_TEXTFIELD_VIEWS_TEXT_CONTEXT_MENU_H_ | |
7 | |
8 #include "ui/base/cocoa/text_context_menu.h" | |
9 #include "ui/base/models/simple_menu_model.h" | |
10 #include "ui/views/views_export.h" | |
11 | |
12 namespace views { | |
13 class Textfield; | |
14 class View; | |
15 | |
16 class VIEWS_EXPORT ViewsTextContextMenu : public TextContextMenu::Delegate { | |
17 public: | |
18 virtual ~ViewsTextContextMenu() {} | |
19 | |
20 static ViewsTextContextMenu* Create(Textfield* textfield); | |
21 | |
22 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.
| |
23 }; | |
24 | |
25 } // namespace views | |
26 | |
27 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_VIEWS_TEXT_CONTEXT_MENU_H_ | |
OLD | NEW |