OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2016 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_CONTROLS_TOUCH_TOUCH_HUD_DRAWER_H_ | |
sky
2016/07/06 16:31:30
This code is specific to ash, and not something I
riajiang
2016/07/06 20:30:43
The touch hud app would be under mash/ and needs t
sky
2016/07/07 00:00:42
Ah, I see now. How about ash/touch_hud, with it's
riajiang
2016/07/11 16:26:03
Done.
| |
6 #define UI_VIEWS_CONTROLS_TOUCH_TOUCH_HUD_DRAWER_H_ | |
7 | |
8 #include <map> | |
9 | |
10 #include "base/macros.h" | |
11 #include "ui/views/views_export.h" | |
12 | |
13 namespace ash { | |
14 class TouchHudProjectionTest; | |
15 } | |
16 | |
17 namespace ui { | |
18 class LocatedEvent; | |
19 } | |
20 | |
21 namespace views { | |
22 class TouchPointView; | |
23 class Widget; | |
24 | |
25 class VIEWS_EXPORT TouchHudDrawer { | |
sky
2016/07/06 16:31:30
Add description.
riajiang
2016/07/06 20:30:43
Done.
| |
26 public: | |
27 TouchHudDrawer(); | |
28 ~TouchHudDrawer(); | |
29 | |
30 // Called to clear touch points and traces from the screen. | |
31 void Clear(); | |
32 | |
33 void HandleTouchEvent(const ui::LocatedEvent* event, Widget* parent_widget); | |
sky
2016/07/06 16:31:30
Add description. In general please add comments fo
riajiang
2016/07/06 20:30:43
Done.
| |
34 | |
35 private: | |
36 friend class ash::TouchHudProjectionTest; | |
37 | |
38 std::map<int, TouchPointView*> points_; | |
39 | |
40 DISALLOW_COPY_AND_ASSIGN(TouchHudDrawer); | |
41 }; | |
42 | |
43 } // namespace views | |
44 | |
45 #endif // UI_VIEWS_CONTROLS_TOUCH_TOUCH_HUD_DRAWER_H_ | |
OLD | NEW |