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.
5 #ifndef UI_DISPLAY_CHROMEOS_TEST_TEST_DISPLAY_LAYOUT_MANAGER_H_
6 #define UI_DISPLAY_CHROMEOS_TEST_TEST_DISPLAY_LAYOUT_MANAGER_H_
8 #include "base/memory/scoped_vector.h"
9 #include "ui/display/chromeos/display_configurator.h"
10 #include "ui/display/chromeos/display_layout_manager.h"
15 class TestDisplayLayoutManager
: public DisplayLayoutManager
{
17 TestDisplayLayoutManager(ScopedVector
<DisplaySnapshot
> displays
,
18 MultipleDisplayState display_state
);
19 ~TestDisplayLayoutManager() override
;
21 // DisplayLayoutManager:
22 DisplayConfigurator::StateController
* GetStateController() const override
;
23 DisplayConfigurator::SoftwareMirroringController
*
24 GetSoftwareMirroringController() const override
;
25 MultipleDisplayState
GetDisplayState() const override
;
26 chromeos::DisplayPowerState
GetPowerState() const override
;
27 bool GetDisplayLayout(const std::vector
<DisplaySnapshot
*>& displays
,
28 MultipleDisplayState new_display_state
,
29 chromeos::DisplayPowerState new_power_state
,
30 std::vector
<DisplayConfigureRequest
>* requests
,
31 gfx::Size
* framebuffer_size
) const override
;
32 std::vector
<DisplaySnapshot
*> GetDisplayStates() const override
;
33 bool IsMirroring() const override
;
36 ScopedVector
<DisplaySnapshot
> displays_
;
37 MultipleDisplayState display_state_
;
39 DISALLOW_COPY_AND_ASSIGN(TestDisplayLayoutManager
);
45 #endif // UI_DISPLAY_CHROMEOS_TEST_TEST_DISPLAY_LAYOUT_MANAGER_H_