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

Side by Side Diff: ui/ozone/platform/drm/host/drm_native_display_delegate.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, 7 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_OZONE_PLATFORM_DRM_HOST_DRM_NATIVE_DISPLAY_DELEGATE_H_ 5 #ifndef UI_OZONE_PLATFORM_DRM_HOST_DRM_NATIVE_DISPLAY_DELEGATE_H_
6 #define UI_OZONE_PLATFORM_DRM_HOST_DRM_NATIVE_DISPLAY_DELEGATE_H_ 6 #define UI_OZONE_PLATFORM_DRM_HOST_DRM_NATIVE_DISPLAY_DELEGATE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 14 matching lines...) Expand all
25 // NativeDisplayDelegate overrides: 25 // NativeDisplayDelegate overrides:
26 void Initialize() override; 26 void Initialize() override;
27 void GrabServer() override; 27 void GrabServer() override;
28 void UngrabServer() override; 28 void UngrabServer() override;
29 void TakeDisplayControl(const DisplayControlCallback& callback) override; 29 void TakeDisplayControl(const DisplayControlCallback& callback) override;
30 void RelinquishDisplayControl( 30 void RelinquishDisplayControl(
31 const DisplayControlCallback& callback) override; 31 const DisplayControlCallback& callback) override;
32 void SyncWithServer() override; 32 void SyncWithServer() override;
33 void SetBackgroundColor(uint32_t color_argb) override; 33 void SetBackgroundColor(uint32_t color_argb) override;
34 void ForceDPMSOn() override; 34 void ForceDPMSOn() override;
35 void GetCachedDisplays(const GetDisplaysCallback& callback) override;
35 void GetDisplays(const GetDisplaysCallback& callback) override; 36 void GetDisplays(const GetDisplaysCallback& callback) override;
36 void AddMode(const ui::DisplaySnapshot& output, 37 void AddMode(const ui::DisplaySnapshot& output,
37 const ui::DisplayMode* mode) override; 38 const ui::DisplayMode* mode) override;
38 void Configure(const ui::DisplaySnapshot& output, 39 void Configure(const ui::DisplaySnapshot& output,
39 const ui::DisplayMode* mode, 40 const ui::DisplayMode* mode,
40 const gfx::Point& origin, 41 const gfx::Point& origin,
41 const ConfigureCallback& callback) override; 42 const ConfigureCallback& callback) override;
42 void CreateFrameBuffer(const gfx::Size& size) override; 43 void CreateFrameBuffer(const gfx::Size& size) override;
43 void GetHDCPState(const ui::DisplaySnapshot& output, 44 void GetHDCPState(const ui::DisplaySnapshot& output,
44 const GetHDCPStateCallback& callback) override; 45 const GetHDCPStateCallback& callback) override;
(...skipping 17 matching lines...) Expand all
62 DrmDisplayHostManager* display_manager_; // Not owned. 63 DrmDisplayHostManager* display_manager_; // Not owned.
63 64
64 base::ObserverList<NativeDisplayObserver> observers_; 65 base::ObserverList<NativeDisplayObserver> observers_;
65 66
66 DISALLOW_COPY_AND_ASSIGN(DrmNativeDisplayDelegate); 67 DISALLOW_COPY_AND_ASSIGN(DrmNativeDisplayDelegate);
67 }; 68 };
68 69
69 } // namespace ui 70 } // namespace ui
70 71
71 #endif // UI_OZONE_PLATFORM_DRM_HOST_DRM_NATIVE_DISPLAY_DELEGATE_H_ 72 #endif // UI_OZONE_PLATFORM_DRM_HOST_DRM_NATIVE_DISPLAY_DELEGATE_H_
OLDNEW
« no previous file with comments | « ui/ozone/platform/drm/host/drm_display_host_manager.cc ('k') | ui/ozone/platform/drm/host/drm_native_display_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698