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_DISPLAY_CHROMEOS_X11_NATIVE_DISPLAY_DELEGATE_X11_H_ | 5 #ifndef UI_DISPLAY_CHROMEOS_X11_NATIVE_DISPLAY_DELEGATE_X11_H_ |
6 #define UI_DISPLAY_CHROMEOS_X11_NATIVE_DISPLAY_DELEGATE_X11_H_ | 6 #define UI_DISPLAY_CHROMEOS_X11_NATIVE_DISPLAY_DELEGATE_X11_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 // NativeDisplayDelegate overrides: | 74 // NativeDisplayDelegate overrides: |
75 void Initialize() override; | 75 void Initialize() override; |
76 void GrabServer() override; | 76 void GrabServer() override; |
77 void UngrabServer() override; | 77 void UngrabServer() override; |
78 void TakeDisplayControl(const DisplayControlCallback& callback) override; | 78 void TakeDisplayControl(const DisplayControlCallback& callback) override; |
79 void RelinquishDisplayControl( | 79 void RelinquishDisplayControl( |
80 const DisplayControlCallback& callback) override; | 80 const DisplayControlCallback& callback) override; |
81 void SyncWithServer() override; | 81 void SyncWithServer() override; |
82 void SetBackgroundColor(uint32_t color_argb) override; | 82 void SetBackgroundColor(uint32_t color_argb) override; |
83 void ForceDPMSOn() override; | 83 void ForceDPMSOn() override; |
| 84 void GetCachedDisplays(const GetDisplaysCallback& callback) override; |
84 void GetDisplays(const GetDisplaysCallback& callback) override; | 85 void GetDisplays(const GetDisplaysCallback& callback) override; |
85 void AddMode(const DisplaySnapshot& output, const DisplayMode* mode) override; | 86 void AddMode(const DisplaySnapshot& output, const DisplayMode* mode) override; |
86 void Configure(const DisplaySnapshot& output, | 87 void Configure(const DisplaySnapshot& output, |
87 const DisplayMode* mode, | 88 const DisplayMode* mode, |
88 const gfx::Point& origin, | 89 const gfx::Point& origin, |
89 const ConfigureCallback& callback) override; | 90 const ConfigureCallback& callback) override; |
90 void CreateFrameBuffer(const gfx::Size& size) override; | 91 void CreateFrameBuffer(const gfx::Size& size) override; |
91 void GetHDCPState(const DisplaySnapshot& output, | 92 void GetHDCPState(const DisplaySnapshot& output, |
92 const GetHDCPStateCallback& callback) override; | 93 const GetHDCPStateCallback& callback) override; |
93 void SetHDCPState(const DisplaySnapshot& output, | 94 void SetHDCPState(const DisplaySnapshot& output, |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 | 171 |
171 // A background color used during boot time + multi displays. | 172 // A background color used during boot time + multi displays. |
172 uint32_t background_color_argb_; | 173 uint32_t background_color_argb_; |
173 | 174 |
174 DISALLOW_COPY_AND_ASSIGN(NativeDisplayDelegateX11); | 175 DISALLOW_COPY_AND_ASSIGN(NativeDisplayDelegateX11); |
175 }; | 176 }; |
176 | 177 |
177 } // namespace ui | 178 } // namespace ui |
178 | 179 |
179 #endif // UI_DISPLAY_CHROMEOS_X11_NATIVE_DISPLAY_DELEGATE_X11_H_ | 180 #endif // UI_DISPLAY_CHROMEOS_X11_NATIVE_DISPLAY_DELEGATE_X11_H_ |
OLD | NEW |