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_ |
| 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_ |
OLD | NEW |