| 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/mus/test/wm_test_base.h" | |
| 9 #include "ash/test/ash_test_impl.h" | |
| 10 #include "base/macros.h" | |
| 11 | |
| 12 namespace ash { | |
| 13 namespace mus { | |
| 14 | |
| 15 class WmTestBase; | |
| 16 | |
| 17 // Implementation of AshTestImpl for mus. | |
| 18 class AshTestImplMus : public AshTestImpl { | |
| 19 public: | |
| 20 AshTestImplMus(); | |
| 21 ~AshTestImplMus() override; | |
| 22 | |
| 23 // AshTestImpl: | |
| 24 void SetUp() override; | |
| 25 void TearDown() 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 std::unique_ptr<WindowOwner> CreateToplevelTestWindow( | |
| 32 const gfx::Rect& bounds_in_screen, | |
| 33 int shell_window_id) override; | |
| 34 display::Display GetSecondaryDisplay() override; | |
| 35 bool SetSecondaryDisplayPlacement( | |
| 36 display::DisplayPlacement::Position position, | |
| 37 int offset) override; | |
| 38 void ConfigureWidgetInitParamsForDisplay( | |
| 39 WmWindow* window, | |
| 40 views::Widget::InitParams* init_params) override; | |
| 41 void AddTransientChild(WmWindow* parent, WmWindow* window) override; | |
| 42 | |
| 43 private: | |
| 44 // TODO(sky): fold WmTestBase directly into this class when no more subclasses | |
| 45 // of WmTestBase. | |
| 46 std::unique_ptr<WmTestBase> wm_test_base_; | |
| 47 | |
| 48 DISALLOW_COPY_AND_ASSIGN(AshTestImplMus); | |
| 49 }; | |
| 50 | |
| 51 } // namespace mus | |
| 52 } // namespace ash | |
| 53 | |
| 54 #endif // ASH_MUS_TEST_ASH_TEST_IMPL_MUS_H_ | |
| OLD | NEW |