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_DRI_H_ | 5 #ifndef UI_OZONE_PLATFORM_DRI_NATIVE_DISPLAY_DELEGATE_DRI_H_ |
6 #define UI_OZONE_PLATFORM_DRI_NATIVE_DISPLAY_DELEGATE_DRI_H_ | 6 #define UI_OZONE_PLATFORM_DRI_NATIVE_DISPLAY_DELEGATE_DRI_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.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 19 matching lines...) Expand all Loading... |
30 // NativeDisplayDelegate overrides: | 30 // NativeDisplayDelegate overrides: |
31 void Initialize() override; | 31 void Initialize() override; |
32 void GrabServer() override; | 32 void GrabServer() override; |
33 void UngrabServer() override; | 33 void UngrabServer() override; |
34 bool TakeDisplayControl() override; | 34 bool TakeDisplayControl() override; |
35 bool RelinquishDisplayControl() override; | 35 bool RelinquishDisplayControl() override; |
36 void SyncWithServer() override; | 36 void SyncWithServer() override; |
37 void SetBackgroundColor(uint32_t color_argb) override; | 37 void SetBackgroundColor(uint32_t color_argb) override; |
38 void ForceDPMSOn() override; | 38 void ForceDPMSOn() override; |
39 std::vector<DisplaySnapshot*> GetDisplays() override; | 39 std::vector<DisplaySnapshot*> GetDisplays() override; |
| 40 void GetDisplays(const GetDisplaysCallback& callback) override; |
40 void AddMode(const DisplaySnapshot& output, const DisplayMode* mode) override; | 41 void AddMode(const DisplaySnapshot& output, const DisplayMode* mode) override; |
41 bool Configure(const DisplaySnapshot& output, | 42 bool Configure(const DisplaySnapshot& output, |
42 const DisplayMode* mode, | 43 const DisplayMode* mode, |
43 const gfx::Point& origin) override; | 44 const gfx::Point& origin) override; |
44 void Configure(const DisplaySnapshot& output, | 45 void Configure(const DisplaySnapshot& output, |
45 const DisplayMode* mode, | 46 const DisplayMode* mode, |
46 const gfx::Point& origin, | 47 const gfx::Point& origin, |
47 const ConfigureCallback& callback) override; | 48 const ConfigureCallback& callback) override; |
48 void CreateFrameBuffer(const gfx::Size& size) override; | 49 void CreateFrameBuffer(const gfx::Size& size) override; |
49 bool GetHDCPState(const DisplaySnapshot& output, HDCPState* state) override; | 50 bool GetHDCPState(const DisplaySnapshot& output, HDCPState* state) override; |
(...skipping 20 matching lines...) Expand all Loading... |
70 ScopedVector<const DisplayMode> cached_modes_; | 71 ScopedVector<const DisplayMode> cached_modes_; |
71 ScopedVector<DisplaySnapshotDri> cached_displays_; | 72 ScopedVector<DisplaySnapshotDri> cached_displays_; |
72 ObserverList<NativeDisplayObserver> observers_; | 73 ObserverList<NativeDisplayObserver> observers_; |
73 | 74 |
74 DISALLOW_COPY_AND_ASSIGN(NativeDisplayDelegateDri); | 75 DISALLOW_COPY_AND_ASSIGN(NativeDisplayDelegateDri); |
75 }; | 76 }; |
76 | 77 |
77 } // namespace ui | 78 } // namespace ui |
78 | 79 |
79 #endif // UI_OZONE_PLATFORM_DRI_NATIVE_DISPLAY_DELEGATE_DRI_H_ | 80 #endif // UI_OZONE_PLATFORM_DRI_NATIVE_DISPLAY_DELEGATE_DRI_H_ |
OLD | NEW |