| 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 #include "ash/display/root_window_transformers.h" | 5 #include "ash/display/root_window_transformers.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 | 8 |
| 9 #include "ash/display/display_info.h" | 9 #include "ash/common/display/display_info.h" |
| 10 #include "ash/display/display_manager.h" | 10 #include "ash/display/display_manager.h" |
| 11 #include "ash/display/display_util.h" | 11 #include "ash/display/display_util.h" |
| 12 #include "ash/host/root_window_transformer.h" | 12 #include "ash/host/root_window_transformer.h" |
| 13 #include "ash/magnifier/magnification_controller.h" | 13 #include "ash/magnifier/magnification_controller.h" |
| 14 #include "ash/screen_util.h" | 14 #include "ash/screen_util.h" |
| 15 #include "ash/shelf/shelf.h" | 15 #include "ash/shelf/shelf.h" |
| 16 #include "ash/shelf/shelf_widget.h" | 16 #include "ash/shelf/shelf_widget.h" |
| 17 #include "ash/shell.h" | 17 #include "ash/shell.h" |
| 18 #include "ash/test/ash_test_base.h" | 18 #include "ash/test/ash_test_base.h" |
| 19 #include "ash/test/cursor_manager_test_api.h" | 19 #include "ash/test/cursor_manager_test_api.h" |
| (...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 424 // Y margin must be margin is (500 - 500/400 * 200) / 2 = 125. | 424 // Y margin must be margin is (500 - 500/400 * 200) / 2 = 125. |
| 425 EXPECT_EQ("0,125,0,125", transformer->GetHostInsets().ToString()); | 425 EXPECT_EQ("0,125,0,125", transformer->GetHostInsets().ToString()); |
| 426 | 426 |
| 427 UpdateDisplay("200x400,500x500"); | 427 UpdateDisplay("200x400,500x500"); |
| 428 // The aspect ratio is flipped, so X margin is now 125. | 428 // The aspect ratio is flipped, so X margin is now 125. |
| 429 transformer = CreateCurrentRootWindowTransformerForMirroring(); | 429 transformer = CreateCurrentRootWindowTransformerForMirroring(); |
| 430 EXPECT_EQ("125,0,125,0", transformer->GetHostInsets().ToString()); | 430 EXPECT_EQ("125,0,125,0", transformer->GetHostInsets().ToString()); |
| 431 } | 431 } |
| 432 | 432 |
| 433 } // namespace ash | 433 } // namespace ash |
| OLD | NEW |