OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
tapted
2016/07/22 03:06:43
2016
spqchan
2016/12/12 19:32:28
Done.
| |
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_MAC_H_ | |
6 #define UI_VIEWS_CONTROLS_TEXTFIELD_VIEWS_TEXT_CONTEXT_MENU_MAC_H_ | |
7 | |
8 #include "ui/views/controls/textfield/views_text_context_menu.h" | |
9 | |
10 namespace views { | |
11 class Textfield; | |
12 class View; | |
13 | |
14 class VIEWS_EXPORT ViewsTextContextMenuMac : public ViewsTextContextMenu { | |
tapted
2016/07/22 03:06:42
I'd probably call this ViewsTextServicesMenuMac an
spqchan
2016/12/12 19:32:28
Done.
| |
15 public: | |
16 ViewsTextContextMenuMac(Textfield* textfield); | |
tapted
2016/07/22 03:06:42
explicit
spqchan
2016/12/12 19:32:28
Done.
| |
17 ~ViewsTextContextMenuMac() override; | |
18 | |
19 void UpdateContextMenu(ui::SimpleMenuModel* menu) override; | |
20 | |
21 void StartSpeaking() override; | |
22 | |
23 private: | |
24 Textfield* textfield_; // weak | |
25 std::unique_ptr<TextContextMenu> menu_; | |
tapted
2016/07/22 03:06:43
value member should work
spqchan
2016/12/12 19:32:28
Done.
| |
26 }; | |
tapted
2016/07/22 03:06:43
nit: DISALLOW_COPY..etc
spqchan
2016/12/12 19:32:28
Done.
| |
27 | |
28 } // namespace views | |
29 | |
30 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_VIEWS_TEXT_CONTEXT_MENU_MAC_H_ | |
OLD | NEW |