| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 #include "ash/touch/touch_observer_hud.h" | 5 #include "ash/touch/touch_observer_hud.h" |
| 6 | 6 |
| 7 #include "ash/common/ash_switches.h" | 7 #include "ash/ash_switches.h" |
| 8 #include "ash/root_window_controller.h" | 8 #include "ash/root_window_controller.h" |
| 9 #include "ash/shell.h" | 9 #include "ash/shell.h" |
| 10 #include "ash/test/ash_test_base.h" | 10 #include "ash/test/ash_test_base.h" |
| 11 #include "ash/touch/touch_hud_debug.h" | 11 #include "ash/touch/touch_hud_debug.h" |
| 12 #include "ash/touch/touch_hud_projection.h" | 12 #include "ash/touch/touch_hud_projection.h" |
| 13 #include "ash/touch_hud/touch_hud_renderer.h" | 13 #include "ash/touch_hud/touch_hud_renderer.h" |
| 14 #include "base/command_line.h" | 14 #include "base/command_line.h" |
| 15 #include "base/format_macros.h" | 15 #include "base/format_macros.h" |
| 16 #include "base/strings/stringprintf.h" | 16 #include "base/strings/stringprintf.h" |
| 17 #include "ui/aura/window.h" | 17 #include "ui/aura/window.h" |
| (...skipping 545 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 563 | 563 |
| 564 SendTouchEventToInternalHud(ui::ET_TOUCH_PRESSED, gfx::Point(10, 10), 1); | 564 SendTouchEventToInternalHud(ui::ET_TOUCH_PRESSED, gfx::Point(10, 10), 1); |
| 565 EXPECT_EQ(1, GetInternalTouchPointsCount()); | 565 EXPECT_EQ(1, GetInternalTouchPointsCount()); |
| 566 | 566 |
| 567 // Disabling projection touch HUD shoud remove it without crashing. | 567 // Disabling projection touch HUD shoud remove it without crashing. |
| 568 DisableTouchHudProjection(); | 568 DisableTouchHudProjection(); |
| 569 EXPECT_EQ(NULL, GetInternalTouchHudProjection()); | 569 EXPECT_EQ(NULL, GetInternalTouchHudProjection()); |
| 570 } | 570 } |
| 571 | 571 |
| 572 } // namespace ash | 572 } // namespace ash |
| OLD | NEW |