| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 | 56 |
| 57 private: | 57 private: |
| 58 ~TouchHudDebug() override; | 58 ~TouchHudDebug() override; |
| 59 | 59 |
| 60 void SetMode(Mode mode); | 60 void SetMode(Mode mode); |
| 61 | 61 |
| 62 void UpdateTouchPointLabel(int index); | 62 void UpdateTouchPointLabel(int index); |
| 63 | 63 |
| 64 // Overriden from TouchObserverHUD. | 64 // Overriden from TouchObserverHUD. |
| 65 void OnTouchEvent(ui::TouchEvent* event) override; | 65 void OnTouchEvent(ui::TouchEvent* event) override; |
| 66 void OnDisplayMetricsChanged(const gfx::Display& display, | 66 void OnDisplayMetricsChanged(const display::Display& display, |
| 67 uint32_t metrics) override; | 67 uint32_t metrics) override; |
| 68 void SetHudForRootWindowController(RootWindowController* controller) override; | 68 void SetHudForRootWindowController(RootWindowController* controller) override; |
| 69 void UnsetHudForRootWindowController( | 69 void UnsetHudForRootWindowController( |
| 70 RootWindowController* controller) override; | 70 RootWindowController* controller) override; |
| 71 | 71 |
| 72 static const int kMaxTouchPoints = 32; | 72 static const int kMaxTouchPoints = 32; |
| 73 | 73 |
| 74 Mode mode_; | 74 Mode mode_; |
| 75 | 75 |
| 76 std::unique_ptr<TouchLog> touch_log_; | 76 std::unique_ptr<TouchLog> touch_log_; |
| 77 | 77 |
| 78 TouchHudCanvas* canvas_; | 78 TouchHudCanvas* canvas_; |
| 79 views::View* label_container_; | 79 views::View* label_container_; |
| 80 views::Label* touch_labels_[kMaxTouchPoints]; | 80 views::Label* touch_labels_[kMaxTouchPoints]; |
| 81 | 81 |
| 82 DISALLOW_COPY_AND_ASSIGN(TouchHudDebug); | 82 DISALLOW_COPY_AND_ASSIGN(TouchHudDebug); |
| 83 }; | 83 }; |
| 84 | 84 |
| 85 } // namespace ash | 85 } // namespace ash |
| 86 | 86 |
| 87 #endif // ASH_TOUCH_TOUCH_HUD_DEBUG_H_ | 87 #endif // ASH_TOUCH_TOUCH_HUD_DEBUG_H_ |
| OLD | NEW |