blob: f0fc75b888ef6fc04e6a3ecdede01acc9cf3f048 [file] [log] [blame]
// 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 <memory>
#include "ash/ash_export.h"
#include "ui/aura/client/window_types.h"
namespace aura {
class Window;
class WindowDelegate;
} // namespace aura
namespace ash {
namespace window_factory {
// All aura::Window creation in Ash goes through this function. It ensures the
// aura::Window is created as appropriate for Ash.
// Exporting solely for tests.
ASH_EXPORT std::unique_ptr<aura::Window> NewWindow(
aura::WindowDelegate* delegate = nullptr,
aura::client::WindowType type = aura::client::WINDOW_TYPE_UNKNOWN);
} // namespace window_factory
} // namespace ash