blob: be5308c148e70d5c049335ba947dfbb5f509710c [file] [log] [blame]
// Copyright 2019 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.
#ifndef ASH_AMBIENT_UI_AMBIENT_CONTAINER_VIEW_H_
#define ASH_AMBIENT_UI_AMBIENT_CONTAINER_VIEW_H_
#include "ash/ash_export.h"
#include "base/macros.h"
#include "ui/views/widget/widget_delegate.h"
namespace ash {
class AmbientAssistantContainerView;
class AmbientViewDelegate;
class PhotoView;
// Container view for ambient mode.
class ASH_EXPORT AmbientContainerView : public views::WidgetDelegateView {
public:
explicit AmbientContainerView(AmbientViewDelegate* delegate);
~AmbientContainerView() override;
// views::View:
const char* GetClassName() const override;
gfx::Size CalculatePreferredSize() const override;
void Layout() override;
private:
void Init();
AmbientViewDelegate* delegate_ = nullptr;
// Owned by view hierarchy.
PhotoView* photo_view_ = nullptr;
AmbientAssistantContainerView* ambient_assistant_container_view_ = nullptr;
DISALLOW_COPY_AND_ASSIGN(AmbientContainerView);
};
} // namespace ash
#endif // ASH_AMBIENT_UI_AMBIENT_CONTAINER_VIEW_H_