1 # Copyright 2014 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.
5 import("//build/config/ui.gni")
6 import("//testing/test.gni")
8 component("app_list") {
10 "app_list_constants.cc",
11 "app_list_constants.h",
13 "app_list_folder_item.cc",
14 "app_list_folder_item.h",
17 "app_list_item_list.cc",
18 "app_list_item_list.h",
19 "app_list_item_list_observer.h",
20 "app_list_item_observer.h",
25 "app_list_model_observer.h",
26 "app_list_switches.cc",
27 "app_list_switches.h",
28 "app_list_view_delegate.cc",
29 "app_list_view_delegate.h",
32 "pagination_controller.cc",
33 "pagination_controller.h",
34 "pagination_model.cc",
36 "pagination_model_observer.h",
37 "search/dictionary_data_store.cc",
38 "search/dictionary_data_store.h",
41 "search/history_data.cc",
42 "search/history_data.h",
43 "search/history_data_store.cc",
44 "search/history_data_store.h",
45 "search/history_types.h",
48 "search/term_break_iterator.cc",
49 "search/term_break_iterator.h",
50 "search/tokenized_string.cc",
51 "search/tokenized_string.h",
52 "search/tokenized_string_char_iterator.cc",
53 "search/tokenized_string_char_iterator.h",
54 "search/tokenized_string_match.cc",
55 "search/tokenized_string_match.h",
56 "search_box_model.cc",
58 "search_box_model_observer.h",
59 "search_controller.cc",
60 "search_controller.h",
67 "speech_ui_model_observer.h",
70 defines = [ "APP_LIST_IMPLEMENTATION" ]
75 "//base/third_party/dynamic_annotations",
76 "//components/keyed_service/core",
83 "//ui/events:events_base",
99 "views/all_apps_tile_item_view.cc",
100 "views/all_apps_tile_item_view.h",
101 "views/app_list_background.cc",
102 "views/app_list_background.h",
103 "views/app_list_drag_and_drop_host.h",
104 "views/app_list_folder_view.cc",
105 "views/app_list_folder_view.h",
106 "views/app_list_item_view.cc",
107 "views/app_list_item_view.h",
108 "views/app_list_main_view.cc",
109 "views/app_list_main_view.h",
110 "views/app_list_menu_views.cc",
111 "views/app_list_menu_views.h",
112 "views/app_list_page.cc",
113 "views/app_list_page.h",
114 "views/app_list_view.cc",
115 "views/app_list_view.h",
116 "views/app_list_view_observer.h",
117 "views/apps_container_view.cc",
118 "views/apps_container_view.h",
119 "views/apps_grid_view.cc",
120 "views/apps_grid_view.h",
121 "views/apps_grid_view_delegate.h",
122 "views/apps_grid_view_folder_delegate.h",
123 "views/cached_label.cc",
124 "views/cached_label.h",
125 "views/contents_view.cc",
126 "views/contents_view.h",
127 "views/custom_launcher_page_view.cc",
128 "views/custom_launcher_page_view.h",
129 "views/folder_background_view.cc",
130 "views/folder_background_view.h",
131 "views/folder_header_view.cc",
132 "views/folder_header_view.h",
133 "views/folder_header_view_delegate.h",
134 "views/page_switcher.cc",
135 "views/page_switcher.h",
136 "views/progress_bar_view.cc",
137 "views/progress_bar_view.h",
138 "views/pulsing_block_view.cc",
139 "views/pulsing_block_view.h",
140 "views/search_box_view.cc",
141 "views/search_box_view.h",
142 "views/search_box_view_delegate.h",
143 "views/search_result_actions_view.cc",
144 "views/search_result_actions_view.h",
145 "views/search_result_container_view.cc",
146 "views/search_result_container_view.h",
147 "views/search_result_list_view.cc",
148 "views/search_result_list_view.h",
149 "views/search_result_list_view_delegate.h",
150 "views/search_result_page_view.cc",
151 "views/search_result_page_view.h",
152 "views/search_result_tile_item_list_view.cc",
153 "views/search_result_tile_item_list_view.h",
154 "views/search_result_tile_item_view.cc",
155 "views/search_result_tile_item_view.h",
156 "views/search_result_view.cc",
157 "views/search_result_view.h",
158 "views/speech_view.cc",
159 "views/speech_view.h",
160 "views/start_page_view.cc",
161 "views/start_page_view.h",
162 "views/tile_item_view.cc",
163 "views/tile_item_view.h",
164 "views/top_icon_animation_view.cc",
165 "views/top_icon_animation_view.h",
175 "cocoa/app_list_pager_view.h",
176 "cocoa/app_list_pager_view.mm",
177 "cocoa/app_list_view_controller.h",
178 "cocoa/app_list_view_controller.mm",
179 "cocoa/app_list_window_controller.h",
180 "cocoa/app_list_window_controller.mm",
181 "cocoa/apps_collection_view_drag_manager.h",
182 "cocoa/apps_collection_view_drag_manager.mm",
183 "cocoa/apps_grid_controller.h",
184 "cocoa/apps_grid_controller.mm",
185 "cocoa/apps_grid_view_item.h",
186 "cocoa/apps_grid_view_item.mm",
187 "cocoa/apps_pagination_model_observer.h",
188 "cocoa/apps_search_box_controller.h",
189 "cocoa/apps_search_box_controller.mm",
190 "cocoa/apps_search_results_controller.h",
191 "cocoa/apps_search_results_controller.mm",
192 "cocoa/apps_search_results_model_bridge.h",
193 "cocoa/apps_search_results_model_bridge.mm",
194 "cocoa/item_drag_controller.h",
195 "cocoa/item_drag_controller.mm",
196 "cocoa/scroll_view_with_no_scrollbars.h",
197 "cocoa/scroll_view_with_no_scrollbars.mm",
199 deps += [ "//third_party/google_toolbox_for_mac" ]
200 libs = [ "QuartzCore.framework" ]
204 static_library("test_support") {
206 "test/app_list_test_model.cc",
207 "test/app_list_test_model.h",
208 "test/app_list_test_view_delegate.cc",
209 "test/app_list_test_view_delegate.h",
210 "test/test_search_result.cc",
211 "test/test_search_result.h",
223 if (is_linux && !is_chromeos) {
224 # TODO(GYP): Figure out which of these work and are needed on other platforms.
226 executable("app_list_demo") {
230 "demo/app_list_demo_views.cc",
238 "//content/public/browser",
244 "//ui/resources:ui_test_pak",
246 "//ui/views_content_client",
247 "//ui/views/controls/webview",
250 configs -= [ "//build/config/win:console" ]
251 configs += [ "//build/config/win:windowed" ]
255 "//content:content_startup_helper_win",
262 test("app_list_unittests") {
264 "app_list_item_list_unittest.cc",
265 "app_list_model_unittest.cc",
266 "folder_image_unittest.cc",
267 "pagination_model_unittest.cc",
268 "search/history_data_store_unittest.cc",
269 "search/mixer_unittest.cc",
270 "search/term_break_iterator_unittest.cc",
271 "search/tokenized_string_char_iterator_unittest.cc",
272 "search/tokenized_string_match_unittest.cc",
273 "search/tokenized_string_unittest.cc",
274 "test/run_all_unittests.cc",
277 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
283 "//base/test:test_support",
289 "//ui/events:test_support",
292 "//ui/resources:ui_test_pak",
297 "views/app_list_main_view_unittest.cc",
298 "views/app_list_view_unittest.cc",
299 "views/apps_grid_view_unittest.cc",
300 "views/folder_header_view_unittest.cc",
301 "views/search_box_view_unittest.cc",
302 "views/search_result_list_view_unittest.cc",
303 "views/speech_view_unittest.cc",
304 "views/test/apps_grid_view_test_api.cc",
305 "views/test/apps_grid_view_test_api.h",
309 "//ui/views:test_support",
315 "cocoa/app_list_view_controller_unittest.mm",
316 "cocoa/app_list_window_controller_unittest.mm",
317 "cocoa/apps_grid_controller_unittest.mm",
318 "cocoa/apps_search_box_controller_unittest.mm",
319 "cocoa/apps_search_results_controller_unittest.mm",
320 "cocoa/test/apps_grid_controller_test_helper.h",
321 "cocoa/test/apps_grid_controller_test_helper.mm",