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

Side by Side Diff: ui/touch_selection/touch_selection_controller_aura.h

Issue 1046783002: wip: Aura-specific implementation of unified touch selection: touch_selection (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Moving the responsibility for showing the menu into the client. Created 5 years, 8 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_TOUCH_SELECTION_TOUCH_SELECTION_CONTROLLER_AURA_H_
6 #define UI_TOUCH_SELECTION_TOUCH_SELECTION_CONTROLLER_AURA_H_
7
8 #include "base/timer/timer.h"
9 #include "ui/events/event_handler.h"
10 #include "ui/events/event_target.h"
11 #include "ui/touch_selection/touch_selection_controller_impl.h"
12
13 namespace aura {
14 class Window;
15 }
16
17 namespace ui {
18 class MotionEventAura;
19 class TouchEvent;
20 class TouchSelectionControllerAuraTestApi;
21
22 // TODO: remove export
23 // Aura implementation of |TouchSelectionController|.
24 class UI_TOUCH_SELECTION_EXPORT TouchSelectionControllerAura
25 : public TouchSelectionControllerImpl,
26 public EventHandler {
27 public:
28 TouchSelectionControllerAura(
29 TouchSelectionControllerClient* client,
30 base::TimeDelta tap_timeout,
31 float tap_slop,
32 bool show_on_tap_for_empty_editable);
33
34 ~TouchSelectionControllerAura() override;
35
36 private:
37 friend class TouchSelectionControllerAuraTestApi;
38 class EnvPreTargetHandler;
39
40 // TouchSelectionControllerImpl:
41 void ActivateInsertion() override;
42 void DeactivateInsertion() override;
43 void ActivateSelection() override;
44 void DeactivateSelection() override;
45
46 // EventHandler:
47 void OnTouchEvent(TouchEvent* event) override;
48 void OnGestureEvent(GestureEvent* event) override;
49
50 scoped_ptr<MotionEventAura> motion_event_;
51 scoped_ptr<EnvPreTargetHandler> env_pre_target_handler_;
52
53 TouchSelectionControllerAuraTestApi* test_api_;
54
55 DISALLOW_COPY_AND_ASSIGN(TouchSelectionControllerAura);
56 };
57
58 } // namespace ui
59
60 #endif // UI_TOUCH_SELECTION_TOUCH_SELECTION_CONTROLLER_AURA_H_
OLDNEW
« no previous file with comments | « ui/touch_selection/touch_selection_controller_android.cc ('k') | ui/touch_selection/touch_selection_controller_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698