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

Side by Side Diff: ui/views/touchui/touch_selection_menu_runner_views.h

Issue 698253004: Reland: Implement Aura side of unified touch text selection for contents (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased after addition of touch_handle_orientation file Created 5 years, 9 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 2015 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_TOUCHUI_TOUCH_SELECTION_MENU_RUNNER_VIEWS_H_
6 #define UI_VIEWS_TOUCHUI_TOUCH_SELECTION_MENU_RUNNER_VIEWS_H_
7
8 #include "ui/touch_selection/touch_selection_menu_runner.h"
9 #include "ui/views/touchui/touch_editing_menu.h"
10 #include "ui/views/views_export.h"
11
12 namespace views {
13
14 // Views implementation for TouchSelectionMenuRunner.
15 class VIEWS_EXPORT TouchSelectionMenuRunnerViews
16 : public ui::TouchSelectionMenuRunner,
17 public TouchEditingMenuController {
18 public:
19 TouchSelectionMenuRunnerViews();
20 ~TouchSelectionMenuRunnerViews() override;
sadrul 2015/03/05 12:37:03 indenting looks off
mohsen 2015/03/06 23:10:08 Fixed.
21
22 private:
23 // ui::TouchSelectionMenuRunner:
24 void RunMenu(ui::TouchSelectionMenuClient* client,
25 const gfx::Rect& anchor_rect,
26 const gfx::Size& handle_image_size,
27 aura::Window* context) override;
28 void CloseMenu() override;
29 bool IsRunning() const override;
30
31 // TouchEditingMenuController:
32 bool IsCommandIdEnabled(int command_id) const override;
33 void ExecuteCommand(int command_id, int event_flags) override;
34 void OpenContextMenu() override;
35 void OnMenuClosed(TouchEditingMenuView* menu) override;
36
37 TouchEditingMenuView* menu_;
38 ui::TouchSelectionMenuClient* client_;
39
40 DISALLOW_COPY_AND_ASSIGN(TouchSelectionMenuRunnerViews);
41 };
42
43 } // namespace views
44
45 #endif // UI_VIEWS_TOUCHUI_TOUCH_SELECTION_MENU_RUNNER_VIEWS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698