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

Unified Diff: extensions/browser/api/system_display/display_info_provider.cc

Issue 2802603005: MD Settings: Display: Add unified desktop control and modify api (Closed)
Patch Set: Fix closure and tests Created 3 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 side-by-side diff with in-line comments
Download patch
Index: extensions/browser/api/system_display/display_info_provider.cc
diff --git a/extensions/browser/api/system_display/display_info_provider.cc b/extensions/browser/api/system_display/display_info_provider.cc
index e6c75ef15612b03585be3cd92b480d95cb9bdad0..7d1d4fa1b04983ebdd06afdf716d827f44b7c258 100644
--- a/extensions/browser/api/system_display/display_info_provider.cc
+++ b/extensions/browser/api/system_display/display_info_provider.cc
@@ -61,6 +61,7 @@ api::system_display::DisplayUnitInfo DisplayInfoProvider::CreateDisplayUnitInfo(
unit.is_primary = (display.id() == primary_display_id);
unit.is_internal = display.IsInternal();
unit.is_enabled = true;
+ unit.is_unified = false;
unit.rotation = RotationToDegrees(display.rotation());
unit.bounds.left = bounds.x();
unit.bounds.top = bounds.y();
@@ -83,7 +84,7 @@ bool DisplayInfoProvider::SetDisplayLayout(const DisplayLayoutList& layout) {
void DisplayInfoProvider::EnableUnifiedDesktop(bool enable) {}
DisplayInfoProvider::DisplayUnitInfoList
-DisplayInfoProvider::GetAllDisplaysInfo() {
+DisplayInfoProvider::GetAllDisplaysInfo(bool /* single_unified*/) {
display::Screen* screen = display::Screen::GetScreen();
int64_t primary_id = screen->GetPrimaryDisplay().id();
std::vector<display::Display> displays = screen->GetAllDisplays();

Powered by Google App Engine
This is Rietveld 408576698