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

Unified Diff: ui/ozone/common/native_display_delegate_ozone.cc

Issue 796263002: Remove synchronous GetDisplays() and Configure() from NativeDisplayDelegate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@async-refactor5
Patch Set: Removed deprecated calls from TestNativeDisplayDelegate and update the ExternalControl test Created 6 years 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 side-by-side diff with in-line comments
Download patch
Index: ui/ozone/common/native_display_delegate_ozone.cc
diff --git a/ui/ozone/common/native_display_delegate_ozone.cc b/ui/ozone/common/native_display_delegate_ozone.cc
index 54cb4539ae1532a4705f7d6c5a67f0f9d8fceed4..ac9fb166bb593aa015e53157e684995cd9faf169 100644
--- a/ui/ozone/common/native_display_delegate_ozone.cc
+++ b/ui/ozone/common/native_display_delegate_ozone.cc
@@ -52,13 +52,9 @@ void NativeDisplayDelegateOzone::ForceDPMSOn() {
NOTIMPLEMENTED();
}
-std::vector<ui::DisplaySnapshot*> NativeDisplayDelegateOzone::GetDisplays() {
- return displays_.get();
-}
-
void NativeDisplayDelegateOzone::GetDisplays(
const GetDisplaysCallback& callback) {
- callback.Run(GetDisplays());
+ callback.Run(displays_.get());
}
void NativeDisplayDelegateOzone::AddMode(const ui::DisplaySnapshot& output,
@@ -66,13 +62,6 @@ void NativeDisplayDelegateOzone::AddMode(const ui::DisplaySnapshot& output,
NOTIMPLEMENTED();
}
-bool NativeDisplayDelegateOzone::Configure(const ui::DisplaySnapshot& output,
- const ui::DisplayMode* mode,
- const gfx::Point& origin) {
- NOTIMPLEMENTED();
- return true;
-}
-
void NativeDisplayDelegateOzone::Configure(const ui::DisplaySnapshot& output,
const ui::DisplayMode* mode,
const gfx::Point& origin,
« no previous file with comments | « ui/ozone/common/native_display_delegate_ozone.h ('k') | ui/ozone/platform/dri/native_display_delegate_dri.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698