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

Side by Side 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 unified diff | Download patch
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698