summaryrefslogtreecommitdiffstats
path: root/remoting/remoting_webapp_files.gypi
diff options
context:
space:
mode:
authorgarykac@chromium.org <garykac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-02-20 00:35:31 +0000
committergarykac@chromium.org <garykac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-02-20 00:35:31 +0000
commitcb896ccaffc7618561c724770ceb4f7e4e6d1f9a (patch)
tree0476f462041fc2c2c766f15e3ad499311d9fe84e /remoting/remoting_webapp_files.gypi
parent0f6b51948db5818ea6c5aac5c834e2067005e98f (diff)
downloadchromium_src-cb896ccaffc7618561c724770ceb4f7e4e6d1f9a.zip
chromium_src-cb896ccaffc7618561c724770ceb4f7e4e6d1f9a.tar.gz
chromium_src-cb896ccaffc7618561c724770ceb4f7e4e6d1f9a.tar.bz2
Python script to generate Chromoting's main.html.
With this change, it will be much easier to make changes to the UX (since the dialogs will be easier to manage) and the set of JavaScript includes will be guaranteed to match the gyp target. This change also auto-generates the wcs_sandbox.html file. BUG= R=jamiewalch@chromium.org Review URL: https://codereview.chromium.org/146903006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@252135 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/remoting_webapp_files.gypi')
-rw-r--r--remoting/remoting_webapp_files.gypi79
1 files changed, 68 insertions, 11 deletions
diff --git a/remoting/remoting_webapp_files.gypi b/remoting/remoting_webapp_files.gypi
index 8c7d51e..517b85c 100644
--- a/remoting/remoting_webapp_files.gypi
+++ b/remoting/remoting_webapp_files.gypi
@@ -20,15 +20,20 @@
'webapp/js_proto/remoting_proto.js',
],
+ # Auth (apps v1) JavaScript files.
+ # These files aren't included directly from main.html. They are
+ # referenced from the manifest.json file (appsv1 only).
+ 'remoting_webapp_js_auth_v1_files': [
+ 'webapp/cs_third_party_auth_trampoline.js', # client to host
+ 'webapp/cs_oauth2_trampoline.js', # Google account
+ ],
# Auth (client to host) JavaScript files.
'remoting_webapp_js_auth_client2host_files': [
- 'webapp/cs_third_party_auth_trampoline.js',
'webapp/third_party_host_permissions.js',
'webapp/third_party_token_fetcher.js',
],
# Auth (Google account) JavaScript files.
'remoting_webapp_js_auth_google_files': [
- 'webapp/cs_oauth2_trampoline.js',
'webapp/identity.js',
'webapp/oauth2.js',
'webapp/oauth2_api.js',
@@ -54,7 +59,6 @@
'webapp/remoting.js',
'webapp/typecheck.js',
'webapp/xhr.js',
- 'webapp/xhr_proxy.js',
],
# Host JavaScript files.
# Includes both it2me and me2me files.
@@ -96,14 +100,20 @@
'webapp/host_settings.js',
'webapp/host_table_entry.js',
],
- # Remoting WCS JavaScript files.
- 'remoting_webapp_js_wcs_files': [
+ # Remoting WCS container JavaScript files.
+ 'remoting_webapp_js_wcs_container_files': [
+ 'webapp/wcs_sandbox_container.js',
+ ],
+ # Remoting WCS sandbox JavaScript files.
+ 'remoting_webapp_js_wcs_sandbox_files': [
'webapp/wcs.js',
'webapp/wcs_loader.js',
- 'webapp/wcs_sandbox_container.js',
'webapp/wcs_sandbox_content.js',
+ 'webapp/xhr_proxy.js',
],
- 'remoting_webapp_js_files': [
+
+ # The JavaScript files required by main.html.
+ 'remoting_webapp_main_html_js_files': [
'<@(remoting_webapp_js_auth_client2host_files)',
'<@(remoting_webapp_js_auth_google_files)',
'<@(remoting_webapp_js_client_files)',
@@ -113,7 +123,26 @@
'<@(remoting_webapp_js_ui_files)',
'<@(remoting_webapp_js_ui_host_control_files)',
'<@(remoting_webapp_js_ui_host_display_files)',
- '<@(remoting_webapp_js_wcs_files)',
+ '<@(remoting_webapp_js_wcs_container_files)',
+ ],
+
+ # The JavaScript files required by wcs_sandbox.html.
+ 'remoting_webapp_wcs_sandbox_html_js_files': [
+ '<@(remoting_webapp_js_wcs_sandbox_files)',
+ 'webapp/error.js',
+ 'webapp/plugin_settings.js',
+ ],
+
+ # All the JavaScript files required by the webapp.
+ 'remoting_webapp_all_js_files': [
+ # JS files for main.html.
+ '<@(remoting_webapp_main_html_js_files)',
+ # JS files for wcs_sandbox.html.
+ # Use r_w_js_wcs_sandbox_files instead of r_w_wcs_sandbox_html_js_files
+ # so that we don't double include error.js and plugin_settings.js.
+ '<@(remoting_webapp_js_wcs_sandbox_files)',
+ # JS files referenced in mainfest.json.
+ '<@(remoting_webapp_js_auth_v1_files)',
],
'remoting_webapp_resource_files': [
@@ -131,20 +160,48 @@
'resources/tick.webp',
'webapp/connection_stats.css',
'webapp/main.css',
- 'webapp/main.html',
'webapp/menu_button.css',
'webapp/open_sans.css',
'webapp/open_sans.woff',
'webapp/scale-to-fit.webp',
'webapp/spinner.gif',
'webapp/toolbar.css',
- 'webapp/wcs_sandbox.html',
],
'remoting_webapp_files': [
'<@(remoting_webapp_info_files)',
- '<@(remoting_webapp_js_files)',
+ '<@(remoting_webapp_all_js_files)',
'<@(remoting_webapp_resource_files)',
],
+
+ # These template files are used to construct the webapp html files.
+ 'remoting_webapp_template_main':
+ 'webapp/html/template_main.html',
+
+ 'remoting_webapp_template_wcs_sandbox':
+ 'webapp/html/template_wcs_sandbox.html',
+
+ 'remoting_webapp_template_files': [
+ 'webapp/html/butterbar.html',
+ 'webapp/html/dialog_auth.html',
+ 'webapp/html/dialog_client_host_needs_upgrade.html',
+ 'webapp/html/dialog_client.html',
+ 'webapp/html/dialog_client_pin_prompt.html',
+ 'webapp/html/dialog_client_session_finished.html',
+ 'webapp/html/dialog_client_third_party_auth.html',
+ 'webapp/html/dialog_client_unconnected.html',
+ 'webapp/html/dialog_confirm_host_delete.html',
+ 'webapp/html/dialog_connection_history.html',
+ 'webapp/html/dialog_host.html',
+ 'webapp/html/dialog_host_install.html',
+ 'webapp/html/dialog_host_setup.html',
+ 'webapp/html/dialog_manage_pairings.html',
+ 'webapp/html/dialog_token_refresh_failed.html',
+ 'webapp/html/toolbar.html',
+ 'webapp/html/ui_header.html',
+ 'webapp/html/ui_it2me.html',
+ 'webapp/html/ui_me2me.html',
+ ],
+
},
}