12345678910111213141516171819202122232425262728293031323334353637383940 |
- // Copyright 2020 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_SYSTEM_PHONEHUB_PHONE_CONNECTING_VIEW_H_
- #define ASH_SYSTEM_PHONEHUB_PHONE_CONNECTING_VIEW_H_
- #include "ash/ash_export.h"
- #include "ash/system/phonehub/phone_hub_content_view.h"
- #include "ui/base/metadata/metadata_header_macros.h"
- #include "ui/views/view.h"
- namespace ash {
- class PhoneHubInterstitialView;
- // A generic connecting view representing this device is trying to connect to
- // your phone either for the first time after user has opted in or for resuming
- // an interrupted connection.
- class ASH_EXPORT PhoneConnectingView : public PhoneHubContentView {
- public:
- METADATA_HEADER(PhoneConnectingView);
- PhoneConnectingView();
- PhoneConnectingView(const PhoneConnectingView&) = delete;
- PhoneConnectingView& operator=(const PhoneConnectingView&) = delete;
- ~PhoneConnectingView() override;
- // PhoneHubContentView:
- phone_hub_metrics::Screen GetScreenForMetrics() const override;
- private:
- // Responsible for displaying the connecting UI contents.
- // Owned by view hierarchy.
- PhoneHubInterstitialView* content_view_ = nullptr;
- };
- } // namespace ash
- #endif // ASH_SYSTEM_PHONEHUB_PHONE_CONNECTING_VIEW_H_
|