phone_connecting_view.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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_CONNECTING_VIEW_H_
  5. #define ASH_SYSTEM_PHONEHUB_PHONE_CONNECTING_VIEW_H_
  6. #include "ash/ash_export.h"
  7. #include "ash/system/phonehub/phone_hub_content_view.h"
  8. #include "ui/base/metadata/metadata_header_macros.h"
  9. #include "ui/views/view.h"
  10. namespace ash {
  11. class PhoneHubInterstitialView;
  12. // A generic connecting view representing this device is trying to connect to
  13. // your phone either for the first time after user has opted in or for resuming
  14. // an interrupted connection.
  15. class ASH_EXPORT PhoneConnectingView : public PhoneHubContentView {
  16. public:
  17. METADATA_HEADER(PhoneConnectingView);
  18. PhoneConnectingView();
  19. PhoneConnectingView(const PhoneConnectingView&) = delete;
  20. PhoneConnectingView& operator=(const PhoneConnectingView&) = delete;
  21. ~PhoneConnectingView() override;
  22. // PhoneHubContentView:
  23. phone_hub_metrics::Screen GetScreenForMetrics() const override;
  24. private:
  25. // Responsible for displaying the connecting UI contents.
  26. // Owned by view hierarchy.
  27. PhoneHubInterstitialView* content_view_ = nullptr;
  28. };
  29. } // namespace ash
  30. #endif // ASH_SYSTEM_PHONEHUB_PHONE_CONNECTING_VIEW_H_