#include "ash/game_dashboard/game_dashboard_controller.h"
#include <memory>
#include "ash/public/cpp/app_types_util.h"
#include "ui/aura/window.h"
namespace ash {
namespace {
GameDashboardController* g_instance = nullptr;
}
GameDashboardController* GameDashboardController::Get() {
return g_instance;
}
GameDashboardController::GameDashboardController(
std::unique_ptr<GameDashboardDelegate> delegate)
: delegate_(std::move(delegate)) {
DCHECK_EQ(g_instance, nullptr);
g_instance = this;
}
GameDashboardController::~GameDashboardController() {
DCHECK_EQ(g_instance, this);
g_instance = nullptr;
}
bool GameDashboardController::IsSupported(aura::Window* window) const {
return IsArcWindow(window);
}
}