| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 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 SERVICES_UI_WS_PLATFORM_DISPLAY_FACTORY_H_ | 5 #ifndef SERVICES_UI_WS_PLATFORM_DISPLAY_FACTORY_H_ |
| 6 #define SERVICES_UI_WS_PLATFORM_DISPLAY_FACTORY_H_ | 6 #define SERVICES_UI_WS_PLATFORM_DISPLAY_FACTORY_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 namespace display { |
| 11 struct ViewportMetrics; |
| 12 } |
| 13 |
| 10 namespace ui { | 14 namespace ui { |
| 11 namespace ws { | 15 namespace ws { |
| 12 | 16 |
| 13 class PlatformDisplay; | 17 class PlatformDisplay; |
| 14 struct PlatformDisplayInitParams; | 18 class ServerWindow; |
| 15 | 19 |
| 16 // Abstract factory for PlatformDisplays. Used by tests to construct test | 20 // Abstract factory for PlatformDisplays. Used by tests to construct test |
| 17 // PlatformDisplays. | 21 // PlatformDisplays. |
| 18 class PlatformDisplayFactory { | 22 class PlatformDisplayFactory { |
| 19 public: | 23 public: |
| 20 virtual std::unique_ptr<PlatformDisplay> CreatePlatformDisplay( | 24 virtual std::unique_ptr<PlatformDisplay> CreatePlatformDisplay( |
| 21 const PlatformDisplayInitParams& init_params) = 0; | 25 ServerWindow* root_window, |
| 26 const display::ViewportMetrics& metrics) = 0; |
| 22 }; | 27 }; |
| 23 | 28 |
| 24 } // namespace ws | 29 } // namespace ws |
| 25 } // namespace ui | 30 } // namespace ui |
| 26 | 31 |
| 27 #endif // SERVICES_UI_WS_PLATFORM_DISPLAY_FACTORY_H_ | 32 #endif // SERVICES_UI_WS_PLATFORM_DISPLAY_FACTORY_H_ |
| OLD | NEW |