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

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

Issue 2736943003: Start to decouple display::Display from ws::PlatformDisplay. (Closed)
Patch Set: Fix comments. Created 3 years, 9 months 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 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_
OLDNEW
« no previous file with comments | « services/ui/ws/platform_display_delegate.h ('k') | services/ui/ws/platform_display_init_params.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698