Home | History | Annotate | Download | only in webapp
      1 {
      2   {{ MANIFEST_KEY_FOR_UNOFFICIAL_BUILD }}
      3   "name": "__MSG_PRODUCT_NAME__",
      4   "version": "{{ FULL_APP_VERSION }}",
      5   "description": "__MSG_PRODUCT_DESCRIPTION__",
      6   "manifest_version": 2,
      7   "default_locale": "en",
      8   "minimum_chrome_version": "32",
      9   "app": {
     10 {% if webapp_type == 'v1' %}
     11     "launch": {
     12       "local_path": "main.html"
     13     }
     14 {% else %}
     15     "background": {
     16       "scripts": ["background.js"]
     17      }
     18 {% endif %}
     19   },
     20   "icons": {
     21     "128": "chromoting128.webp",
     22     "48": "chromoting48.webp",
     23     "16": "chromoting16.webp"
     24   },
     25 {% if webapp_type == 'v1' %}
     26   "content_scripts": [
     27     {
     28       "matches": [
     29         "{{ OAUTH2_REDIRECT_URL }}"
     30       ],
     31       "js": [ "cs_oauth2_trampoline.js" ]
     32     },
     33     {
     34       "matches": [
     35         "{{ THIRD_PARTY_AUTH_REDIRECT_URL }}"
     36       ],
     37       "js": [ "cs_third_party_auth_trampoline.js" ]
     38     }
     39   ],
     40   "content_security_policy": "default-src 'self'; script-src 'self' {{ TALK_GADGET_HOST }}; style-src 'self' https://fonts.googleapis.com; img-src 'self' {{ TALK_GADGET_HOST }} data:; font-src *; connect-src 'self' {{ OAUTH2_ACCOUNTS_HOST }} {{ GOOGLE_API_HOSTS }} {{ TALK_GADGET_HOST }} https://relay.google.com",
     41 {% endif %}
     42   "optional_permissions": [
     43     "<all_urls>"
     44   ],
     45 
     46 {% if webapp_type != 'v1' %}
     47   "oauth2": {
     48     "client_id": "{{ REMOTING_IDENTITY_API_CLIENT_ID }}",
     49     "scopes": [
     50       "https://www.googleapis.com/auth/chromoting https://www.googleapis.com/auth/googletalk https://www.googleapis.com/auth/userinfo#email"
     51     ]
     52   },
     53   "sandbox": {
     54     "pages": [ "wcs_sandbox.html" ]
     55   },
     56 {% endif %}
     57 
     58   "permissions": [
     59     "{{ OAUTH2_ACCOUNTS_HOST }}/*",
     60     "{{ OAUTH2_API_BASE_URL }}/*",
     61     "{{ DIRECTORY_API_BASE_URL }}/*",
     62     "{{ TALK_GADGET_HOST }}/talkgadget/*",
     63     "https://relay.google.com/*",
     64     "storage",
     65     "clipboardRead",
     66     "clipboardWrite",
     67     "nativeMessaging"
     68 {% if webapp_type != 'v1' %}
     69     ,
     70     "fullscreen",
     71     "identity",
     72     "contextMenus",
     73     "overrideEscFullscreen"
     74 {% endif %}
     75 {% if webapp_type == 'v2_pnacl' %}
     76     ,{
     77       "socket": [
     78         "tcp-connect",
     79         "tcp-listen",
     80         "udp-send-to",
     81         "udp-bind",
     82         "udp-multicast-membership",
     83         "resolve-host",
     84         "network-state"
     85       ]
     86     }
     87 {% endif %}
     88   ]
     89 }
     90