// Copyright 2020 The Chromium Authors
// 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 "base/memory/raw_ptr.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 {
METADATA_HEADER(PhoneConnectingView, PhoneHubContentView)
public:
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.
raw_ptr<PhoneHubInterstitialView> content_view_ = nullptr;
};
} // namespace ash
#endif // ASH_SYSTEM_PHONEHUB_PHONE_CONNECTING_VIEW_H_