tether_connection_pending_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_TETHER_CONNECTION_PENDING_VIEW_H_
  5. #define ASH_SYSTEM_PHONEHUB_TETHER_CONNECTION_PENDING_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 connecting to tether hotspot view shown when resuming an interrupted
  13. // connection to PhoneHub as a result of an in progress tether connection.
  14. class ASH_EXPORT TetherConnectionPendingView : public PhoneHubContentView {
  15. public:
  16. METADATA_HEADER(TetherConnectionPendingView);
  17. TetherConnectionPendingView();
  18. TetherConnectionPendingView(const TetherConnectionPendingView&) = delete;
  19. TetherConnectionPendingView& operator=(const TetherConnectionPendingView&) =
  20. delete;
  21. ~TetherConnectionPendingView() 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_TETHER_CONNECTION_PENDING_VIEW_H_