| 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_COMMON_TEST_ASH_TEST_IMPL_H_ |
| 6 #define ASH_COMMON_TEST_ASH_TEST_IMPL_H_ |
| 7 |
| 8 #include <memory> |
| 9 #include <string> |
| 10 |
| 11 #include "ui/display/manager/display_layout.h" |
| 12 #include "ui/views/widget/widget.h" |
| 13 #include "ui/wm/public/window_types.h" |
| 14 |
| 15 namespace display { |
| 16 class Display; |
| 17 } |
| 18 |
| 19 namespace gfx { |
| 20 class Rect; |
| 21 } |
| 22 |
| 23 namespace ash { |
| 24 |
| 25 class WindowOwner; |
| 26 class WmWindow; |
| 27 |
| 28 // Provides the real implementation of AshTest, see it for details. |
| 29 class AshTestImpl { |
| 30 public: |
| 31 virtual ~AshTestImpl() {} |
| 32 |
| 33 // Factory function for creating AshTestImpl. Implemention that is used |
| 34 // depends upon build dependencies. |
| 35 static std::unique_ptr<AshTestImpl> Create(); |
| 36 |
| 37 // These functions mirror that of AshTest, see it for details. |
| 38 virtual void SetUp() = 0; |
| 39 virtual void TearDown() = 0; |
| 40 virtual bool SupportsMultipleDisplays() const = 0; |
| 41 virtual void UpdateDisplay(const std::string& display_spec) = 0; |
| 42 virtual std::unique_ptr<WindowOwner> CreateTestWindow( |
| 43 const gfx::Rect& bounds_in_screen, |
| 44 ui::wm::WindowType type, |
| 45 int shell_window_id) = 0; |
| 46 virtual display::Display GetSecondaryDisplay() = 0; |
| 47 virtual bool SetSecondaryDisplayPlacement( |
| 48 display::DisplayPlacement::Position position, |
| 49 int offset) = 0; |
| 50 }; |
| 51 |
| 52 } // namespace ash |
| 53 |
| 54 #endif // ASH_COMMON_TEST_ASH_TEST_IMPL_H_ |
| OLD | NEW |