OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/test/immersive_fullscreen_controller_test_api.h" | 5 #include "ash/test/immersive_fullscreen_controller_test_api.h" |
6 | 6 |
7 #include "ash/common/wm/immersive/wm_immersive_fullscreen_controller_delegate.h" | 7 #include "ash/shared/immersive_fullscreen_controller.h" |
8 #include "ash/wm/immersive_fullscreen_controller.h" | 8 #include "ash/shared/immersive_fullscreen_controller_delegate.h" |
9 #include "ui/aura/env.h" | 9 #include "ui/aura/env.h" |
10 #include "ui/gfx/geometry/rect.h" | 10 #include "ui/gfx/geometry/rect.h" |
11 | 11 |
12 namespace ash { | 12 namespace ash { |
13 | 13 |
14 ImmersiveFullscreenControllerTestApi::ImmersiveFullscreenControllerTestApi( | 14 ImmersiveFullscreenControllerTestApi::ImmersiveFullscreenControllerTestApi( |
15 ImmersiveFullscreenController* controller) | 15 ImmersiveFullscreenController* controller) |
16 : immersive_fullscreen_controller_(controller) {} | 16 : immersive_fullscreen_controller_(controller) {} |
17 | 17 |
18 ImmersiveFullscreenControllerTestApi::~ImmersiveFullscreenControllerTestApi() {} | 18 ImmersiveFullscreenControllerTestApi::~ImmersiveFullscreenControllerTestApi() {} |
(...skipping 11 matching lines...) Expand all Loading... |
30 for (size_t i = 1; i < bounds_in_screen.size(); ++i) { | 30 for (size_t i = 1; i < bounds_in_screen.size(); ++i) { |
31 if (bounds_in_screen[i].bottom() > bottommost_in_screen) | 31 if (bounds_in_screen[i].bottom() > bottommost_in_screen) |
32 bottommost_in_screen = bounds_in_screen[i].bottom(); | 32 bottommost_in_screen = bounds_in_screen[i].bottom(); |
33 } | 33 } |
34 gfx::Point cursor_pos(0, bottommost_in_screen + 10); | 34 gfx::Point cursor_pos(0, bottommost_in_screen + 10); |
35 aura::Env::GetInstance()->set_last_mouse_location(cursor_pos); | 35 aura::Env::GetInstance()->set_last_mouse_location(cursor_pos); |
36 immersive_fullscreen_controller_->UpdateLocatedEventRevealedLock(); | 36 immersive_fullscreen_controller_->UpdateLocatedEventRevealedLock(); |
37 } | 37 } |
38 | 38 |
39 } // namespace ash | 39 } // namespace ash |
OLD | NEW |