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 
5 #include "chrome/browser/sharesheet/sharesheet_types.h"
6 
7 namespace sharesheet {
8 
TargetInfo(TargetType type,const base::Optional<gfx::ImageSkia> icon,const base::string16 & launch_name,const base::string16 & display_name,const base::Optional<base::string16> & secondary_display_name,const base::Optional<std::string> & activity_name)9 TargetInfo::TargetInfo(
10     TargetType type,
11     const base::Optional<gfx::ImageSkia> icon,
12     const base::string16& launch_name,
13     const base::string16& display_name,
14     const base::Optional<base::string16>& secondary_display_name,
15     const base::Optional<std::string>& activity_name)
16     : type(type),
17       icon(icon),
18       launch_name(launch_name),
19       display_name(display_name),
20       secondary_display_name(secondary_display_name),
21       activity_name(activity_name) {}
22 
23 TargetInfo::~TargetInfo() = default;
24 
25 TargetInfo::TargetInfo(TargetInfo&& other) = default;
26 
27 TargetInfo& TargetInfo::operator=(TargetInfo&& other) = default;
28 
29 }  // namespace sharesheet
30