| Index: ash/accelerators/accelerator_commands_aura.cc
|
| diff --git a/ash/accelerators/accelerator_commands_aura.cc b/ash/accelerators/accelerator_commands_aura.cc
|
| index 69a65272cc1ad58c99866fdcebf7a1b7989abf13..85c70257a098cfa4c0b0f884b912e8952bf95a71 100644
|
| --- a/ash/accelerators/accelerator_commands_aura.cc
|
| +++ b/ash/accelerators/accelerator_commands_aura.cc
|
| @@ -4,7 +4,6 @@
|
|
|
| #include "ash/accelerators/accelerator_commands_aura.h"
|
|
|
| -#include "ash/common/display/display_info.h"
|
| #include "ash/common/wm/window_state.h"
|
| #include "ash/common/wm_window.h"
|
| #include "ash/display/display_manager.h"
|
| @@ -12,6 +11,7 @@
|
| #include "ash/shell.h"
|
| #include "ash/wm/screen_pinning_controller.h"
|
| #include "base/metrics/user_metrics.h"
|
| +#include "ui/display/manager/display_info.h"
|
|
|
| namespace ash {
|
| namespace accelerators {
|
| @@ -39,9 +39,10 @@ bool ZoomInternalDisplay(bool up) {
|
| int64_t display_id = display_manager->IsInUnifiedMode()
|
| ? DisplayManager::kUnifiedDisplayId
|
| : display_manager->GetDisplayIdForUIScaling();
|
| - const DisplayInfo& display_info = display_manager->GetDisplayInfo(display_id);
|
| + const ui::DisplayInfo& display_info =
|
| + display_manager->GetDisplayInfo(display_id);
|
|
|
| - scoped_refptr<ManagedDisplayMode> mode;
|
| + scoped_refptr<ui::ManagedDisplayMode> mode;
|
| if (display_manager->IsInUnifiedMode())
|
| mode = GetDisplayModeForNextResolution(display_info, up);
|
| else
|
| @@ -57,14 +58,15 @@ void ResetInternalDisplayZoom() {
|
| DisplayManager* display_manager = Shell::GetInstance()->display_manager();
|
|
|
| if (display_manager->IsInUnifiedMode()) {
|
| - const DisplayInfo& display_info =
|
| + const ui::DisplayInfo& display_info =
|
| display_manager->GetDisplayInfo(DisplayManager::kUnifiedDisplayId);
|
| - const DisplayInfo::ManagedDisplayModeList& modes =
|
| + const ui::DisplayInfo::ManagedDisplayModeList& modes =
|
| display_info.display_modes();
|
| - auto iter = std::find_if(modes.begin(), modes.end(),
|
| - [](const scoped_refptr<ManagedDisplayMode>& mode) {
|
| - return mode->native();
|
| - });
|
| + auto iter =
|
| + std::find_if(modes.begin(), modes.end(),
|
| + [](const scoped_refptr<ui::ManagedDisplayMode>& mode) {
|
| + return mode->native();
|
| + });
|
| display_manager->SetDisplayMode(DisplayManager::kUnifiedDisplayId, *iter);
|
| } else {
|
| SetDisplayUIScale(display_manager->GetDisplayIdForUIScaling(), 1.0f);
|
|
|