Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(69)

Side by Side Diff: services/ui/ws/platform_display_factory.h

Issue 2512593003: Cleanup display creation in mus tests. (Closed)
Patch Set: Cleanup. Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698