Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(652)

Side by Side Diff: ios/chrome/browser/tabs/BUILD.gn

Issue 2621083003: Implement 1:N mapping from ios::ChromeBrowserState to TabModel. (Closed)
Patch Set: Use NSMutableSet<TabModel*>* to hold the TabModels. Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | ios/chrome/browser/tabs/tab_model.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2016 The Chromium Authors. All rights reserved. 1 # Copyright 2016 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 source_set("tabs") { 5 source_set("tabs") {
6 sources = [ 6 sources = [
7 "tab.h", 7 "tab.h",
8 "tab_delegate.h", 8 "tab_delegate.h",
9 "tab_dialog_delegate.h", 9 "tab_dialog_delegate.h",
10 "tab_model.h", 10 "tab_model.h",
11 "tab_model_list.h",
11 "tab_model_observer.h", 12 "tab_model_observer.h",
12 "tab_model_order_controller.h", 13 "tab_model_order_controller.h",
13 "tab_model_synced_window_delegate.h", 14 "tab_model_synced_window_delegate.h",
14 "tab_model_synced_window_delegate_getter.h", 15 "tab_model_synced_window_delegate_getter.h",
15 "tab_private.h", 16 "tab_private.h",
16 "tab_snapshotting_delegate.h", 17 "tab_snapshotting_delegate.h",
17 ] 18 ]
18 deps = [ 19 deps = [
19 "//components/sessions", 20 "//components/sessions",
20 "//components/signin/ios/browser", 21 "//components/signin/ios/browser",
21 "//components/sync_sessions", 22 "//components/sync_sessions",
22 "//ios/net", 23 "//ios/net",
23 "//ios/web", 24 "//ios/web",
24 "//ui/base", 25 "//ui/base",
25 ] 26 ]
26 libs = [ "UIKit.framework" ] 27 libs = [ "UIKit.framework" ]
27 } 28 }
28 29
29 source_set("tabs_internal") { 30 source_set("tabs_internal") {
30 sources = [ 31 sources = [
31 "tab.mm", 32 "tab.mm",
32 "tab_model.mm", 33 "tab_model.mm",
33 "tab_model_order_controller.mm", 34 "tab_model_order_controller.mm",
34 "tab_model_synced_window_delegate.mm", 35 "tab_model_synced_window_delegate.mm",
35 "tab_model_synced_window_delegate_getter.mm", 36 "tab_model_synced_window_delegate_getter.mm",
36 ] 37 ]
37 deps = [ 38 deps = [
38 ":tabs", 39 ":tabs",
40 ":tabs_internal_arc",
39 "//base", 41 "//base",
40 "//components/content_settings/core/browser", 42 "//components/content_settings/core/browser",
41 "//components/favicon/core", 43 "//components/favicon/core",
42 "//components/favicon/ios", 44 "//components/favicon/ios",
43 "//components/google/core/browser", 45 "//components/google/core/browser",
44 "//components/history/core/browser", 46 "//components/history/core/browser",
45 "//components/history/ios/browser", 47 "//components/history/ios/browser",
46 "//components/infobars/core", 48 "//components/infobars/core",
47 "//components/keyed_service/core", 49 "//components/keyed_service/core",
48 "//components/metrics_services_manager", 50 "//components/metrics_services_manager",
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 "//ios/chrome/browser/web", 101 "//ios/chrome/browser/web",
100 "//ios/chrome/browser/web:web_internal", 102 "//ios/chrome/browser/web:web_internal",
101 "//ios/net", 103 "//ios/net",
102 "//ios/public/provider/chrome/browser", 104 "//ios/public/provider/chrome/browser",
103 "//ios/public/provider/chrome/browser/native_app_launcher", 105 "//ios/public/provider/chrome/browser/native_app_launcher",
104 "//ios/web", 106 "//ios/web",
105 "//net", 107 "//net",
106 "//ui/base", 108 "//ui/base",
107 "//url", 109 "//url",
108 ] 110 ]
111 allow_circular_includes_from = [ ":tabs_internal_arc" ]
109 libs = [ 112 libs = [
110 "CoreLocation.framework", 113 "CoreLocation.framework",
111 "UIKit.framework", 114 "UIKit.framework",
112 ] 115 ]
113 } 116 }
114 117
118 source_set("tabs_internal_arc") {
119 sources = [
120 "tab_model_list.mm",
121 ]
122 deps = [
123 ":tabs",
124 "//base",
125 "//ios/chrome/browser/browser_state",
126 ]
127 libs = [ "Foundation.framework" ]
128 configs += [ "//build/config/compiler:enable_arc" ]
129 }
130
115 source_set("unit_tests") { 131 source_set("unit_tests") {
116 testonly = true 132 testonly = true
117 sources = [ 133 sources = [
118 "tab_model_order_controller_unittest.mm", 134 "tab_model_order_controller_unittest.mm",
119 "tab_model_unittest.mm", 135 "tab_model_unittest.mm",
120 "tab_unittest.mm", 136 "tab_unittest.mm",
121 ] 137 ]
122 deps = [ 138 deps = [
123 ":tabs", 139 ":tabs",
124 ":tabs_internal", 140 ":tabs_internal",
141 ":unit_tests_arc",
125 "//base", 142 "//base",
126 "//components/bookmarks/test", 143 "//components/bookmarks/test",
127 "//components/history/core/browser", 144 "//components/history/core/browser",
128 "//components/keyed_service/core", 145 "//components/keyed_service/core",
129 "//ios/chrome/browser", 146 "//ios/chrome/browser",
130 "//ios/chrome/browser/bookmarks", 147 "//ios/chrome/browser/bookmarks",
131 "//ios/chrome/browser/browser_state:test_support", 148 "//ios/chrome/browser/browser_state:test_support",
132 "//ios/chrome/browser/history", 149 "//ios/chrome/browser/history",
133 "//ios/chrome/browser/infobars", 150 "//ios/chrome/browser/infobars",
134 "//ios/chrome/browser/sessions", 151 "//ios/chrome/browser/sessions",
135 "//ios/chrome/browser/sessions:test_support", 152 "//ios/chrome/browser/sessions:test_support",
136 "//ios/chrome/browser/ui:ui_internal", 153 "//ios/chrome/browser/ui:ui_internal",
137 "//ios/chrome/browser/web:web_internal", 154 "//ios/chrome/browser/web:web_internal",
138 "//ios/chrome/test:test_support", 155 "//ios/chrome/test:test_support",
139 "//ios/public/provider/chrome/browser", 156 "//ios/public/provider/chrome/browser",
140 "//ios/public/provider/chrome/browser:test_support", 157 "//ios/public/provider/chrome/browser:test_support",
141 "//ios/public/provider/chrome/browser/native_app_launcher:test_support", 158 "//ios/public/provider/chrome/browser/native_app_launcher:test_support",
142 "//ios/testing:ocmock_support", 159 "//ios/testing:ocmock_support",
143 "//ios/web", 160 "//ios/web",
144 "//ios/web:test_support", 161 "//ios/web:test_support",
145 "//net", 162 "//net",
146 "//testing/gtest", 163 "//testing/gtest",
147 "//third_party/ocmock", 164 "//third_party/ocmock",
148 ] 165 ]
149 } 166 }
167
168 source_set("unit_tests_arc") {
169 testonly = true
170 sources = [
171 "tab_model_list_unittest.mm",
172 ]
173 deps = [
174 ":tabs",
175 ":tabs_internal",
176 "//base",
177 "//ios/chrome/browser/browser_state:test_support",
178 "//ios/chrome/browser/sessions:test_support",
179 "//ios/web:test_support",
180 "//testing/gtest",
181 ]
182 configs += [ "//build/config/compiler:enable_arc" ]
183 }
OLDNEW
« no previous file with comments | « no previous file | ios/chrome/browser/tabs/tab_model.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698