Revert 224458 "Enabling MediaStreamInfoBarTest.DenyingCameraDoes..."
[chromium-blink-merge.git] / ash / touch / touch_hud_projection.h
blob29fddc3983737254607484ae145295b8f25d8511
1 // Copyright 2013 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.
5 #ifndef ASH_TOUCH_TOUCH_HUD_PROJECTION_H_
6 #define ASH_TOUCH_TOUCH_HUD_PROJECTION_H_
8 #include <map>
10 #include "ash/touch/touch_observer_hud.h"
12 namespace ash {
13 namespace internal {
15 class TouchPointView;
17 // A heads-up display to show active touch points on the screen. As a derivative
18 // of TouchObserverHUD, objects of this class manage their own lifetime.
19 class TouchHudProjection : public TouchObserverHUD {
20 public:
21 explicit TouchHudProjection(aura::RootWindow* initial_root);
23 // Overriden from TouchObserverHUD.
24 virtual void Clear() OVERRIDE;
26 private:
27 virtual ~TouchHudProjection();
29 // Overriden from TouchObserverHUD.
30 virtual void OnTouchEvent(ui::TouchEvent* event) OVERRIDE;
31 virtual void SetHudForRootWindowController(
32 RootWindowController* controller) OVERRIDE;
33 virtual void UnsetHudForRootWindowController(
34 RootWindowController* controller) OVERRIDE;
36 std::map<int, TouchPointView*> points_;
38 DISALLOW_COPY_AND_ASSIGN(TouchHudProjection);
41 } // namespace internal
42 } // namespace ash
44 #endif // ASH_TOUCH_TOUCH_HUD_PROJECTION_H_