Index: ui/views/controls/touch/touch_hud_drawer.h |
diff --git a/ui/views/controls/touch/touch_hud_drawer.h b/ui/views/controls/touch/touch_hud_drawer.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..4a6a6ebfe6f030e0c0324e33ec90aa17af64c405 |
--- /dev/null |
+++ b/ui/views/controls/touch/touch_hud_drawer.h |
@@ -0,0 +1,39 @@ |
+// Copyright 2016 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef UI_VIEWS_CONTROLS_TOUCH_TOUCH_HUD_DRAWER_H_ |
+#define UI_VIEWS_CONTROLS_TOUCH_TOUCH_HUD_DRAWER_H_ |
+ |
+#include <map> |
+ |
+#include "base/macros.h" |
+#include "ui/views/views_export.h" |
+ |
+namespace ui { |
+class TouchEvent; |
+} |
+ |
+namespace views { |
+class TouchPointView; |
+class Widget; |
+ |
+class VIEWS_EXPORT TouchHudDrawer { |
+ public: |
+ TouchHudDrawer(); |
+ ~TouchHudDrawer(); |
+ |
+ // Called to clear touch points and traces from the screen. |
+ void Clear(); |
+ |
+ void HandleTouchEvent(const ui::TouchEvent* event, Widget* parent_widget); |
+ |
+ private: |
+ std::map<int, TouchPointView*> points_; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(TouchHudDrawer); |
+}; |
+ |
+} // namespace views |
+ |
+#endif // UI_VIEWS_CONTROLS_TOUCH_TOUCH_HUD_DRAWER_H_ |