| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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 UI_OZONE_PLATFORM_DRI_NATIVE_DISPLAY_DELEGATE_PROXY_H_ | 5 #ifndef UI_OZONE_PLATFORM_DRI_NATIVE_DISPLAY_DELEGATE_PROXY_H_ |
| 6 #define UI_OZONE_PLATFORM_DRI_NATIVE_DISPLAY_DELEGATE_PROXY_H_ | 6 #define UI_OZONE_PLATFORM_DRI_NATIVE_DISPLAY_DELEGATE_PROXY_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/scoped_vector.h" | 9 #include "base/memory/scoped_vector.h" |
| 10 #include "base/observer_list.h" | 10 #include "base/observer_list.h" |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 | 31 |
| 32 // NativeDisplayDelegate overrides: | 32 // NativeDisplayDelegate overrides: |
| 33 void Initialize() override; | 33 void Initialize() override; |
| 34 void GrabServer() override; | 34 void GrabServer() override; |
| 35 void UngrabServer() override; | 35 void UngrabServer() override; |
| 36 bool TakeDisplayControl() override; | 36 bool TakeDisplayControl() override; |
| 37 bool RelinquishDisplayControl() override; | 37 bool RelinquishDisplayControl() override; |
| 38 void SyncWithServer() override; | 38 void SyncWithServer() override; |
| 39 void SetBackgroundColor(uint32_t color_argb) override; | 39 void SetBackgroundColor(uint32_t color_argb) override; |
| 40 void ForceDPMSOn() override; | 40 void ForceDPMSOn() override; |
| 41 std::vector<DisplaySnapshot*> GetDisplays() override; | |
| 42 void GetDisplays(const GetDisplaysCallback& callback) override; | 41 void GetDisplays(const GetDisplaysCallback& callback) override; |
| 43 void AddMode(const DisplaySnapshot& output, const DisplayMode* mode) override; | 42 void AddMode(const DisplaySnapshot& output, const DisplayMode* mode) override; |
| 44 bool Configure(const DisplaySnapshot& output, | |
| 45 const DisplayMode* mode, | |
| 46 const gfx::Point& origin) override; | |
| 47 void Configure(const DisplaySnapshot& output, | 43 void Configure(const DisplaySnapshot& output, |
| 48 const DisplayMode* mode, | 44 const DisplayMode* mode, |
| 49 const gfx::Point& origin, | 45 const gfx::Point& origin, |
| 50 const ConfigureCallback& callback) override; | 46 const ConfigureCallback& callback) override; |
| 51 void CreateFrameBuffer(const gfx::Size& size) override; | 47 void CreateFrameBuffer(const gfx::Size& size) override; |
| 52 bool GetHDCPState(const DisplaySnapshot& output, HDCPState* state) override; | 48 bool GetHDCPState(const DisplaySnapshot& output, HDCPState* state) override; |
| 53 bool SetHDCPState(const DisplaySnapshot& output, HDCPState state) override; | 49 bool SetHDCPState(const DisplaySnapshot& output, HDCPState state) override; |
| 54 std::vector<ColorCalibrationProfile> GetAvailableColorCalibrationProfiles( | 50 std::vector<ColorCalibrationProfile> GetAvailableColorCalibrationProfiles( |
| 55 const DisplaySnapshot& output) override; | 51 const DisplaySnapshot& output) override; |
| 56 bool SetColorCalibrationProfile(const DisplaySnapshot& output, | 52 bool SetColorCalibrationProfile(const DisplaySnapshot& output, |
| (...skipping 21 matching lines...) Expand all Loading... |
| 78 | 74 |
| 79 ScopedVector<DisplaySnapshot> displays_; | 75 ScopedVector<DisplaySnapshot> displays_; |
| 80 ObserverList<NativeDisplayObserver> observers_; | 76 ObserverList<NativeDisplayObserver> observers_; |
| 81 | 77 |
| 82 DISALLOW_COPY_AND_ASSIGN(NativeDisplayDelegateProxy); | 78 DISALLOW_COPY_AND_ASSIGN(NativeDisplayDelegateProxy); |
| 83 }; | 79 }; |
| 84 | 80 |
| 85 } // namespace ui | 81 } // namespace ui |
| 86 | 82 |
| 87 #endif // UI_OZONE_PLATFORM_DRI_NATIVE_DISPLAY_DELEGATE_PROXY_H_ | 83 #endif // UI_OZONE_PLATFORM_DRI_NATIVE_DISPLAY_DELEGATE_PROXY_H_ |
| OLD | NEW |