| 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_IMPL_H_ | 5 #ifndef SERVICES_UI_DISPLAY_PLATFORM_SCREEN_IMPL_H_ |
| 6 #define SERVICES_UI_DISPLAY_PLATFORM_SCREEN_IMPL_H_ | 6 #define SERVICES_UI_DISPLAY_PLATFORM_SCREEN_IMPL_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| 11 #include "services/ui/display/platform_screen.h" | 11 #include "services/ui/display/platform_screen.h" |
| 12 | 12 |
| 13 namespace display { | 13 namespace display { |
| 14 | 14 |
| 15 // PlatformScreenImpl provides the necessary functionality to configure all | 15 // PlatformScreenImpl provides the necessary functionality to configure all |
| 16 // attached physical displays on non-ozone platforms. | 16 // attached physical displays on non-ozone platforms. |
| 17 class PlatformScreenImpl : public PlatformScreen { | 17 class PlatformScreenImpl : public PlatformScreen { |
| 18 public: | 18 public: |
| 19 PlatformScreenImpl(); | 19 PlatformScreenImpl(); |
| 20 ~PlatformScreenImpl() override; | 20 ~PlatformScreenImpl() override; |
| 21 | 21 |
| 22 private: | 22 private: |
| 23 // PlatformScreen. | 23 // PlatformScreen. |
| 24 void Init() override; | 24 void Init() override; |
| 25 void ConfigurePhysicalDisplay( | 25 void ConfigurePhysicalDisplay( |
| 26 const PlatformScreen::ConfiguredDisplayCallback& callback) override; | 26 const PlatformScreen::ConfiguredDisplayCallback& callback) override; |
| 27 int64_t GetPrimaryDisplayId() const override; |
| 27 | 28 |
| 28 DISALLOW_COPY_AND_ASSIGN(PlatformScreenImpl); | 29 DISALLOW_COPY_AND_ASSIGN(PlatformScreenImpl); |
| 29 }; | 30 }; |
| 30 | 31 |
| 31 } // namespace display | 32 } // namespace display |
| 32 | 33 |
| 33 #endif // SERVICES_UI_DISPLAY_PLATFORM_SCREEN_IMPL_H_ | 34 #endif // SERVICES_UI_DISPLAY_PLATFORM_SCREEN_IMPL_H_ |
| OLD | NEW |