Roll src/third_party/WebKit d9c6159:8139f33 (svn 201974:201975)
[chromium-blink-merge.git] / ui / display / chromeos / test / test_display_layout_manager.h
blobc46f850648c7ef879cd5bd8e415f41bc87426341
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"
12 namespace ui {
13 namespace test {
15 class TestDisplayLayoutManager : public DisplayLayoutManager {
16 public:
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;
35 private:
36 ScopedVector<DisplaySnapshot> displays_;
37 MultipleDisplayState display_state_;
39 DISALLOW_COPY_AND_ASSIGN(TestDisplayLayoutManager);
42 } // namespace test
43 } // namespace ui
45 #endif // UI_DISPLAY_CHROMEOS_TEST_TEST_DISPLAY_LAYOUT_MANAGER_H_