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/magnifier/magnification_controller.h" | 5 #include "ash/magnifier/magnification_controller.h" |
6 | 6 |
7 #include "ash/magnifier/magnifier_constants.h" | 7 #include "ash/magnifier/magnifier_constants.h" |
8 #include "ash/shell.h" | 8 #include "ash/shell.h" |
9 #include "ash/test/ash_test_base.h" | 9 #include "ash/test/ash_test_base.h" |
10 #include "base/strings/stringprintf.h" | 10 #include "base/strings/stringprintf.h" |
11 #include "ui/aura/client/aura_constants.h" | 11 #include "ui/aura/client/aura_constants.h" |
12 #include "ui/aura/env.h" | 12 #include "ui/aura/env.h" |
13 #include "ui/aura/root_window.h" | |
14 #include "ui/aura/test/event_generator.h" | 13 #include "ui/aura/test/event_generator.h" |
| 14 #include "ui/aura/window_event_dispatcher.h" |
15 #include "ui/gfx/rect_conversions.h" | 15 #include "ui/gfx/rect_conversions.h" |
16 #include "ui/gfx/screen.h" | 16 #include "ui/gfx/screen.h" |
17 | 17 |
18 namespace ash { | 18 namespace ash { |
19 namespace internal { | 19 namespace internal { |
20 namespace { | 20 namespace { |
21 | 21 |
22 const int kRootHeight = 600; | 22 const int kRootHeight = 600; |
23 const int kRootWidth = 800; | 23 const int kRootWidth = 800; |
24 | 24 |
(...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
434 scale *= kMagnificationScaleFactor; | 434 scale *= kMagnificationScaleFactor; |
435 GetMagnificationController()->SetScale(scale, false); | 435 GetMagnificationController()->SetScale(scale, false); |
436 EXPECT_FLOAT_EQ(4.f, GetMagnificationController()->GetScale()); | 436 EXPECT_FLOAT_EQ(4.f, GetMagnificationController()->GetScale()); |
437 generator.MoveMouseToInHost(gfx::Point(0, 300)); | 437 generator.MoveMouseToInHost(gfx::Point(0, 300)); |
438 EXPECT_EQ("139,298", env->last_mouse_location().ToString()); | 438 EXPECT_EQ("139,298", env->last_mouse_location().ToString()); |
439 EXPECT_EQ("100,300", GetHostMouseLocation()); | 439 EXPECT_EQ("100,300", GetHostMouseLocation()); |
440 } | 440 } |
441 | 441 |
442 } // namespace internal | 442 } // namespace internal |
443 } // namespace ash | 443 } // namespace ash |
OLD | NEW |