Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(367)

Side by Side Diff: ui/display/chromeos/x11/native_display_delegate_x11.h

Issue 1861593002: chromeos: Turn off displays on suspend (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: chromeos: Add functions for configuring cached displays Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698