| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef UI_DISPLAY_CHROMEOS_TEST_TEST_DISPLAY_LAYOUT_MANAGER_H_ | |
| 6 #define UI_DISPLAY_CHROMEOS_TEST_TEST_DISPLAY_LAYOUT_MANAGER_H_ | |
| 7 | |
| 8 #include "base/macros.h" | |
| 9 #include "base/memory/scoped_vector.h" | |
| 10 #include "ui/display/chromeos/display_configurator.h" | |
| 11 #include "ui/display/chromeos/display_layout_manager.h" | |
| 12 | |
| 13 namespace ui { | |
| 14 namespace test { | |
| 15 | |
| 16 class TestDisplayLayoutManager : public DisplayLayoutManager { | |
| 17 public: | |
| 18 TestDisplayLayoutManager(ScopedVector<DisplaySnapshot> displays, | |
| 19 MultipleDisplayState display_state); | |
| 20 ~TestDisplayLayoutManager() override; | |
| 21 | |
| 22 // DisplayLayoutManager: | |
| 23 DisplayConfigurator::StateController* GetStateController() const override; | |
| 24 DisplayConfigurator::SoftwareMirroringController* | |
| 25 GetSoftwareMirroringController() const override; | |
| 26 MultipleDisplayState GetDisplayState() const override; | |
| 27 chromeos::DisplayPowerState GetPowerState() const override; | |
| 28 bool GetDisplayLayout(const std::vector<DisplaySnapshot*>& displays, | |
| 29 MultipleDisplayState new_display_state, | |
| 30 chromeos::DisplayPowerState new_power_state, | |
| 31 std::vector<DisplayConfigureRequest>* requests, | |
| 32 gfx::Size* framebuffer_size) const override; | |
| 33 std::vector<DisplaySnapshot*> GetDisplayStates() const override; | |
| 34 bool IsMirroring() const override; | |
| 35 | |
| 36 private: | |
| 37 ScopedVector<DisplaySnapshot> displays_; | |
| 38 MultipleDisplayState display_state_; | |
| 39 | |
| 40 DISALLOW_COPY_AND_ASSIGN(TestDisplayLayoutManager); | |
| 41 }; | |
| 42 | |
| 43 } // namespace test | |
| 44 } // namespace ui | |
| 45 | |
| 46 #endif // UI_DISPLAY_CHROMEOS_TEST_TEST_DISPLAY_LAYOUT_MANAGER_H_ | |
| OLD | NEW |