| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "ui/display/manager/chromeos/test/test_display_layout_manager.h" | 5 #include "ui/display/manager/chromeos/test/test_display_layout_manager.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "ui/display/types/display_snapshot.h" | 9 #include "ui/display/types/display_snapshot.h" |
| 10 | 10 |
| 11 namespace ui { | 11 namespace display { |
| 12 namespace test { | 12 namespace test { |
| 13 | 13 |
| 14 TestDisplayLayoutManager::TestDisplayLayoutManager( | 14 TestDisplayLayoutManager::TestDisplayLayoutManager( |
| 15 ScopedVector<DisplaySnapshot> displays, | 15 ScopedVector<DisplaySnapshot> displays, |
| 16 MultipleDisplayState display_state) | 16 MultipleDisplayState display_state) |
| 17 : displays_(std::move(displays)), display_state_(display_state) {} | 17 : displays_(std::move(displays)), display_state_(display_state) {} |
| 18 | 18 |
| 19 TestDisplayLayoutManager::~TestDisplayLayoutManager() {} | 19 TestDisplayLayoutManager::~TestDisplayLayoutManager() {} |
| 20 | 20 |
| 21 DisplayConfigurator::StateController* | 21 DisplayConfigurator::StateController* |
| (...skipping 28 matching lines...) Expand all Loading... |
| 50 std::vector<DisplaySnapshot*> TestDisplayLayoutManager::GetDisplayStates() | 50 std::vector<DisplaySnapshot*> TestDisplayLayoutManager::GetDisplayStates() |
| 51 const { | 51 const { |
| 52 return displays_.get(); | 52 return displays_.get(); |
| 53 } | 53 } |
| 54 | 54 |
| 55 bool TestDisplayLayoutManager::IsMirroring() const { | 55 bool TestDisplayLayoutManager::IsMirroring() const { |
| 56 return display_state_ == MULTIPLE_DISPLAY_STATE_DUAL_MIRROR; | 56 return display_state_ == MULTIPLE_DISPLAY_STATE_DUAL_MIRROR; |
| 57 } | 57 } |
| 58 | 58 |
| 59 } // namespace test | 59 } // namespace test |
| 60 } // namespace ui | 60 } // namespace display |
| OLD | NEW |