| OLD | NEW |
| 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_DISPLAY_PLATFORM_SCREEN_H_ | 5 #ifndef SERVICES_UI_DISPLAY_PLATFORM_SCREEN_H_ |
| 6 #define SERVICES_UI_DISPLAY_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 <memory> | 10 #include <memory> |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 // Creates a PlatformScreen instance. | 29 // Creates a PlatformScreen instance. |
| 30 static std::unique_ptr<PlatformScreen> Create(); | 30 static std::unique_ptr<PlatformScreen> Create(); |
| 31 | 31 |
| 32 // Initializes platform specific screen resources. | 32 // Initializes platform specific screen resources. |
| 33 virtual void Init() = 0; | 33 virtual void Init() = 0; |
| 34 | 34 |
| 35 // ConfigurePhysicalDisplay() configures a single physical display and returns | 35 // ConfigurePhysicalDisplay() configures a single physical display and returns |
| 36 // its id and bounds for it via |callback|. | 36 // its id and bounds for it via |callback|. |
| 37 virtual void ConfigurePhysicalDisplay( | 37 virtual void ConfigurePhysicalDisplay( |
| 38 const ConfiguredDisplayCallback& callback) = 0; | 38 const ConfiguredDisplayCallback& callback) = 0; |
| 39 |
| 40 virtual int64_t GetPrimaryDisplayId() const = 0; |
| 39 }; | 41 }; |
| 40 | 42 |
| 41 } // namespace display | 43 } // namespace display |
| 42 | 44 |
| 43 #endif // SERVICES_UI_DISPLAY_PLATFORM_SCREEN_H_ | 45 #endif // SERVICES_UI_DISPLAY_PLATFORM_SCREEN_H_ |
| OLD | NEW |