1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
ash / system / nearby_share / nearby_share_detailed_view.h [blame]
// Copyright 2024 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_NEARBY_SHARE_NEARBY_SHARE_DETAILED_VIEW_H_
#define ASH_SYSTEM_NEARBY_SHARE_NEARBY_SHARE_DETAILED_VIEW_H_
#include <memory>
#include "ash/ash_export.h"
namespace views {
class View;
} // namespace views
namespace ash {
class DetailedViewDelegate;
// Defines the interface used to interact with the detailed Quick Share
// (formerly Nearby Share) page.
class ASH_EXPORT NearbyShareDetailedView {
public:
class Factory {
public:
Factory(const Factory&) = delete;
const Factory& operator=(const Factory&) = delete;
virtual ~Factory() = default;
static std::unique_ptr<NearbyShareDetailedView> Create(
DetailedViewDelegate* detailed_view_delegate);
protected:
Factory() = default;
};
NearbyShareDetailedView(const NearbyShareDetailedView&) = delete;
NearbyShareDetailedView& operator=(const NearbyShareDetailedView&) = delete;
virtual ~NearbyShareDetailedView() = default;
virtual views::View* GetAsView() = 0;
protected:
NearbyShareDetailedView() = default;
};
} // namespace ash
#endif // ASH_SYSTEM_NEARBY_SHARE_NEARBY_SHARE_DETAILED_VIEW_H_