summaryrefslogtreecommitdiff
path: root/chromium/ios/chrome/browser/ui/content_suggestions/cells/BUILD.gn
blob: b6d0a04c2bc795f94c19d7db9bf7101b97f99ea6 (plain)
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
# 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_most_visited_action_item.h",
    "content_suggestions_most_visited_action_item.mm",
    "content_suggestions_most_visited_item.h",
    "content_suggestions_most_visited_item.mm",
    "content_suggestions_return_to_recent_tab_item.h",
    "content_suggestions_return_to_recent_tab_item.mm",
  ]
  deps = [
    ":cells_ui",
    "//base",
    "//components/ntp_tiles",
    "//ios/chrome/app/strings",
    "//ios/chrome/browser/ui/collection_view",
    "//ios/chrome/browser/ui/content_suggestions/identifier",
    "//ios/chrome/browser/ui/ntp_tile_views:constants",
    "//ios/chrome/browser/ui/table_view/cells:cells_constants",
    "//ios/chrome/common/ui/colors",
    "//ios/chrome/common/ui/favicon",
    "//ui/base",
    "//url",
  ]
  configs += [ "//build/config/compiler:enable_arc" ]
}

source_set("cells_ui") {
  sources = [
    "content_suggestions_discover_header_item.h",
    "content_suggestions_discover_header_item.mm",
    "content_suggestions_header_item.h",
    "content_suggestions_header_item.mm",
    "content_suggestions_most_visited_action_cell.h",
    "content_suggestions_most_visited_action_cell.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_text_item.h",
    "content_suggestions_text_item.mm",
    "content_suggestions_whats_new_item.h",
    "content_suggestions_whats_new_item.mm",
    "suggested_content.h",
  ]
  deps = [
    "//base",
    "//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/identifier",
    "//ios/chrome/browser/ui/material_components",
    "//ios/chrome/browser/ui/ntp_tile_views",
    "//ios/chrome/browser/ui/ntp_tile_views:constants",
    "//ios/chrome/browser/ui/util",
    "//ios/chrome/common",
    "//ios/chrome/common/ui/colors",
    "//ios/chrome/common/ui/favicon",
    "//ios/chrome/common/ui/util",
    "//ui/base",
  ]
  public_deps = [ "//ios/third_party/material_components_ios" ]
  configs += [ "//build/config/compiler:enable_arc" ]
}

source_set("unit_tests") {
  testonly = true
  sources = [
    "content_suggestions_header_item_unittest.mm",
    "content_suggestions_most_visited_item_unittest.mm",
    "content_suggestions_whats_new_item_unittest.mm",
  ]
  deps = [
    ":cells",
    ":cells_ui",
    "//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" ]
}