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

Side by Side Diff: ui/ozone/common/native_display_delegate_ozone.cc

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 #include "ui/ozone/common/native_display_delegate_ozone.h" 5 #include "ui/ozone/common/native_display_delegate_ozone.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/memory/ptr_util.h" 8 #include "base/memory/ptr_util.h"
9 #include "ui/ozone/common/display_snapshot_proxy.h" 9 #include "ui/ozone/common/display_snapshot_proxy.h"
10 #include "ui/ozone/common/display_util.h" 10 #include "ui/ozone/common/display_util.h"
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 } 50 }
51 51
52 void NativeDisplayDelegateOzone::SetBackgroundColor(uint32_t color_argb) { 52 void NativeDisplayDelegateOzone::SetBackgroundColor(uint32_t color_argb) {
53 NOTIMPLEMENTED(); 53 NOTIMPLEMENTED();
54 } 54 }
55 55
56 void NativeDisplayDelegateOzone::ForceDPMSOn() { 56 void NativeDisplayDelegateOzone::ForceDPMSOn() {
57 NOTIMPLEMENTED(); 57 NOTIMPLEMENTED();
58 } 58 }
59 59
60 void NativeDisplayDelegateOzone::GetDisplays( 60 void NativeDisplayDelegateOzone::GetCachedDisplays(
61 const GetDisplaysCallback& callback) { 61 const GetDisplaysCallback& callback) {
62 std::vector<DisplaySnapshot*> displays; 62 std::vector<DisplaySnapshot*> displays;
63 for (const auto& display : displays_) 63 for (const auto& display : displays_)
64 displays.push_back(display.get()); 64 displays.push_back(display.get());
65 callback.Run(displays); 65 callback.Run(displays);
66 } 66 }
67 67
68 void NativeDisplayDelegateOzone::GetDisplays(
69 const GetDisplaysCallback& callback) {
70 GetCachedDisplays(callback);
71 }
72
68 void NativeDisplayDelegateOzone::AddMode(const ui::DisplaySnapshot& output, 73 void NativeDisplayDelegateOzone::AddMode(const ui::DisplaySnapshot& output,
69 const ui::DisplayMode* mode) { 74 const ui::DisplayMode* mode) {
70 NOTIMPLEMENTED(); 75 NOTIMPLEMENTED();
71 } 76 }
72 77
73 void NativeDisplayDelegateOzone::Configure(const ui::DisplaySnapshot& output, 78 void NativeDisplayDelegateOzone::Configure(const ui::DisplaySnapshot& output,
74 const ui::DisplayMode* mode, 79 const ui::DisplayMode* mode,
75 const gfx::Point& origin, 80 const gfx::Point& origin,
76 const ConfigureCallback& callback) { 81 const ConfigureCallback& callback) {
77 NOTIMPLEMENTED(); 82 NOTIMPLEMENTED();
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 void NativeDisplayDelegateOzone::AddObserver(NativeDisplayObserver* observer) { 128 void NativeDisplayDelegateOzone::AddObserver(NativeDisplayObserver* observer) {
124 NOTIMPLEMENTED(); 129 NOTIMPLEMENTED();
125 } 130 }
126 131
127 void NativeDisplayDelegateOzone::RemoveObserver( 132 void NativeDisplayDelegateOzone::RemoveObserver(
128 NativeDisplayObserver* observer) { 133 NativeDisplayObserver* observer) {
129 NOTIMPLEMENTED(); 134 NOTIMPLEMENTED();
130 } 135 }
131 136
132 } // namespace ui 137 } // namespace ui
OLDNEW
« no previous file with comments | « ui/ozone/common/native_display_delegate_ozone.h ('k') | ui/ozone/platform/drm/host/drm_display_host_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698