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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
|
# Copyright 2017 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.
source_set("cells") {
sources = [
"content_suggestions_gesture_commands.h",
"content_suggestions_header_item.h",
"content_suggestions_header_item.mm",
"content_suggestions_module_container.h",
"content_suggestions_module_container.mm",
"content_suggestions_most_visited_action_cell.h",
"content_suggestions_most_visited_action_cell.mm",
"content_suggestions_most_visited_action_item.h",
"content_suggestions_most_visited_action_item.mm",
"content_suggestions_most_visited_cell.h",
"content_suggestions_most_visited_cell.mm",
"content_suggestions_most_visited_constants.h",
"content_suggestions_most_visited_constants.mm",
"content_suggestions_most_visited_item.h",
"content_suggestions_most_visited_item.mm",
"content_suggestions_most_visited_tile_view.h",
"content_suggestions_most_visited_tile_view.mm",
"content_suggestions_parent_item.h",
"content_suggestions_parent_item.mm",
"content_suggestions_return_to_recent_tab_item.h",
"content_suggestions_return_to_recent_tab_item.mm",
"content_suggestions_return_to_recent_tab_view.h",
"content_suggestions_return_to_recent_tab_view.mm",
"content_suggestions_selection_actions.h",
"content_suggestions_shortcut_tile_view.h",
"content_suggestions_shortcut_tile_view.mm",
"content_suggestions_text_item.h",
"content_suggestions_text_item.mm",
"content_suggestions_tile_layout_util.h",
"content_suggestions_tile_layout_util.mm",
"content_suggestions_tile_view.h",
"content_suggestions_tile_view.mm",
"content_suggestions_whats_new_item.h",
"content_suggestions_whats_new_item.mm",
"content_suggestions_whats_new_view.h",
"content_suggestions_whats_new_view.mm",
"suggested_content.h",
]
deps = [
":constants",
"resources:ntp_bookmarks_icon",
"resources:ntp_history_icon",
"resources:ntp_most_visited_tile",
"resources:ntp_readinglist_icon",
"resources:ntp_recent_icon",
"//base",
"//components/ntp_tiles",
"//ios/chrome/app/strings",
"//ios/chrome/browser/ui:feature_flags",
"//ios/chrome/browser/ui/collection_view",
"//ios/chrome/browser/ui/colors",
"//ios/chrome/browser/ui/content_suggestions:constants",
"//ios/chrome/browser/ui/content_suggestions:content_suggestions_constant",
"//ios/chrome/browser/ui/content_suggestions:content_suggestions_ui_util",
"//ios/chrome/browser/ui/content_suggestions:feature_flags",
"//ios/chrome/browser/ui/content_suggestions:public",
"//ios/chrome/browser/ui/content_suggestions/identifier",
"//ios/chrome/browser/ui/icons:symbols",
"//ios/chrome/browser/ui/image_util",
"//ios/chrome/browser/ui/material_components",
"//ios/chrome/browser/ui/util",
"//ios/chrome/common:string_util",
"//ios/chrome/common:timing",
"//ios/chrome/common/ui/colors",
"//ios/chrome/common/ui/favicon",
"//ios/chrome/common/ui/table_view:cells_constants",
"//ios/chrome/common/ui/util",
"//ios/chrome/common/ui/util:dynamic_type_util",
"//ios/third_party/material_components_ios",
"//ui/base",
"//url",
]
public_deps = [ "//ios/third_party/material_components_ios" ]
configs += [ "//build/config/compiler:enable_arc" ]
}
source_set("constants") {
configs += [ "//build/config/compiler:enable_arc" ]
sources = [
"content_suggestions_cells_constants.h",
"content_suggestions_cells_constants.mm",
"content_suggestions_tile_constants.h",
"content_suggestions_tile_constants.mm",
]
deps = [
"//ios/chrome/app/strings:ios_strings_grit",
"//ios/chrome/browser/ui/icons:symbols",
"//ios/third_party/material_components_ios",
"//ui/base:base",
]
}
source_set("unit_tests") {
testonly = true
sources = [
"content_suggestions_header_item_unittest.mm",
"content_suggestions_tile_layout_util_unittest.mm",
"content_suggestions_whats_new_item_unittest.mm",
]
deps = [
":cells",
"//base",
"//ios/chrome/app/strings",
"//ios/chrome/browser/ui/collection_view",
"//ios/chrome/browser/ui/util",
"//ios/chrome/common/ui/favicon",
"//testing/gtest",
"//third_party/ocmock",
"//ui/base",
"//url",
]
configs += [ "//build/config/compiler:enable_arc" ]
}
|