| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef ASH_COMMON_TEST_ASH_TEST_IMPL_H_ | 5 #ifndef ASH_COMMON_TEST_ASH_TEST_IMPL_H_ |
| 6 #define ASH_COMMON_TEST_ASH_TEST_IMPL_H_ | 6 #define ASH_COMMON_TEST_ASH_TEST_IMPL_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 | 36 |
| 37 // These functions mirror that of AshTest, see it for details. | 37 // These functions mirror that of AshTest, see it for details. |
| 38 virtual void SetUp() = 0; | 38 virtual void SetUp() = 0; |
| 39 virtual void TearDown() = 0; | 39 virtual void TearDown() = 0; |
| 40 virtual bool SupportsMultipleDisplays() const = 0; | 40 virtual bool SupportsMultipleDisplays() const = 0; |
| 41 virtual void UpdateDisplay(const std::string& display_spec) = 0; | 41 virtual void UpdateDisplay(const std::string& display_spec) = 0; |
| 42 virtual std::unique_ptr<WindowOwner> CreateTestWindow( | 42 virtual std::unique_ptr<WindowOwner> CreateTestWindow( |
| 43 const gfx::Rect& bounds_in_screen, | 43 const gfx::Rect& bounds_in_screen, |
| 44 ui::wm::WindowType type, | 44 ui::wm::WindowType type, |
| 45 int shell_window_id) = 0; | 45 int shell_window_id) = 0; |
| 46 virtual std::unique_ptr<WindowOwner> CreateToplevelTestWindow( |
| 47 const gfx::Rect& bounds_in_screen, |
| 48 int shell_window_id) = 0; |
| 46 virtual display::Display GetSecondaryDisplay() = 0; | 49 virtual display::Display GetSecondaryDisplay() = 0; |
| 47 virtual bool SetSecondaryDisplayPlacement( | 50 virtual bool SetSecondaryDisplayPlacement( |
| 48 display::DisplayPlacement::Position position, | 51 display::DisplayPlacement::Position position, |
| 49 int offset) = 0; | 52 int offset) = 0; |
| 53 virtual void ConfigureWidgetInitParamsForDisplay( |
| 54 WmWindow* window, |
| 55 views::Widget::InitParams* init_params) = 0; |
| 56 virtual void AddTransientChild(WmWindow* parent, WmWindow* window) = 0; |
| 50 }; | 57 }; |
| 51 | 58 |
| 52 } // namespace ash | 59 } // namespace ash |
| 53 | 60 |
| 54 #endif // ASH_COMMON_TEST_ASH_TEST_IMPL_H_ | 61 #endif // ASH_COMMON_TEST_ASH_TEST_IMPL_H_ |
| OLD | NEW |