phone_connected_view.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  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. #ifndef ASH_SYSTEM_PHONEHUB_PHONE_CONNECTED_VIEW_H_
  5. #define ASH_SYSTEM_PHONEHUB_PHONE_CONNECTED_VIEW_H_
  6. #include "ash/ash_export.h"
  7. #include "ash/system/phonehub/phone_hub_content_view.h"
  8. #include "ui/views/view.h"
  9. namespace ash {
  10. namespace phonehub {
  11. class PhoneHubManager;
  12. }
  13. // A view of the Phone Hub panel, displaying phone status and utility actions
  14. // such as phone status, task continuation, etc.
  15. class PhoneConnectedView : public PhoneHubContentView {
  16. public:
  17. explicit PhoneConnectedView(phonehub::PhoneHubManager* phone_hub_manager);
  18. ~PhoneConnectedView() override;
  19. // views::View:
  20. void ChildPreferredSizeChanged(View* child) override;
  21. void ChildVisibilityChanged(View* child) override;
  22. const char* GetClassName() const override;
  23. // PhoneHubContentView:
  24. phone_hub_metrics::Screen GetScreenForMetrics() const override;
  25. };
  26. } // namespace ash
  27. #endif // ASH_SYSTEM_PHONEHUB_PHONE_CONNECTED_VIEW_H_