summaryrefslogtreecommitdiff
path: root/chromium/ash/public/cpp/BUILD.gn
blob: 118697ba72eb4e28687019eea7840d9a6a62e663 (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
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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
# Copyright 2016 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.

import("//mojo/public/tools/bindings/mojom.gni")

# C++ headers and sources that can be used outside ash.
component("cpp") {
  sources = [
    "accelerators.cc",
    "accelerators.h",
    "accessibility_controller.cc",
    "accessibility_controller.h",
    "accessibility_controller_client.h",
    "accessibility_controller_enums.h",
    "accessibility_focus_ring_controller.cc",
    "accessibility_focus_ring_controller.h",
    "accessibility_focus_ring_info.cc",
    "accessibility_focus_ring_info.h",
    "ambient/ambient_backend_controller.cc",
    "ambient/ambient_backend_controller.h",
    "ambient/ambient_client.cc",
    "ambient/ambient_client.h",
    "ambient/ambient_prefs.cc",
    "ambient/ambient_prefs.h",
    "ambient/ambient_ui_model.cc",
    "ambient/ambient_ui_model.h",
    "ambient/common/ambient_settings.cc",
    "ambient/common/ambient_settings.h",
    "android_intent_helper.cc",
    "android_intent_helper.h",
    "app_list/app_list_client.h",
    "app_list/app_list_config.cc",
    "app_list/app_list_config.h",
    "app_list/app_list_config_provider.cc",
    "app_list/app_list_config_provider.h",
    "app_list/app_list_controller.cc",
    "app_list/app_list_controller.h",
    "app_list/app_list_controller_observer.h",
    "app_list/app_list_features.cc",
    "app_list/app_list_features.h",
    "app_list/app_list_metrics.cc",
    "app_list/app_list_metrics.h",
    "app_list/app_list_notifier.h",
    "app_list/app_list_switches.cc",
    "app_list/app_list_switches.h",
    "app_list/app_list_types.cc",
    "app_list/app_list_types.h",
    "app_list/internal_app_id_constants.h",
    "app_menu_constants.h",
    "app_types.h",
    "arc_app_id_provider.cc",
    "arc_app_id_provider.h",
    "ash_constants.h",
    "ash_features.cc",
    "ash_features.h",
    "ash_pref_names.cc",
    "ash_pref_names.h",
    "ash_public_export.h",
    "ash_switches.cc",
    "ash_switches.h",
    "ash_typography.cc",
    "ash_typography.h",
    "ash_view_ids.h",
    "assistant/assistant_client.cc",
    "assistant/assistant_client.h",
    "assistant/assistant_interface_binder.cc",
    "assistant/assistant_interface_binder.h",
    "assistant/assistant_setup.cc",
    "assistant/assistant_setup.h",
    "assistant/assistant_state.cc",
    "assistant/assistant_state.h",
    "assistant/assistant_state_base.cc",
    "assistant/assistant_state_base.h",
    "assistant/assistant_web_view.cc",
    "assistant/assistant_web_view.h",
    "assistant/assistant_web_view_factory.cc",
    "assistant/assistant_web_view_factory.h",
    "assistant/controller/assistant_alarm_timer_controller.cc",
    "assistant/controller/assistant_alarm_timer_controller.h",
    "assistant/controller/assistant_controller.cc",
    "assistant/controller/assistant_controller.h",
    "assistant/controller/assistant_controller_observer.h",
    "assistant/controller/assistant_interaction_controller.cc",
    "assistant/controller/assistant_interaction_controller.h",
    "assistant/controller/assistant_screen_context_controller.cc",
    "assistant/controller/assistant_screen_context_controller.h",
    "assistant/controller/assistant_suggestions_controller.cc",
    "assistant/controller/assistant_suggestions_controller.h",
    "assistant/controller/assistant_ui_controller.cc",
    "assistant/controller/assistant_ui_controller.h",
    "assistant/conversation_starter.cc",
    "assistant/conversation_starter.h",
    "assistant/conversation_starters_client.cc",
    "assistant/conversation_starters_client.h",
    "back_gesture_contextual_nudge_controller.h",
    "back_gesture_contextual_nudge_delegate.h",
    "caption_buttons/caption_button_model.h",
    "caption_buttons/frame_back_button.cc",
    "caption_buttons/frame_back_button.h",
    "caption_buttons/frame_caption_button_container_view.cc",
    "caption_buttons/frame_caption_button_container_view.h",
    "caption_buttons/frame_size_button.cc",
    "caption_buttons/frame_size_button.h",
    "caption_buttons/frame_size_button_delegate.h",
    "caption_buttons/snap_controller.cc",
    "caption_buttons/snap_controller.h",
    "cast_config_controller.cc",
    "cast_config_controller.h",
    "default_frame_header.cc",
    "default_frame_header.h",
    "default_scale_factor_retriever.cc",
    "default_scale_factor_retriever.h",
    "desks_helper.cc",
    "desks_helper.h",
    "fps_counter.cc",
    "fps_counter.h",
    "frame_header.cc",
    "frame_header.h",
    "frame_utils.cc",
    "frame_utils.h",
    "gesture_action_type.h",
    "image_downloader.cc",
    "image_downloader.h",
    "ime_controller.cc",
    "ime_controller.h",
    "ime_controller_client.h",
    "ime_info.cc",
    "ime_info.h",
    "immersive/immersive_context.cc",
    "immersive/immersive_context.h",
    "immersive/immersive_focus_watcher.cc",
    "immersive/immersive_focus_watcher.h",
    "immersive/immersive_fullscreen_controller.cc",
    "immersive/immersive_fullscreen_controller.h",
    "immersive/immersive_fullscreen_controller_delegate.h",
    "immersive/immersive_revealed_lock.cc",
    "immersive/immersive_revealed_lock.h",
    "keyboard/arc/arc_input_method_bounds_tracker.cc",
    "keyboard/arc/arc_input_method_bounds_tracker.h",
    "keyboard/keyboard_config.h",
    "keyboard/keyboard_controller.cc",
    "keyboard/keyboard_controller.h",
    "keyboard/keyboard_controller_observer.h",
    "keyboard/keyboard_switches.cc",
    "keyboard/keyboard_switches.h",
    "keyboard/keyboard_types.h",
    "keyboard_shortcut_viewer.h",
    "kiosk_app_menu.cc",
    "kiosk_app_menu.h",
    "locale_update_controller.cc",
    "locale_update_controller.h",
    "lock_screen_widget_factory.cc",
    "lock_screen_widget_factory.h",
    "login_constants.h",
    "login_screen.cc",
    "login_screen.h",
    "login_screen_client.h",
    "login_screen_model.cc",
    "login_screen_model.h",
    "login_screen_test_api.h",
    "login_types.cc",
    "login_types.h",
    "media_client.h",
    "media_controller.cc",
    "media_controller.h",
    "message_center/arc_notification_constants.h",
    "message_center/arc_notification_manager_base.cc",
    "message_center/arc_notification_manager_base.h",
    "message_center/arc_notification_manager_delegate.h",
    "message_center/arc_notifications_host_initializer.cc",
    "message_center/arc_notifications_host_initializer.h",
    "metrics_util.cc",
    "metrics_util.h",
    "network_config_service.cc",
    "network_config_service.h",
    "network_icon_image_source.cc",
    "network_icon_image_source.h",
    "new_window_delegate.cc",
    "new_window_delegate.h",
    "night_light_controller.cc",
    "night_light_controller.h",
    "note_taking_client.cc",
    "note_taking_client.h",
    "notification_utils.cc",
    "notification_utils.h",
    "notifier_metadata.cc",
    "notifier_metadata.h",
    "notifier_settings_controller.cc",
    "notifier_settings_controller.h",
    "notifier_settings_observer.h",
    "pagination/pagination_controller.cc",
    "pagination/pagination_controller.h",
    "pagination/pagination_model.cc",
    "pagination/pagination_model.h",
    "pagination/pagination_model_observer.h",
    "power_utils.cc",
    "power_utils.h",
    "presentation_time_recorder.cc",
    "presentation_time_recorder.h",
    "quick_answers/controller/quick_answers_controller.cc",
    "quick_answers/controller/quick_answers_controller.h",
    "rounded_corner_decorator.cc",
    "rounded_corner_decorator.h",
    "scale_utility.cc",
    "scale_utility.h",
    "scoped_guest_button_blocker.h",
    "scoped_singleton_resetter_for_test.h",
    "screen_backlight.cc",
    "screen_backlight.h",
    "screen_backlight_observer.h",
    "screen_backlight_type.h",
    "select_to_speak_event_handler_delegate.h",
    "session/session_activation_observer.h",
    "session/session_controller.cc",
    "session/session_controller.h",
    "session/session_controller_client.h",
    "session/session_types.cc",
    "session/session_types.h",
    "session/user_info.cc",
    "session/user_info.h",
    "shelf_item.cc",
    "shelf_item.h",
    "shelf_item_delegate.cc",
    "shelf_item_delegate.h",
    "shelf_model.cc",
    "shelf_model.h",
    "shelf_model_observer.h",
    "shelf_prefs.cc",
    "shelf_prefs.h",
    "shelf_types.cc",
    "shelf_types.h",
    "shelf_ui_info.cc",
    "shelf_ui_info.h",
    "shell_window_ids.cc",
    "shell_window_ids.h",
    "shutdown_controller.cc",
    "shutdown_controller.h",
    "spoken_feedback_event_rewriter_delegate.h",
    "stylus_utils.cc",
    "stylus_utils.h",
    "switch_access_event_handler_delegate.h",
    "system_tray.cc",
    "system_tray.h",
    "system_tray_client.h",
    "system_tray_focus_observer.h",
    "tablet_mode.cc",
    "tablet_mode.h",
    "tablet_mode_observer.h",
    "toast_data.cc",
    "toast_data.h",
    "toast_manager.cc",
    "toast_manager.h",
    "update_types.h",
    "view_shadow.cc",
    "view_shadow.h",
    "wallpaper_controller.cc",
    "wallpaper_controller.h",
    "wallpaper_controller_client.h",
    "wallpaper_controller_observer.cc",
    "wallpaper_controller_observer.h",
    "wallpaper_info.h",
    "wallpaper_types.h",
    "window_animation_types.h",
    "window_backdrop.cc",
    "window_backdrop.h",
    "window_pin_type.cc",
    "window_pin_type.h",
    "window_properties.cc",
    "window_properties.h",
    "window_state_type.cc",
    "window_state_type.h",
  ]

  defines = [ "ASH_PUBLIC_IMPLEMENTATION" ]

  deps = [
    "//ash/public/cpp/vector_icons",
    "//chromeos/constants",
    "//chromeos/dbus/power:power_manager_proto",
    "//chromeos/services/assistant/public/cpp",
    "//chromeos/services/network_config:in_process_instance",
    "//components/prefs",
    "//components/sync:rest_of_sync",
    "//mojo/public/cpp/bindings",
    "//net/traffic_annotation",
    "//services/network/public/cpp:cpp",
    "//skia/public/mojom",
    "//ui/aura",
    "//ui/chromeos/strings",
    "//ui/compositor_extra",
    "//ui/display",
    "//ui/events/devices",
    "//ui/message_center/public/cpp",
    "//ui/views",
    "//ui/views/window/vector_icons",
    "//ui/wm",
    "//ui/wm/public",
  ]

  public_deps = [
    "//ash/public/mojom",
    "//base",
    "//chromeos/components/security_token_pin",
    "//chromeos/services/assistant/public/mojom",
    "//chromeos/services/network_config/public/mojom",
    "//components/arc/mojom:notifications",
    "//components/session_manager:base",
    "//components/user_manager",
    "//ui/base/ime/chromeos:ime_types",
    "//ui/gfx",
  ]

  output_name = "ash_public_cpp"
}

source_set("unit_tests") {
  testonly = true
  sources = [
    "android_intent_helper_unittest.cc",
    "app_list/app_list_config_provider_unittest.cc",
    "default_scale_factor_retriever_unittest.cc",
    "pagination/pagination_model_unittest.cc",
    "power_utils_unittest.cc",
    "rounded_corner_decorator_unittest.cc",
    "shelf_model_unittest.cc",
    "view_shadow_unittest.cc",
  ]

  deps = [
    ":cpp",
    "//base",
    "//base/test:test_support",
    "//mojo/public/cpp/bindings",
    "//testing/gtest",
    "//ui/aura:test_support",
    "//ui/compositor_extra",
    "//ui/gfx:test_support",
    "//ui/views",
    "//ui/views:test_support",
  ]
}

source_set("test_support") {
  testonly = true
  sources = [
    "immersive/immersive_fullscreen_controller_test_api.cc",
    "immersive/immersive_fullscreen_controller_test_api.h",
    "test/test_ambient_client.cc",
    "test/test_ambient_client.h",
    "test/test_image_downloader.cc",
    "test/test_image_downloader.h",
    "test/test_keyboard_controller_observer.cc",
    "test/test_keyboard_controller_observer.h",
    "test/test_new_window_delegate.cc",
    "test/test_new_window_delegate.h",
    "test/test_system_tray_client.cc",
    "test/test_system_tray_client.h",
    "test/test_tablet_mode.cc",
    "test/test_tablet_mode.h",
  ]

  deps = [
    ":cpp",
    "//base",
    "//services/device/public/cpp:test_support",
    "//services/network/public/cpp:cpp",
    "//ui/aura",
    "//ui/aura:test_support",
    "//ui/gfx",
    "//ui/gfx:test_support",
    "//ui/views",
  ]
}