blob: e742f769ebd6e5464c50da4c76f29f6e4849d233 [file] [log] [blame]
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_SCREEN_OZONE_H_
#define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_SCREEN_OZONE_H_
#include "ui/display/screen_base.h"
#include "ui/display/types/native_display_observer.h"
namespace display {
class NativeDisplayDelegate;
class DisplaySnapshot;
} // namespace display
namespace views {
class DesktopScreenOzone : public display::ScreenBase,
public display::NativeDisplayObserver {
public:
DesktopScreenOzone();
~DesktopScreenOzone() override;
private:
void OnHostDisplaysReady(
const std::vector<display::DisplaySnapshot*>& displays);
// display::NativeDisplayDelegate:
void OnConfigurationChanged() override;
void OnDisplaySnapshotsInvalidated() override;
std::unique_ptr<display::NativeDisplayDelegate> delegate_;
DISALLOW_COPY_AND_ASSIGN(DesktopScreenOzone);
};
} // namespace views
#endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_SCREEN_OZONE_H_