blob: 028e5cf16d82a2efab6873aa9958f77f1696fbb7 [file] [log] [blame]
// Copyright 2020 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 "chromecast/ui/aura_components.h"
#include "ui/views/layout/layout_provider.h"
namespace chromecast {
class CastWindowManager;
// Collection of Cast platform objects which only have valid implementations on
// Aura platforms. All getters to this class will return nullptr on non-Aura
// platforms.
// This class helps avoid usage of "#if defined(USE_AURA)" macros by using pure
// virtual interfaces to wrap Aura-specific code. Clients to these interfaces
// can therefore be written in a platform-agnostic way.
class AuraComponentsImpl : public AuraComponents {
explicit AuraComponentsImpl(CastWindowManager* cast_window_manager);
~AuraComponentsImpl() override;
std::unique_ptr<views::LayoutProvider> layout_provider_;
} // namespace chromecast