| 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 ui { | 10 namespace ui { |
| 11 namespace ws { | 11 namespace ws { |
| 12 | 12 |
| 13 class PlatformDisplay; | 13 class PlatformDisplay; |
| 14 struct PlatformDisplayInitParams; |
| 14 | 15 |
| 15 // Abstract factory for PlatformDisplays. Used by tests to construct test | 16 // Abstract factory for PlatformDisplays. Used by tests to construct test |
| 16 // PlatformDisplays. | 17 // PlatformDisplays. |
| 17 class PlatformDisplayFactory { | 18 class PlatformDisplayFactory { |
| 18 public: | 19 public: |
| 19 virtual std::unique_ptr<PlatformDisplay> CreatePlatformDisplay() = 0; | 20 virtual std::unique_ptr<PlatformDisplay> CreatePlatformDisplay( |
| 21 const PlatformDisplayInitParams& init_params) = 0; |
| 20 }; | 22 }; |
| 21 | 23 |
| 22 } // namespace ws | 24 } // namespace ws |
| 23 } // namespace ui | 25 } // namespace ui |
| 24 | 26 |
| 25 #endif // SERVICES_UI_WS_PLATFORM_DISPLAY_FACTORY_H_ | 27 #endif // SERVICES_UI_WS_PLATFORM_DISPLAY_FACTORY_H_ |
| OLD | NEW |