blob: 6a72b91c7b203420eb88459a4ab4ee3a87feeca9 [file] [log] [blame]
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ash/display/ash_display_controller.h"
#include "ash/shell.h"
#include "ui/display/manager/chromeos/display_configurator.h"
namespace ash {
AshDisplayController::AshDisplayController() {}
AshDisplayController::~AshDisplayController() {}
void AshDisplayController::BindRequest(
mojom::AshDisplayControllerRequest request) {
bindings_.AddBinding(this, std::move(request));
}
void AshDisplayController::TakeDisplayControl(
TakeDisplayControlCallback callback) {
Shell::Get()->display_configurator()->TakeControl(std::move(callback));
}
void AshDisplayController::RelinquishDisplayControl(
RelinquishDisplayControlCallback callback) {
Shell::Get()->display_configurator()->RelinquishControl(std::move(callback));
}
} // namespace ash