1 // Copyright 2020 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef ASH_SYSTEM_PHONEHUB_PHONE_CONNECTED_VIEW_H_
6 #define ASH_SYSTEM_PHONEHUB_PHONE_CONNECTED_VIEW_H_
7 
8 #include "ash/ash_export.h"
9 #include "ash/system/phonehub/phone_hub_content_view.h"
10 #include "ui/views/view.h"
11 
12 namespace chromeos {
13 namespace phonehub {
14 class PhoneHubManager;
15 }  // namespace phonehub
16 }  // namespace chromeos
17 
18 namespace ash {
19 
20 // A view of the Phone Hub panel, displaying phone status and utility actions
21 // such as phone status, task continuation, etc.
22 class PhoneConnectedView : public PhoneHubContentView {
23  public:
24   explicit PhoneConnectedView(
25       chromeos::phonehub::PhoneHubManager* phone_hub_manager);
26   ~PhoneConnectedView() override;
27 
28   // views::View:
29   void ChildPreferredSizeChanged(View* child) override;
30   void ChildVisibilityChanged(View* child) override;
31   const char* GetClassName() const override;
32 
33   // PhoneHubContentView:
34   phone_hub_metrics::Screen GetScreenForMetrics() const override;
35 };
36 
37 }  // namespace ash
38 
39 #endif  // ASH_SYSTEM_PHONEHUB_PHONE_CONNECTED_VIEW_H_
40