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
50
51
52
53
54
55
56
57
58
ash / public / cpp / wallpaper / online_wallpaper_params.cc [blame]
// Copyright 2021 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ash/public/cpp/wallpaper/online_wallpaper_params.h"
#include <cstdint>
#include <string>
#include "components/account_id/account_id.h"
#include "url/gurl.h"
namespace ash {
OnlineWallpaperParams::OnlineWallpaperParams(
const AccountId& in_account_id,
const std::string& in_collection_id,
WallpaperLayout in_layout,
bool in_preview_mode,
bool in_from_user,
bool in_daily_refresh_enabled,
uint64_t in_unit_id,
const std::vector<OnlineWallpaperVariant>& in_variants)
: account_id(in_account_id),
collection_id(in_collection_id),
layout(in_layout),
preview_mode(in_preview_mode),
from_user(in_from_user),
daily_refresh_enabled(in_daily_refresh_enabled),
unit_id(in_unit_id),
variants(in_variants) {}
OnlineWallpaperParams::OnlineWallpaperParams(
const OnlineWallpaperParams& other) = default;
OnlineWallpaperParams::OnlineWallpaperParams(OnlineWallpaperParams&& other) =
default;
OnlineWallpaperParams& OnlineWallpaperParams::operator=(
const OnlineWallpaperParams& other) = default;
OnlineWallpaperParams::~OnlineWallpaperParams() = default;
std::ostream& operator<<(std::ostream& os,
const OnlineWallpaperParams& params) {
os << "OnlineWallpaperParams:" << std::endl
<< " account_id: " << params.account_id << std::endl
<< " collection_id: " << params.collection_id << std::endl
<< " layout: " << params.layout << std::endl
<< " preview_mode: " << params.preview_mode << std::endl
<< " from_user: " << params.from_user << std::endl
<< " daily_refresh_enabled: " << params.daily_refresh_enabled << std::endl
<< " unit_id: " << params.unit_id << std::endl
<< " variants_size: " << params.variants.size() << std::endl;
return os;
}
} // namespace ash