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

Side by Side Diff: ui/views/controls/touch/touch_hud_drawer.h

Issue 2092343002: Touch HUD app for mustash (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 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_
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 ui {
14 class TouchEvent;
15 }
16
17 namespace views {
18 class TouchPointView;
19 class Widget;
20
21 class VIEWS_EXPORT TouchHudDrawer {
22 public:
23 TouchHudDrawer();
24 ~TouchHudDrawer();
25
26 // Called to clear touch points and traces from the screen.
27 void Clear();
28
29 void HandleTouchEvent(const ui::TouchEvent* event, Widget* parent_widget);
30
31 private:
32 std::map<int, TouchPointView*> points_;
33
34 DISALLOW_COPY_AND_ASSIGN(TouchHudDrawer);
35 };
36
37 } // namespace views
38
39 #endif // UI_VIEWS_CONTROLS_TOUCH_TOUCH_HUD_DRAWER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698