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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 // NativeDisplayDelegate overrides: | 71 // NativeDisplayDelegate overrides: |
72 virtual void Initialize() override; | 72 virtual void Initialize() override; |
73 virtual void GrabServer() override; | 73 virtual void GrabServer() override; |
74 virtual void UngrabServer() override; | 74 virtual void UngrabServer() override; |
75 virtual bool TakeDisplayControl() override; | 75 virtual bool TakeDisplayControl() override; |
76 virtual bool RelinquishDisplayControl() override; | 76 virtual bool RelinquishDisplayControl() override; |
77 virtual void SyncWithServer() override; | 77 virtual void SyncWithServer() override; |
78 virtual void SetBackgroundColor(uint32_t color_argb) override; | 78 virtual void SetBackgroundColor(uint32_t color_argb) override; |
79 virtual void ForceDPMSOn() override; | 79 virtual void ForceDPMSOn() override; |
80 virtual std::vector<DisplaySnapshot*> GetDisplays() override; | 80 virtual std::vector<DisplaySnapshot*> GetDisplays() override; |
| 81 virtual void GetDisplays(const GetDisplaysCallback& callback) override; |
81 virtual void AddMode(const DisplaySnapshot& output, | 82 virtual void AddMode(const DisplaySnapshot& output, |
82 const DisplayMode* mode) override; | 83 const DisplayMode* mode) override; |
83 virtual bool Configure(const DisplaySnapshot& output, | 84 virtual bool Configure(const DisplaySnapshot& output, |
84 const DisplayMode* mode, | 85 const DisplayMode* mode, |
85 const gfx::Point& origin) override; | 86 const gfx::Point& origin) override; |
86 virtual void Configure(const DisplaySnapshot& output, | 87 virtual 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 virtual void CreateFrameBuffer(const gfx::Size& size) override; | 91 virtual void CreateFrameBuffer(const gfx::Size& size) override; |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 | 161 |
161 // A background color used during boot time + multi displays. | 162 // A background color used during boot time + multi displays. |
162 uint32_t background_color_argb_; | 163 uint32_t background_color_argb_; |
163 | 164 |
164 DISALLOW_COPY_AND_ASSIGN(NativeDisplayDelegateX11); | 165 DISALLOW_COPY_AND_ASSIGN(NativeDisplayDelegateX11); |
165 }; | 166 }; |
166 | 167 |
167 } // namespace ui | 168 } // namespace ui |
168 | 169 |
169 #endif // UI_DISPLAY_CHROMEOS_X11_NATIVE_DISPLAY_DELEGATE_X11_H_ | 170 #endif // UI_DISPLAY_CHROMEOS_X11_NATIVE_DISPLAY_DELEGATE_X11_H_ |
OLD | NEW |