Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 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 ASH_MUS_TEST_ASH_TEST_IMPL_MUS_H_ | |
| 6 #define ASH_MUS_TEST_ASH_TEST_IMPL_MUS_H_ | |
| 7 | |
| 8 #include "ash/common/test/ash_test_impl.h" | |
| 9 #include "ash/mus/test/wm_test_base.h" | |
| 10 | |
| 11 namespace ash { | |
| 12 namespace mus { | |
| 13 | |
| 14 class WmTestBase; | |
| 15 | |
| 16 // Implementation of AshTestImpl for mus. | |
| 17 class AshTestImplMus : public AshTestImpl { | |
| 18 public: | |
| 19 AshTestImplMus(); | |
| 20 ~AshTestImplMus() override; | |
| 21 | |
| 22 // AshTestImpl: | |
| 23 void SetUp() override; | |
| 24 void TearDown() override; | |
| 25 bool SupportsMultipleDisplays() const override; | |
| 26 void UpdateDisplay(const std::string& display_spec) override; | |
| 27 std::unique_ptr<WindowOwner> CreateTestWindow( | |
| 28 const gfx::Rect& bounds_in_screen, | |
| 29 ui::wm::WindowType type, | |
| 30 int shell_window_id) override; | |
| 31 display::Display GetSecondaryDisplay() override; | |
| 32 bool SetSecondaryDisplayPlacement( | |
| 33 display::DisplayPlacement::Position position, | |
| 34 int offset) override; | |
| 35 void ConfigureWidgetInitParamsForDisplay( | |
| 36 WmWindow* window, | |
| 37 views::Widget::InitParams* init_params) override; | |
| 38 | |
| 39 private: | |
| 40 // TODO(sky): fold WmTestBase directly into this class when no more subclasses | |
| 41 // of WmTestBase. | |
| 42 std::unique_ptr<WmTestBase> wm_test_base_; | |
| 43 | |
| 44 DISALLOW_COPY_AND_ASSIGN(AshTestImplMus); | |
|
James Cook
2016/09/28 01:19:42
#include macros.h
sky
2016/09/28 17:31:45
Done.
| |
| 45 }; | |
| 46 | |
| 47 } // namespace mus | |
| 48 } // namespace ash | |
| 49 | |
| 50 #endif // ASH_MUS_TEST_ASH_TEST_IMPL_MUS_H_ | |
| OLD | NEW |