| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/shell.h" | 5 #include "ash/shell.h" |
| 6 #include "ash/shell_window_ids.h" | 6 #include "ash/shell_window_ids.h" |
| 7 #include "ash/test/ash_test_base.h" | 7 #include "ash/test/ash_test_base.h" |
| 8 #include "ash/test/test_activation_delegate.h" | 8 #include "ash/test/test_activation_delegate.h" |
| 9 #include "ash/wm/activation_controller.h" | 9 #include "ash/wm/activation_controller.h" |
| 10 #include "ash/wm/cursor_manager.h" | 10 #include "ash/wm/cursor_manager.h" |
| 11 #include "ash/wm/window_util.h" | 11 #include "ash/wm/window_util.h" |
| 12 #include "ui/aura/client/activation_client.h" | 12 #include "ui/aura/client/activation_client.h" |
| 13 #include "ui/aura/client/activation_delegate.h" | 13 #include "ui/aura/client/activation_delegate.h" |
| 14 #include "ui/aura/env.h" | 14 #include "ui/aura/env.h" |
| 15 #include "ui/aura/focus_manager.h" | 15 #include "ui/aura/focus_manager.h" |
| 16 #include "ui/aura/root_window.h" | 16 #include "ui/aura/root_window.h" |
| 17 #include "ui/aura/shared/compound_event_filter.h" | 17 #include "ui/aura/shared/compound_event_filter.h" |
| 18 #include "ui/aura/shared/input_method_event_filter.h" | 18 #include "ui/aura/shared/input_method_event_filter.h" |
| 19 #include "ui/aura/test/aura_test_base.h" | 19 #include "ui/aura/test/aura_test_base.h" |
| 20 #include "ui/aura/test/event_generator.h" | 20 #include "ui/aura/test/event_generator.h" |
| 21 #include "ui/aura/test/test_event_filter.h" | 21 #include "ui/aura/test/test_event_filter.h" |
| 22 #include "ui/aura/test/test_window_delegate.h" | 22 #include "ui/aura/test/test_window_delegate.h" |
| 23 #include "ui/aura/test/test_windows.h" | 23 #include "ui/aura/test/test_windows.h" |
| 24 #include "ui/base/cursor/cursor.h" | 24 #include "ui/base/cursor/cursor.h" |
| 25 #include "ui/base/event.h" | 25 #include "ui/base/events/event.h" |
| 26 #include "ui/base/hit_test.h" | 26 #include "ui/base/hit_test.h" |
| 27 #include "ui/gfx/screen.h" | 27 #include "ui/gfx/screen.h" |
| 28 | 28 |
| 29 namespace { | 29 namespace { |
| 30 | 30 |
| 31 base::TimeDelta getTime() { | 31 base::TimeDelta getTime() { |
| 32 return base::Time::NowFromSystemTime() - base::Time(); | 32 return base::Time::NowFromSystemTime() - base::Time(); |
| 33 } | 33 } |
| 34 | 34 |
| 35 } // namespace | 35 } // namespace |
| (...skipping 584 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 620 env_filter->set_update_cursor_visibility(false); | 620 env_filter->set_update_cursor_visibility(false); |
| 621 cursor_manager->ShowCursor(false); | 621 cursor_manager->ShowCursor(false); |
| 622 root_window->AsRootWindowHostDelegate()->OnHostMouseEvent(&mouse_moved); | 622 root_window->AsRootWindowHostDelegate()->OnHostMouseEvent(&mouse_moved); |
| 623 EXPECT_FALSE(cursor_manager->cursor_visible()); | 623 EXPECT_FALSE(cursor_manager->cursor_visible()); |
| 624 cursor_manager->ShowCursor(true); | 624 cursor_manager->ShowCursor(true); |
| 625 root_window->AsRootWindowHostDelegate()->OnHostTouchEvent(&touch_pressed2); | 625 root_window->AsRootWindowHostDelegate()->OnHostTouchEvent(&touch_pressed2); |
| 626 EXPECT_TRUE(cursor_manager->cursor_visible()); | 626 EXPECT_TRUE(cursor_manager->cursor_visible()); |
| 627 } | 627 } |
| 628 | 628 |
| 629 } // namespace ash | 629 } // namespace ash |
| OLD | NEW |