OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef ASH_TOUCH_TOUCH_HUD_DEBUG_H_ | 5 #ifndef ASH_TOUCH_TOUCH_HUD_DEBUG_H_ |
6 #define ASH_TOUCH_TOUCH_HUD_DEBUG_H_ | 6 #define ASH_TOUCH_TOUCH_HUD_DEBUG_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 | 9 |
10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
11 #include "ash/touch/touch_observer_hud.h" | 11 #include "ash/touch/touch_observer_hud.h" |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "base/values.h" | 13 #include "base/values.h" |
14 | 14 |
15 namespace views { | 15 namespace views { |
16 class Label; | 16 class Label; |
17 class View; | 17 class View; |
18 } | 18 } |
19 | 19 |
20 namespace ash { | 20 namespace ash { |
21 namespace internal { | |
22 | |
23 class TouchHudCanvas; | 21 class TouchHudCanvas; |
24 class TouchLog; | 22 class TouchLog; |
25 | 23 |
26 // A heads-up display to show touch traces on the screen and log touch events. | 24 // A heads-up display to show touch traces on the screen and log touch events. |
27 // As a derivative of TouchObserverHUD, objects of this class manage their own | 25 // As a derivative of TouchObserverHUD, objects of this class manage their own |
28 // lifetime. | 26 // lifetime. |
29 class ASH_EXPORT TouchHudDebug : public TouchObserverHUD { | 27 class ASH_EXPORT TouchHudDebug : public TouchObserverHUD { |
30 public: | 28 public: |
31 enum Mode { | 29 enum Mode { |
32 FULLSCREEN, | 30 FULLSCREEN, |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 | 72 |
75 scoped_ptr<TouchLog> touch_log_; | 73 scoped_ptr<TouchLog> touch_log_; |
76 | 74 |
77 TouchHudCanvas* canvas_; | 75 TouchHudCanvas* canvas_; |
78 views::View* label_container_; | 76 views::View* label_container_; |
79 views::Label* touch_labels_[kMaxTouchPoints]; | 77 views::Label* touch_labels_[kMaxTouchPoints]; |
80 | 78 |
81 DISALLOW_COPY_AND_ASSIGN(TouchHudDebug); | 79 DISALLOW_COPY_AND_ASSIGN(TouchHudDebug); |
82 }; | 80 }; |
83 | 81 |
84 } // namespace internal | |
85 } // namespace ash | 82 } // namespace ash |
86 | 83 |
87 #endif // ASH_TOUCH_TOUCH_HUD_DEBUG_H_ | 84 #endif // ASH_TOUCH_TOUCH_HUD_DEBUG_H_ |
OLD | NEW |