blob: 4b3444ef7b5717bcac21b8f40b821f56b1c55a3f [file] [edit]
// Copyright 2018 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/ws/window_lookup.h"
#include "ash/shell.h"
#include "ash/ws/window_service_owner.h"
#include "services/ws/window_service.h"
namespace ash {
namespace window_lookup {
aura::Window* GetWindowByClientId(ws::Id transport_id) {
return Shell::Get()
->window_service_owner()
->window_service()
->GetWindowByClientId(transport_id);
}
ws::ClientSpecificId GetFirstWindowTreeClientId() {
return Shell::Get()
->window_service_owner()
->window_service()
->GetFirstWindowTreeClientId();
}
} // namespace window_lookup
} // namespace ash