BrowserFontResource should not push opacity info to Blink
[chromium-blink-merge.git] / remoting / remoting_webapp_files.gypi
blob447714ba4ece789ebfee40a3299a516c71367196
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.
6   'variables': {
8     # Jscompile proto files.
9     # These provide type information for jscompile.
10     'remoting_webapp_js_proto_files': [
11       'webapp/js_proto/chrome_proto.js',
12       'webapp/js_proto/chrome_cast_proto.js',
13       'webapp/js_proto/chrome_event_proto.js',
14       'webapp/js_proto/dom_proto.js',
15       'webapp/js_proto/remoting_proto.js',
16     ],
18     #
19     # Webapp browsertest JavaScript files.
20     #
22     # Browser test files.
23     'remoting_webapp_browsertest_js_files': [
24       'webapp/browser_test/browser_test.js',
25       'webapp/browser_test/bump_scroll_browser_test.js',
26       'webapp/browser_test/cancel_pin_browser_test.js',
27       'webapp/browser_test/invalid_pin_browser_test.js',
28       'webapp/browser_test/it2me_browser_test.js',
29       'webapp/browser_test/scrollbar_browser_test.js',
30       'webapp/browser_test/timeout_waiter.js',
31       'webapp/browser_test/unauthenticated_browser_test.js',
32       'webapp/browser_test/update_pin_browser_test.js',
33     ],
34     # Browser test files.
35     'remoting_webapp_browsertest_js_mock_files': [
36       'webapp/browser_test/mock_client_plugin.js',
37       'webapp/browser_test/mock_host_list_api.js',
38       'webapp/browser_test/mock_identity.js',
39       'webapp/browser_test/mock_oauth2_api.js',
40       'webapp/browser_test/mock_session_connector.js',
41       'webapp/unittests/mock_signal_strategy.js',
42     ],
43     'remoting_webapp_browsertest_js_proto_files': [
44       'webapp/js_proto/sinon_proto.js',
45       'webapp/js_proto/test_proto.js',
46       '<@(remoting_webapp_js_proto_files)',
47     ],
48     'remoting_webapp_browsertest_all_js_files': [
49       '<@(remoting_webapp_browsertest_js_files)',
50       '<@(remoting_webapp_browsertest_js_mock_files)',
51     ],
53     #
54     # Webapp unittest JavaScript files.
55     #
57     # These product files are excluded from our JavaScript unittest
58     'remoting_webapp_unittest_exclude_js_files': [
59       # background.js is where the onLoad handler is defined, which
60       # makes it the entry point of the background page.
61       'webapp/crd/js/background.js',
62     ],
63     # The unit test cases for the webapp
64     'remoting_webapp_unittest_js_files': [
65       'webapp/unittests/apps_v2_migration_unittest.js',
66       'webapp/unittests/base_unittest.js',
67       'webapp/unittests/desktop_viewport_unittest.js',
68       'webapp/unittests/dns_blackhole_checker_unittest.js',
69       'webapp/unittests/event_hook_unittest.js',
70       'webapp/unittests/fallback_signal_strategy_unittest.js',
71       'webapp/unittests/host_table_entry_unittest.js',
72       'webapp/unittests/ipc_unittest.js',
73       'webapp/unittests/l10n_unittest.js',
74       'webapp/unittests/menu_button_unittest.js',
75       'webapp/unittests/xhr_unittest.js',
76       'webapp/unittests/xmpp_connection_unittest.js',
77       'webapp/unittests/xmpp_login_handler_unittest.js',
78       'webapp/unittests/xmpp_stream_parser_unittest.js',
79     ],
80     'remoting_webapp_unittest_js_mock_files': [
81       # Some proto files can be repurposed as simple mocks for the unittests.
82       # Note that some defs in chrome_proto are overwritten by chrome_mocks.
83       'webapp/js_proto/chrome_proto.js',
84       'webapp/unittests/chrome_mocks.js',
85       'webapp/unittests/mock_signal_strategy.js',
86       'webapp/unittests/sinon_helpers.js',
87       'webapp/unittests/test_start.js',
88     ],
89     # Prototypes for objects that are not mocked.
90     'remoting_webapp_unittest_js_proto_files': [
91       'webapp/js_proto/chrome_cast_proto.js',
92       'webapp/js_proto/dom_proto.js',
93       'webapp/js_proto/remoting_proto.js',
94       'webapp/js_proto/qunit_proto.js',
95       'webapp/js_proto/sinon_proto.js',
96       'webapp/js_proto/sinon_stub_proto.js',
97     ],
98     'remoting_webapp_unittest_all_js_files': [
99       '<@(remoting_webapp_unittest_js_files)',
100       '<@(remoting_webapp_unittest_js_mock_files)',
101     ],
102     # All the files needed to run the unittests.
103     'remoting_webapp_unittest_all_files': [
104       'webapp/crd/html/menu_button.css',
105       '<@(remoting_webapp_unittest_all_js_files)',
106     ],
107     'remoting_webapp_unittest_template_main':
108       'webapp/crd/html/template_unittest.html',
110     #
111     # Webapp JavaScript file groups.
112     #
114     # Auth (apps v1) JavaScript files.
115     # These files aren't included directly from main.html. They are
116     # referenced from the manifest.json file (appsv1 only).
117     'remoting_webapp_js_auth_v1_files': [
118       'webapp/crd/js/cs_third_party_auth_trampoline.js',  # client to host
119       'webapp/crd/js/cs_oauth2_trampoline.js',  # Google account
120     ],
121     # Auth (client to host) JavaScript files.
122     'remoting_webapp_js_auth_client2host_files': [
123       'webapp/crd/js/third_party_host_permissions.js',
124       'webapp/crd/js/third_party_token_fetcher.js',
125     ],
126     # Auth (Google account) JavaScript files.
127     'remoting_webapp_js_auth_google_files': [
128       'webapp/base/js/auth_dialog.js',
129       'webapp/base/js/auth_init.js',
130       'webapp/crd/js/identity.js',
131       'webapp/crd/js/oauth2.js',
132       'webapp/crd/js/oauth2_api.js',
133       'webapp/crd/js/oauth2_api_impl.js',
134     ],
135     # Cast extension handler JavaScript files.
136     'remoting_webapp_js_cast_extension_files': [
137       'webapp/crd/js/cast_extension_handler.js',
138     ],
139     # Client JavaScript files.
140     'remoting_webapp_js_client_files': [
141       'webapp/crd/js/client_plugin.js',
142       'webapp/crd/js/client_plugin_impl.js',
143       'webapp/crd/js/client_plugin_host_desktop_impl.js',
144       'webapp/crd/js/client_session.js',
145       'webapp/crd/js/clipboard.js',
146       'webapp/crd/js/credentials_provider.js',
147       'webapp/crd/js/desktop_connected_view.js',
148       'webapp/crd/js/host_desktop.js',
149       'webapp/crd/js/session_connector.js',
150       'webapp/crd/js/session_connector_impl.js',
151       'webapp/crd/js/smart_reconnector.js',
152       'webapp/crd/js/video_frame_recorder.js',
153     ],
154     # Remoting core JavaScript files.
155     'remoting_webapp_js_core_files': [
156       'webapp/base/js/app_capabilities.js',
157       'webapp/base/js/application.js',
158       'webapp/base/js/base.js',
159       'webapp/base/js/ipc.js',
160       'webapp/base/js/platform.js',
161       'webapp/crd/js/apps_v2_migration.js',
162       'webapp/crd/js/error.js',
163       'webapp/crd/js/event_handlers.js',
164       'webapp/crd/js/plugin_settings.js',
165       'webapp/crd/js/remoting.js',
166       'webapp/crd/js/typecheck.js',
167       'webapp/crd/js/xhr.js',
168     ],
169     # Gnubby authentication JavaScript files.
170     'remoting_webapp_js_gnubby_auth_files': [
171       'webapp/crd/js/gnubby_auth_handler.js',
172     ],
173     # Host JavaScript files.
174     'remoting_webapp_js_host_files': [
175       'webapp/crd/js/host.js',
176       'webapp/crd/js/host_settings.js',
177     ],
178     # Files for controlling the local machine as a host.
179     # Includes both it2me and me2me files.
180     'remoting_webapp_js_host_control_files': [
181       'webapp/crd/js/host_controller.js',
182       'webapp/crd/js/host_daemon_facade.js',
183       'webapp/crd/js/host_screen.js',
184       'webapp/crd/js/host_session.js',
185       'webapp/crd/js/host_setup_dialog.js',
186       'webapp/crd/js/host_install_dialog.js',
187       'webapp/crd/js/host_installer.js',
188       'webapp/crd/js/it2me_host_facade.js',
189       'webapp/crd/js/paired_client_manager.js',
190     ],
191     # Files for displaying (in the client) info about available hosts.
192     'remoting_webapp_js_host_display_files': [
193       'webapp/crd/js/host_list.js',
194       'webapp/crd/js/host_list_api.js',
195       'webapp/crd/js/host_list_api_impl.js',
196       'webapp/crd/js/host_table_entry.js',
197       'webapp/crd/js/local_host_section.js',
198     ],
199     # Logging and stats JavaScript files.
200     'remoting_webapp_js_logging_files': [
201       'webapp/crd/js/format_iq.js',
202       'webapp/crd/js/log_to_server.js',
203       'webapp/crd/js/server_log_entry.js',
204       'webapp/crd/js/stats_accumulator.js',
205     ],
206     # Remoting signaling files.
207     'remoting_webapp_js_signaling_files': [
208       'webapp/crd/js/dns_blackhole_checker.js',
209       'webapp/crd/js/fallback_signal_strategy.js',
210       'webapp/crd/js/signal_strategy.js',
211       'webapp/crd/js/wcs_adapter.js',
212       'webapp/crd/js/wcs_sandbox_container.js',
213       'webapp/crd/js/xmpp_connection.js',
214       'webapp/crd/js/xmpp_login_handler.js',
215       'webapp/crd/js/xmpp_stream_parser.js',
216     ],
217     # UI JavaScript files.
218     'remoting_webapp_js_ui_files': [
219       'webapp/base/js/window_shape.js',
220       'webapp/crd/js/bump_scroller.js',
221       'webapp/crd/js/butter_bar.js',
222       'webapp/crd/js/connection_stats.js',
223       'webapp/crd/js/desktop_viewport.js',
224       'webapp/crd/js/feedback.js',
225       'webapp/crd/js/fullscreen.js',
226       'webapp/crd/js/fullscreen_v1.js',
227       'webapp/crd/js/fullscreen_v2.js',
228       'webapp/crd/js/l10n.js',
229       'webapp/crd/js/menu_button.js',
230       'webapp/crd/js/options_menu.js',
231       'webapp/crd/js/ui_mode.js',
232       'webapp/crd/js/toolbar.js',
233       'webapp/crd/js/window_frame.js',
234     ],
236     #
237     # DesktopRemoting main.html generation files.
238     #
240     'remoting_webapp_template_main':
241       '<(DEPTH)/remoting/webapp/crd/html/template_main.html',
243     # The shared JavaScript files required by main.html.
244     'remoting_webapp_shared_main_html_js_files': [
245       # Include the core files first as it is required by the other files.
246       # Otherwise, Jscompile will complain.
247       '<@(remoting_webapp_js_core_files)',
248       '<@(remoting_webapp_js_auth_client2host_files)',
249       '<@(remoting_webapp_js_auth_google_files)',
250       '<@(remoting_webapp_js_client_files)',
251       '<@(remoting_webapp_js_gnubby_auth_files)',
252       '<@(remoting_webapp_js_cast_extension_files)',
253       '<@(remoting_webapp_js_host_files)',
254       '<@(remoting_webapp_js_host_control_files)',
255       '<@(remoting_webapp_js_host_display_files)',
256       '<@(remoting_webapp_js_logging_files)',
257       '<@(remoting_webapp_js_ui_files)',
258       '<@(remoting_webapp_js_signaling_files)',
259       # Uncomment this line to include browser test files in the web app
260       # to expedite debugging or local development.
261       #'<@(remoting_webapp_browsertest_all_js_files)',
262     ],
264     # The CRD-specific JavaScript files required by main.html.
265     'remoting_webapp_crd_main_html_all_js_files': [
266       '<@(remoting_webapp_shared_main_html_js_files)',
267       'webapp/crd/js/crd_connect.js',
268       'webapp/crd/js/crd_event_handlers.js',
269       'webapp/crd/js/crd_main.js',
270       'webapp/crd/js/desktop_remoting.js',
271       'webapp/crd/js/it2me_connect_flow.js',
272     ],
274     # These template files are used to construct main.html.
275     'remoting_webapp_template_files': [
276       'webapp/base/html/client_plugin.html',
277       'webapp/base/html/dialog_auth.html',
278       'webapp/crd/html/butter_bar.html',
279       'webapp/crd/html/dialog_client_connect_failed.html',
280       'webapp/crd/html/dialog_client_connecting.html',
281       'webapp/crd/html/dialog_client_host_needs_upgrade.html',
282       'webapp/crd/html/dialog_client_pin_prompt.html',
283       'webapp/crd/html/dialog_client_session_finished.html',
284       'webapp/crd/html/dialog_client_third_party_auth.html',
285       'webapp/crd/html/dialog_client_unconnected.html',
286       'webapp/crd/html/dialog_confirm_host_delete.html',
287       'webapp/crd/html/dialog_connection_history.html',
288       'webapp/crd/html/dialog_host.html',
289       'webapp/crd/html/dialog_host_install.html',
290       'webapp/crd/html/dialog_host_setup.html',
291       'webapp/crd/html/dialog_manage_pairings.html',
292       'webapp/crd/html/dialog_token_refresh_failed.html',
293       'webapp/crd/html/toolbar.html',
294       'webapp/crd/html/ui_header.html',
295       'webapp/crd/html/ui_it2me.html',
296       'webapp/crd/html/ui_me2me.html',
297       'webapp/crd/html/window_frame.html',
298     ],
300     #
301     # Webapp background.html generation files.
302     #
304     'remoting_webapp_template_background':
305       '<(DEPTH)/remoting/webapp/crd/html/template_background.html',
307     # These JS files are specific to the background page and are not part of
308     # the main JS files.
309     'remoting_webapp_background_html_js_files': [
310       'webapp/base/js/message_window_helper.js',
311       'webapp/base/js/message_window_manager.js',
312       'webapp/crd/js/activation_handler.js',
313       'webapp/crd/js/app_launcher.js',
314       'webapp/crd/js/background.js',
315     ],
317     # All the JavaScript files required by background.html.
318     'remoting_webapp_background_html_all_js_files': [
319       '<@(remoting_webapp_background_html_js_files)',
320       'webapp/base/js/base.js',
321       'webapp/base/js/ipc.js',
322       'webapp/crd/js/client_session.js',
323       'webapp/crd/js/error.js',
324       'webapp/crd/js/host_installer.js',
325       'webapp/crd/js/host_session.js',
326       'webapp/crd/js/identity.js',
327       'webapp/crd/js/it2me_host_facade.js',
328       'webapp/crd/js/l10n.js',
329       'webapp/crd/js/oauth2.js',
330       'webapp/crd/js/oauth2_api.js',
331       'webapp/crd/js/oauth2_api_impl.js',
332       'webapp/crd/js/plugin_settings.js',
333       'webapp/crd/js/typecheck.js',
334       'webapp/crd/js/xhr.js',
335     ],
337     #
338     # Webapp wcs_sandbox.html generation files.
339     #
341     'remoting_webapp_template_wcs_sandbox':
342       '<(DEPTH)/remoting/webapp/base/html/template_wcs_sandbox.html',
344     # These JS files are specific to the WCS sandbox page and are not part of
345     # the main JS files.
346     'remoting_webapp_wcs_sandbox_html_js_files': [
347       'webapp/crd/js/wcs.js',
348       'webapp/crd/js/wcs_loader.js',
349       'webapp/crd/js/wcs_sandbox_content.js',
350       'webapp/crd/js/xhr_proxy.js',
351     ],
353     # All the JavaScript files required by wcs_sandbox.html.
354     'remoting_webapp_wcs_sandbox_html_all_js_files': [
355       '<@(remoting_webapp_wcs_sandbox_html_js_files)',
356       'webapp/crd/js/error.js',
357       'webapp/crd/js/plugin_settings.js',
358     ],
360     #
361     # Webapp message_window.html generation files.
362     #
364     'remoting_webapp_template_message_window':
365       '<(DEPTH)/remoting/webapp/base/html/template_message_window.html',
367     # These JS files are specific to the message window page and are not part of
368     # the main JS files.
369     'remoting_webapp_message_window_html_js_files': [
370       'webapp/base/js/message_window.js',
371     ],
373     # All the JavaScript files required by message_window.html.
374     'remoting_webapp_message_window_html_all_js_files': [
375       '<@(remoting_webapp_message_window_html_js_files)',
376       'webapp/base/js/base.js',
377     ],
379     #
380     # Complete webapp JS and resource files.
381     #
383     # All the JavaScript files that are shared by webapps.
384     'remoting_webapp_shared_js_files': [
385       '<@(remoting_webapp_shared_main_html_js_files)',
386       '<@(remoting_webapp_background_html_js_files)',
387       '<@(remoting_webapp_message_window_html_js_files)',
388       '<@(remoting_webapp_wcs_sandbox_html_js_files)',
389       # JS files referenced in manifest.json.
390       '<@(remoting_webapp_js_auth_v1_files)',
391     ],
393     # All the JavaScript files required by DesktopRemoting.
394     'remoting_webapp_crd_js_files': [
395       '<@(remoting_webapp_shared_js_files)',
396       '<@(remoting_webapp_crd_main_html_all_js_files)',
397     ],
399     'remoting_webapp_info_files': [
400       'resources/chromoting16.webp',
401       'resources/chromoting48.webp',
402       'resources/chromoting128.webp',
403     ],
405     # All the resource files required by DesktopRemoting.
406     'remoting_webapp_resource_files': [
407       'resources/disclosure_arrow_down.webp',
408       'resources/disclosure_arrow_right.webp',
409       'resources/drag.webp',
410       'resources/host_setup_instructions.webp',
411       'resources/icon_close.webp',
412       'resources/icon_cross.webp',
413       'resources/icon_disconnect.webp',
414       'resources/icon_fullscreen.webp',
415       'resources/icon_help.webp',
416       'resources/icon_host.webp',
417       'resources/icon_maximize_restore.webp',
418       'resources/icon_minimize.webp',
419       'resources/icon_options.webp',
420       'resources/icon_pencil.webp',
421       'resources/icon_warning.webp',
422       'resources/infographic_my_computers.webp',
423       'resources/infographic_remote_assistance.webp',
424       'resources/plus.webp',
425       'resources/reload.webp',
426       'resources/tick.webp',
427       'webapp/base/html/connection_stats.css',
428       'webapp/base/html/main.css',
429       'webapp/base/html/message_window.css',
430       'webapp/base/resources/open_sans.css',
431       'webapp/base/resources/open_sans.woff',
432       'webapp/base/resources/spinner.gif',
433       'webapp/crd/html/butter_bar.css',
434       'webapp/crd/html/toolbar.css',
435       'webapp/crd/html/menu_button.css',
436       'webapp/crd/html/window_frame.css',
437       'webapp/crd/resources/scale-to-fit.webp',
438     ],
440     'remoting_webapp_crd_files': [
441       '<@(remoting_webapp_info_files)',
442       '<@(remoting_webapp_crd_js_files)',
443       '<@(remoting_webapp_resource_files)',
444     ],
446     # Files that contain localizable strings.
447     'desktop_remoting_webapp_localizable_files': [
448       'webapp/crd/manifest.json.jinja2',
449       '<(remoting_webapp_template_background)',
450       '<(remoting_webapp_template_main)',
451       '<(remoting_webapp_template_message_window)',
452       '<(remoting_webapp_template_wcs_sandbox)',
453       '<@(remoting_webapp_template_files)',
454       '<@(remoting_webapp_crd_js_files)',
455     ],
457   },