Revert of Fix missing GN dependencies. (patchset #4 id:60001 of https://codereview...
[chromium-blink-merge.git] / ui / ozone / common / native_display_delegate_ozone.h
blob5f142b2c90238c2c860feae7b3234de02c6f50d8
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef UI_OZONE_COMMON_NATIVE_DISPLAY_DELEGATE_OZONE_H_
6 #define UI_OZONE_COMMON_NATIVE_DISPLAY_DELEGATE_OZONE_H_
8 #include "base/macros.h"
9 #include "base/memory/scoped_vector.h"
10 #include "ui/display/types/native_display_delegate.h"
12 namespace ui {
14 class NativeDisplayDelegateOzone : public NativeDisplayDelegate {
15 public:
16 NativeDisplayDelegateOzone();
17 ~NativeDisplayDelegateOzone() override;
19 // NativeDisplayDelegate overrides:
20 void Initialize() override;
21 void GrabServer() override;
22 void UngrabServer() override;
23 bool TakeDisplayControl() override;
24 bool RelinquishDisplayControl() override;
25 void SyncWithServer() override;
26 void SetBackgroundColor(uint32_t color_argb) override;
27 void ForceDPMSOn() override;
28 void GetDisplays(const GetDisplaysCallback& callback) override;
29 void AddMode(const ui::DisplaySnapshot& output,
30 const ui::DisplayMode* mode) override;
31 void Configure(const ui::DisplaySnapshot& output,
32 const ui::DisplayMode* mode,
33 const gfx::Point& origin,
34 const ConfigureCallback& callback) override;
35 void CreateFrameBuffer(const gfx::Size& size) override;
36 void GetHDCPState(const ui::DisplaySnapshot& output,
37 const GetHDCPStateCallback& callback) override;
38 void SetHDCPState(const ui::DisplaySnapshot& output,
39 ui::HDCPState state,
40 const SetHDCPStateCallback& callback) override;
41 std::vector<ui::ColorCalibrationProfile> GetAvailableColorCalibrationProfiles(
42 const ui::DisplaySnapshot& output) override;
43 bool SetColorCalibrationProfile(
44 const ui::DisplaySnapshot& output,
45 ui::ColorCalibrationProfile new_profile) override;
46 bool SetGammaRamp(const ui::DisplaySnapshot& output,
47 const std::vector<GammaRampRGBEntry>& lut) override;
49 void AddObserver(NativeDisplayObserver* observer) override;
50 void RemoveObserver(NativeDisplayObserver* observer) override;
52 private:
53 ScopedVector<DisplaySnapshot> displays_;
55 DISALLOW_COPY_AND_ASSIGN(NativeDisplayDelegateOzone);
58 } // namespace ui
60 #endif // UI_OZONE_COMMON_NATIVE_DISPLAY_DELEGATE_OZONE_H_