DevTools: add screenshot events to tracing.
[chromium-blink-merge.git] / remoting / remoting_webapp_files.gypi
blobc98a8b3a112d3656540dd98229fbdfe80a04d8ac
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': {
7     'remoting_webapp_info_files': [
8       'resources/chromoting16.webp',
9       'resources/chromoting48.webp',
10       'resources/chromoting128.webp',
11     ],
13     # Jscompile proto files.
14     # These provide type information for jscompile.
15     'remoting_webapp_js_proto_files': [
16       'webapp/js_proto/chrome_proto.js',
17       'webapp/js_proto/dom_proto.js',
18       'webapp/js_proto/remoting_proto.js',
19     ],
21     # Auth (apps v1) JavaScript files.
22     # These files aren't included directly from main.html. They are
23     # referenced from the manifest.json file (appsv1 only).
24     'remoting_webapp_js_auth_v1_files': [
25       'webapp/crd/js/cs_third_party_auth_trampoline.js',  # client to host
26       'webapp/crd/js/cs_oauth2_trampoline.js',  # Google account
27     ],
28     # Auth (client to host) JavaScript files.
29     'remoting_webapp_js_auth_client2host_files': [
30       'webapp/crd/js/third_party_host_permissions.js',
31       'webapp/crd/js/third_party_token_fetcher.js',
32     ],
33     # Auth (Google account) JavaScript files.
34     'remoting_webapp_js_auth_google_files': [
35       'webapp/base/js/auth_dialog.js',
36       'webapp/base/js/auth_init.js',
37       'webapp/crd/js/identity.js',
38       'webapp/crd/js/oauth2.js',
39       'webapp/crd/js/oauth2_api.js',
40       'webapp/crd/js/oauth2_api_impl.js',
41     ],
42     # Client JavaScript files.
43     'remoting_webapp_js_client_files': [
44       'webapp/crd/js/client_plugin.js',
45       'webapp/crd/js/client_plugin_impl.js',
46       # TODO(garykac) For client_screen:
47       # * Split out pin/access code stuff into separate file.
48       # * Move client logic into session_connector
49       'webapp/crd/js/client_screen.js',
50       'webapp/crd/js/client_session.js',
51       'webapp/crd/js/clipboard.js',
52       'webapp/crd/js/hangout_session.js',
53       'webapp/crd/js/session_connector.js',
54       'webapp/crd/js/session_connector_impl.js',
55       'webapp/crd/js/smart_reconnector.js',
56       'webapp/crd/js/video_frame_recorder.js',
57     ],
58     # Remoting core JavaScript files.
59     'remoting_webapp_js_core_files': [
60       'webapp/base/js/app_capabilities.js',
61       'webapp/base/js/application.js',
62       'webapp/base/js/base.js',
63       'webapp/base/js/ipc.js',
64       'webapp/base/js/platform.js',
65       'webapp/crd/js/apps_v2_migration.js',
66       'webapp/crd/js/error.js',
67       'webapp/crd/js/event_handlers.js',
68       'webapp/crd/js/plugin_settings.js',
69       # TODO(garykac) Split out UI client stuff from remoting.js.
70       'webapp/crd/js/remoting.js',
71       'webapp/crd/js/typecheck.js',
72       'webapp/crd/js/xhr.js',
73     ],
74     # Host JavaScript files.
75     'remoting_webapp_js_host_files': [
76       'webapp/crd/js/host.js',
77       'webapp/crd/js/host_settings.js',
78     ],
79     # Files for controlling the local machine as a host.
80     # Includes both it2me and me2me files.
81     'remoting_webapp_js_host_control_files': [
82       'webapp/crd/js/host_controller.js',
83       'webapp/crd/js/host_daemon_facade.js',
84       'webapp/crd/js/host_screen.js',
85       'webapp/crd/js/host_session.js',
86       'webapp/crd/js/host_setup_dialog.js',
87       'webapp/crd/js/host_install_dialog.js',
88       'webapp/crd/js/host_installer.js',
89       'webapp/crd/js/it2me_host_facade.js',
90       'webapp/crd/js/paired_client_manager.js',
91     ],
92     # Files for displaying (in the client) info about available hosts.
93     'remoting_webapp_js_host_display_files': [
94       'webapp/crd/js/host_list.js',
95       'webapp/crd/js/host_list_api.js',
96       'webapp/crd/js/host_list_api_impl.js',
97       'webapp/crd/js/host_table_entry.js',
98     ],
99     # Logging and stats JavaScript files.
100     'remoting_webapp_js_logging_files': [
101       'webapp/crd/js/format_iq.js',
102       'webapp/crd/js/log_to_server.js',
103       'webapp/crd/js/server_log_entry.js',
104       'webapp/crd/js/stats_accumulator.js',
105     ],
106     # UI JavaScript files.
107     'remoting_webapp_js_ui_files': [
108       'webapp/base/js/window_shape.js',
109       'webapp/crd/js/butter_bar.js',
110       'webapp/crd/js/connection_stats.js',
111       'webapp/crd/js/feedback.js',
112       'webapp/crd/js/fullscreen.js',
113       'webapp/crd/js/fullscreen_v1.js',
114       'webapp/crd/js/fullscreen_v2.js',
115       'webapp/crd/js/l10n.js',
116       'webapp/crd/js/menu_button.js',
117       'webapp/crd/js/options_menu.js',
118       'webapp/crd/js/ui_mode.js',
119       'webapp/crd/js/toolbar.js',
120       'webapp/crd/js/window_frame.js',
121     ],
122     # Remoting signaling files.
123     'remoting_webapp_js_signaling_files': [
124       'webapp/crd/js/dns_blackhole_checker.js',
125       'webapp/crd/js/fallback_signal_strategy.js',
126       'webapp/crd/js/signal_strategy.js',
127       'webapp/crd/js/wcs_adapter.js',
128       'webapp/crd/js/wcs_sandbox_container.js',
129       'webapp/crd/js/xmpp_connection.js',
130       'webapp/crd/js/xmpp_login_handler.js',
131       'webapp/crd/js/xmpp_stream_parser.js',
132     ],
133     # Remoting WCS sandbox JavaScript files.
134     'remoting_webapp_js_wcs_sandbox_files': [
135       'webapp/crd/js/wcs.js',
136       'webapp/crd/js/wcs_loader.js',
137       'webapp/crd/js/wcs_sandbox_content.js',
138       'webapp/crd/js/xhr_proxy.js',
139     ],
140     # gnubby authentication JavaScript files.
141     'remoting_webapp_js_gnubby_auth_files': [
142       'webapp/crd/js/gnubby_auth_handler.js',
143     ],
144     # cast extension handler JavaScript files.
145     'remoting_webapp_js_cast_extension_files': [
146       'webapp/crd/js/cast_extension_handler.js',
147     ],
148     # Shared files for tests.
149     'remoting_webapp_js_test_common_files': [
150       'webapp/unittests/mock_signal_strategy.js',
151     ],
152     # browser test JavaScript files.
153     'remoting_webapp_js_browser_test_files': [
154       'webapp/browser_test/browser_test.js',
155       'webapp/browser_test/bump_scroll_browser_test.js',
156       'webapp/browser_test/cancel_pin_browser_test.js',
157       'webapp/browser_test/invalid_pin_browser_test.js',
158       'webapp/browser_test/it2me_browser_test.js',
159       'webapp/browser_test/mock_client_plugin.js',
160       'webapp/browser_test/mock_host_list_api.js',
161       'webapp/browser_test/mock_identity.js',
162       'webapp/browser_test/mock_oauth2_api.js',
163       'webapp/browser_test/mock_session_connector.js',
164       'webapp/browser_test/scrollbar_browser_test.js',
165       'webapp/browser_test/timeout_waiter.js',
166       'webapp/browser_test/unauthenticated_browser_test.js',
167       'webapp/browser_test/update_pin_browser_test.js',
168     ],
169     # These product files are excluded from our JavaScript unittest
170     'remoting_webapp_unittest_exclude_files': [
171       # background.js is where the onLoad handler is defined, which
172       # makes it the entry point of the background page.
173       'webapp/crd/js/background.js',
174     ],
175     # The unit test cases for the webapp
176     'remoting_webapp_unittest_js_files': [
177       'webapp/unittests/chrome_mocks.js',
178       'webapp/js_proto/chrome_proto.js',
179       'webapp/unittests/apps_v2_migration_unittest.js',
180       'webapp/unittests/base_unittest.js',
181       'webapp/unittests/dns_blackhole_checker_unittest.js',
182       'webapp/unittests/event_hook_unittest.js',
183       'webapp/unittests/fallback_signal_strategy_unittest.js',
184       'webapp/unittests/ipc_unittest.js',
185       'webapp/unittests/it2me_helpee_channel_unittest.js',
186       'webapp/unittests/it2me_helper_channel_unittest.js',
187       'webapp/unittests/it2me_service_unittest.js',
188       'webapp/unittests/l10n_unittest.js',
189       'webapp/unittests/menu_button_unittest.js',
190       'webapp/unittests/xmpp_connection_unittest.js',
191       'webapp/unittests/xmpp_login_handler_unittest.js',
192       'webapp/unittests/xmpp_stream_parser_unittest.js',
193     ],
194     'remoting_webapp_unittest_additional_files': [
195       'webapp/crd/html/menu_button.css',
196     ],
197     'remoting_webapp_unittest_template_main':
198       'webapp/crd/html/template_unittest.html',
200     # The shared JavaScript files required by main.html.
201     'remoting_webapp_shared_main_html_js_files': [
202       # Include the core files first as it is required by the other files.
203       # Otherwise, Jscompile will complain.
204       '<@(remoting_webapp_js_core_files)',
205       '<@(remoting_webapp_js_auth_client2host_files)',
206       '<@(remoting_webapp_js_auth_google_files)',
207       '<@(remoting_webapp_js_client_files)',
208       '<@(remoting_webapp_js_gnubby_auth_files)',
209       '<@(remoting_webapp_js_cast_extension_files)',
210       '<@(remoting_webapp_js_host_files)',
211       '<@(remoting_webapp_js_host_control_files)',
212       '<@(remoting_webapp_js_host_display_files)',
213       '<@(remoting_webapp_js_logging_files)',
214       '<@(remoting_webapp_js_ui_files)',
215       '<@(remoting_webapp_js_signaling_files)',
216       # Uncomment these lines to include browser test files in the web app
217       # to expedite debugging or local development.
218       # '<@(remoting_webapp_js_browser_test_files)',
219       # '<@(remoting_webapp_js_test_common_files)'
220     ],
222     # The CRD-specific JavaScript files required by main.html.
223     'remoting_webapp_crd_main_html_js_files': [
224       'webapp/crd/js/crd_connect.js',
225       'webapp/crd/js/crd_event_handlers.js',
226       'webapp/crd/js/crd_main.js',
227       'webapp/crd/js/desktop_remoting.js',
228     ],
230     # The JavaScript files that are used in the background page.
231     'remoting_webapp_background_js_files': [
232       'webapp/base/js/base.js',
233       'webapp/base/js/ipc.js',
234       'webapp/base/js/message_window_helper.js',
235       'webapp/base/js/message_window_manager.js',
236       'webapp/crd/js/activation_handler.js',
237       'webapp/crd/js/app_launcher.js',
238       'webapp/crd/js/background.js',
239       'webapp/crd/js/client_session.js',
240       'webapp/crd/js/error.js',
241       'webapp/crd/js/hangout_consent_dialog.js',
242       'webapp/crd/js/host_installer.js',
243       'webapp/crd/js/host_session.js',
244       'webapp/crd/js/identity.js',
245       'webapp/crd/js/it2me_helpee_channel.js',
246       'webapp/crd/js/it2me_helper_channel.js',
247       'webapp/crd/js/it2me_host_facade.js',
248       'webapp/crd/js/it2me_service.js',
249       'webapp/crd/js/l10n.js',
250       'webapp/crd/js/oauth2.js',
251       'webapp/crd/js/oauth2_api.js',
252       'webapp/crd/js/oauth2_api_impl.js',
253       'webapp/crd/js/plugin_settings.js',
254       'webapp/crd/js/typecheck.js',
255       'webapp/crd/js/xhr.js',
256     ],
258     # The JavaScript files required by wcs_sandbox.html.
259     'remoting_webapp_wcs_sandbox_html_js_files': [
260       '<@(remoting_webapp_js_wcs_sandbox_files)',
261       'webapp/crd/js/error.js',
262       'webapp/crd/js/plugin_settings.js',
263     ],
265     # All the JavaScript files that are shared by webapps.
266     'remoting_webapp_shared_js_files': [
267       # JS files for main.html.
268       '<@(remoting_webapp_shared_main_html_js_files)',
269       '<@(remoting_webapp_background_js_files)',
270       # JS files for message_window.html
271       'webapp/base/js/message_window.js',
272       # JS files for dialog_hangout_consent.html
273       'webapp/crd/js/hangout_consent_dialog_main.js',
274       # JS files for wcs_sandbox.html.
275       # Use r_w_js_wcs_sandbox_files instead of r_w_wcs_sandbox_html_js_files
276       # so that we don't double include error.js and plugin_settings.js.
277       '<@(remoting_webapp_js_wcs_sandbox_files)',
278       # JS files referenced in mainfest.json.
279       '<@(remoting_webapp_js_auth_v1_files)',
280     ],
282     # All the JavaScript files required by CRD.
283     'remoting_webapp_crd_js_files': [
284       '<@(remoting_webapp_shared_js_files)',
285       '<@(remoting_webapp_crd_main_html_js_files)',
286     ],
288     'remoting_webapp_resource_files': [
289       'resources/disclosure_arrow_down.webp',
290       'resources/disclosure_arrow_right.webp',
291       'resources/drag.webp',
292       'resources/host_setup_instructions.webp',
293       'resources/icon_close.webp',
294       'resources/icon_cross.webp',
295       'resources/icon_disconnect.webp',
296       'resources/icon_fullscreen.webp',
297       'resources/icon_help.webp',
298       'resources/icon_host.webp',
299       'resources/icon_maximize_restore.webp',
300       'resources/icon_minimize.webp',
301       'resources/icon_options.webp',
302       'resources/icon_pencil.webp',
303       'resources/icon_warning.webp',
304       'resources/infographic_my_computers.webp',
305       'resources/infographic_remote_assistance.webp',
306       'resources/plus.webp',
307       'resources/reload.webp',
308       'resources/tick.webp',
309       'webapp/base/html/connection_stats.css',
310       'webapp/base/html/main.css',
311       'webapp/base/html/message_window.html',
312       'webapp/base/html/message_window.css',
313       'webapp/base/resources/open_sans.css',
314       'webapp/base/resources/open_sans.woff',
315       'webapp/base/resources/spinner.gif',
316       'webapp/crd/html/butter_bar.css',
317       'webapp/crd/html/dialog_hangout_consent.html',
318       'webapp/crd/html/dialog_hangout_consent.css',
319       'webapp/crd/html/toolbar.css',
320       'webapp/crd/html/menu_button.css',
321       'webapp/crd/html/window_frame.css',
322       'webapp/crd/resources/scale-to-fit.webp',
323     ],
325     'remoting_webapp_crd_files': [
326       '<@(remoting_webapp_info_files)',
327       '<@(remoting_webapp_crd_js_files)',
328       '<@(remoting_webapp_resource_files)',
329     ],
331     # These template files are used to construct the webapp html files.
332     'remoting_webapp_template_main':
333       '<(DEPTH)/remoting/webapp/crd/html/template_main.html',
335     'remoting_webapp_template_wcs_sandbox':
336       '<(DEPTH)/remoting/webapp/base/html/template_wcs_sandbox.html',
338     'remoting_webapp_template_background':
339       '<(DEPTH)/remoting/webapp/crd/html/template_background.html',
341     'remoting_webapp_template_files': [
342       'webapp/base/html/client_plugin.html',
343       'webapp/base/html/dialog_auth.html',
344       'webapp/crd/html/butter_bar.html',
345       'webapp/crd/html/dialog_client_connect_failed.html',
346       'webapp/crd/html/dialog_client_connecting.html',
347       'webapp/crd/html/dialog_client_host_needs_upgrade.html',
348       'webapp/crd/html/dialog_client_pin_prompt.html',
349       'webapp/crd/html/dialog_client_session_finished.html',
350       'webapp/crd/html/dialog_client_third_party_auth.html',
351       'webapp/crd/html/dialog_client_unconnected.html',
352       'webapp/crd/html/dialog_confirm_host_delete.html',
353       'webapp/crd/html/dialog_connection_history.html',
354       'webapp/crd/html/dialog_host.html',
355       'webapp/crd/html/dialog_host_install.html',
356       'webapp/crd/html/dialog_host_setup.html',
357       'webapp/crd/html/dialog_manage_pairings.html',
358       'webapp/crd/html/dialog_token_refresh_failed.html',
359       'webapp/crd/html/toolbar.html',
360       'webapp/crd/html/ui_header.html',
361       'webapp/crd/html/ui_it2me.html',
362       'webapp/crd/html/ui_me2me.html',
363       'webapp/crd/html/window_frame.html',
364     ],
366     # Files that contain localizable strings.
367     'desktop_remoting_webapp_localizable_files': [
368       'webapp/crd/manifest.json.jinja2',
369       '<(remoting_webapp_template_main)',
370       '<(remoting_webapp_template_wcs_sandbox)',
371       '<(remoting_webapp_template_background)',
372       '<@(remoting_webapp_template_files)',
373       '<@(remoting_webapp_crd_js_files)',
374     ],
376   },