Index: ui/views/controls/textfield/views_text_context_menu_mac.h |
diff --git a/ui/views/controls/textfield/views_text_context_menu_mac.h b/ui/views/controls/textfield/views_text_context_menu_mac.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..bfc6692b34c45d4ffeb4bc34380a1c31d0f727da |
--- /dev/null |
+++ b/ui/views/controls/textfield/views_text_context_menu_mac.h |
@@ -0,0 +1,30 @@ |
+// 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.
|
+// 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_MAC_H_ |
+#define UI_VIEWS_CONTROLS_TEXTFIELD_VIEWS_TEXT_CONTEXT_MENU_MAC_H_ |
+ |
+#include "ui/views/controls/textfield/views_text_context_menu.h" |
+ |
+namespace views { |
+class Textfield; |
+class View; |
+ |
+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.
|
+ public: |
+ ViewsTextContextMenuMac(Textfield* textfield); |
tapted
2016/07/22 03:06:42
explicit
spqchan
2016/12/12 19:32:28
Done.
|
+ ~ViewsTextContextMenuMac() override; |
+ |
+ void UpdateContextMenu(ui::SimpleMenuModel* menu) override; |
+ |
+ void StartSpeaking() override; |
+ |
+ private: |
+ Textfield* textfield_; // weak |
+ std::unique_ptr<TextContextMenu> menu_; |
tapted
2016/07/22 03:06:43
value member should work
spqchan
2016/12/12 19:32:28
Done.
|
+}; |
tapted
2016/07/22 03:06:43
nit: DISALLOW_COPY..etc
spqchan
2016/12/12 19:32:28
Done.
|
+ |
+} // namespace views |
+ |
+#endif // UI_VIEWS_CONTROLS_TEXTFIELD_VIEWS_TEXT_CONTEXT_MENU_MAC_H_ |