12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- // Copyright 2022 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_GLANCEABLES_GLANCEABLES_VIEW_H_
- #define ASH_GLANCEABLES_GLANCEABLES_VIEW_H_
- #include "ash/ash_export.h"
- #include "ui/views/view.h"
- namespace views {
- class BoxLayout;
- class Label;
- } // namespace views
- namespace ash {
- class GlanceablesWeatherView;
- class GlanceablesWelcomeLabel;
- // Container view for the "welcome back" glanceables screen shown on login.
- class ASH_EXPORT GlanceablesView : public views::View {
- public:
- GlanceablesView();
- GlanceablesView(const GlanceablesView&) = delete;
- GlanceablesView& operator=(const GlanceablesView&) = delete;
- ~GlanceablesView() override;
- // views::View:
- void OnBoundsChanged(const gfx::Rect& previous_bounds) override;
- void OnThemeChanged() override;
- GlanceablesWelcomeLabel* welcome_label_for_test() { return welcome_label_; }
- GlanceablesWeatherView* weather_view_for_test() { return weather_view_; }
- private:
- views::BoxLayout* layout_ = nullptr;
- GlanceablesWelcomeLabel* welcome_label_ = nullptr;
- GlanceablesWeatherView* weather_view_ = nullptr;
- views::Label* up_next_label_ = nullptr;
- views::Label* restore_session_label_ = nullptr;
- };
- } // namespace ash
- #endif // ASH_GLANCEABLES_GLANCEABLES_VIEW_H_
|