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