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

Side by Side Diff: services/ui/display/platform_screen.h

Issue 2128333002: Move PlatformSceen to services/ui/display. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
« no previous file with comments | « services/ui/display/BUILD.gn ('k') | services/ui/display/platform_screen_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 SERVICES_UI_WS_PLATFORM_SCREEN_H_ 5 #ifndef SERVICES_UI_DISPLAY_PLATFORM_SCREEN_H_
6 #define SERVICES_UI_WS_PLATFORM_SCREEN_H_ 6 #define SERVICES_UI_DISPLAY_PLATFORM_SCREEN_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
11 11
12 namespace gfx { 12 namespace gfx {
13 class Rect; 13 class Rect;
14 } 14 }
15 15
16 namespace ui { 16 namespace ui {
17 namespace ws { 17 namespace display {
18 18
19 // PlatformScreen provides the necessary functionality to configure all 19 // PlatformScreen provides the necessary functionality to configure all
20 // attached physical displays. 20 // attached physical displays.
21 class PlatformScreen { 21 class PlatformScreen {
22 public: 22 public:
23 using ConfiguredDisplayCallback = 23 using ConfiguredDisplayCallback =
24 base::Callback<void(int64_t, const gfx::Rect&)>; 24 base::Callback<void(int64_t, const gfx::Rect&)>;
25 25
26 virtual ~PlatformScreen() {} 26 virtual ~PlatformScreen() {}
27 27
28 // Creates a PlatformScreen instance. 28 // Creates a PlatformScreen instance.
29 static std::unique_ptr<PlatformScreen> Create(); 29 static std::unique_ptr<PlatformScreen> Create();
30 30
31 // Initializes platform specific screen resources. 31 // Initializes platform specific screen resources.
32 virtual void Init() = 0; 32 virtual void Init() = 0;
33 33
34 // ConfigurePhysicalDisplay() configures a single physical display and returns 34 // ConfigurePhysicalDisplay() configures a single physical display and returns
35 // its id and bounds for it via |callback|. 35 // its id and bounds for it via |callback|.
36 virtual void ConfigurePhysicalDisplay( 36 virtual void ConfigurePhysicalDisplay(
37 const ConfiguredDisplayCallback& callback) = 0; 37 const ConfiguredDisplayCallback& callback) = 0;
38 }; 38 };
39 39
40 } // namespace ws 40 } // namespace display
41 } // namespace ui 41 } // namespace ui
42 42
43 #endif // SERVICES_UI_WS_PLATFORM_SCREEN_H_ 43 #endif // SERVICES_UI_DISPLAY_PLATFORM_SCREEN_H_
OLDNEW
« no previous file with comments | « services/ui/display/BUILD.gn ('k') | services/ui/display/platform_screen_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698