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

Unified Diff: ash/touch_hud/touch_hud_renderer.h

Issue 2153493002: Revert of ash: Refactor touch hud drawing to ash/touch_hud. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/touch_hud/ash_touch_hud_export.h ('k') | ash/touch_hud/touch_hud_renderer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/touch_hud/touch_hud_renderer.h
diff --git a/ash/touch_hud/touch_hud_renderer.h b/ash/touch_hud/touch_hud_renderer.h
deleted file mode 100644
index e1b80865929d6da6be71ee90f80d07cf007a1e8b..0000000000000000000000000000000000000000
--- a/ash/touch_hud/touch_hud_renderer.h
+++ /dev/null
@@ -1,51 +0,0 @@
-// 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 ASH_TOUCH_HUD_TOUCH_HUD_RENDERER_H_
-#define ASH_TOUCH_HUD_TOUCH_HUD_RENDERER_H_
-
-#include <map>
-
-#include "ash/touch_hud/ash_touch_hud_export.h"
-#include "base/macros.h"
-
-namespace ui {
-class LocatedEvent;
-}
-
-namespace views {
-class Widget;
-}
-
-namespace ash {
-class TouchHudProjectionTest;
-class TouchPointView;
-
-// Handles touch events to draw out touch points accordingly.
-class ASH_TOUCH_HUD_EXPORT TouchHudRenderer {
- public:
- explicit TouchHudRenderer(views::Widget* parent_widget);
- ~TouchHudRenderer();
-
- // Called to clear touch points and traces from the screen.
- void Clear();
-
- // Receives a touch event and draws its touch point.
- void HandleTouchEvent(const ui::LocatedEvent& event);
-
- private:
- friend class TouchHudProjectionTest;
-
- // The parent widget that all touch points would be drawn in.
- views::Widget* parent_widget_;
-
- // A map of touch ids to TouchPointView.
- std::map<int, TouchPointView*> points_;
-
- DISALLOW_COPY_AND_ASSIGN(TouchHudRenderer);
-};
-
-} // namespace ash
-
-#endif // ASH_TOUCH_HUD_TOUCH_HUD_RENDERER_H_
« no previous file with comments | « ash/touch_hud/ash_touch_hud_export.h ('k') | ash/touch_hud/touch_hud_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698