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

Unified Diff: ui/views/controls/textfield/views_text_context_menu_mac.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/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_

Powered by Google App Engine
This is Rietveld 408576698