| Index: services/ui/ws/display.cc
|
| diff --git a/services/ui/ws/display.cc b/services/ui/ws/display.cc
|
| index 3513568e318a7d80f5525fa94f486e3f5d86a136..73c299d085330fe1ccd520ec7f540bdace1d033d 100644
|
| --- a/services/ui/ws/display.cc
|
| +++ b/services/ui/ws/display.cc
|
| @@ -29,6 +29,10 @@
|
| #include "ui/base/cursor/cursor.h"
|
| #include "ui/display/screen.h"
|
|
|
| +#if defined(USE_OZONE)
|
| +#include "ui/ozone/public/ozone_platform.h"
|
| +#endif
|
| +
|
| namespace ui {
|
| namespace ws {
|
|
|
| @@ -276,6 +280,14 @@ void Display::OnNativeCaptureLost() {
|
| display_root->window_manager_state()->SetCapture(nullptr, kInvalidClientId);
|
| }
|
|
|
| +OzonePlatform* Display::GetOzonePlatform() {
|
| +#if defined(USE_OZONE)
|
| + return OzonePlatform::GetInstance();
|
| +#else
|
| + return nullptr;
|
| +#endif
|
| +}
|
| +
|
| void Display::OnViewportMetricsChanged(
|
| const display::ViewportMetrics& metrics) {
|
| platform_display_->UpdateViewportMetrics(metrics);
|
|
|