Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / remoting / webapp / manifest.json.jinja2
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       "page": "background.html"
17      }
18 {% endif %}
19   },
20 {% if webapp_type == 'v1' %}
21   "background": {
22     "page": "background.html",
23     "persistent": false
24   },
25 {% endif %}
26   "icons": {
27     "128": "chromoting128.webp",
28     "48": "chromoting48.webp",
29     "16": "chromoting16.webp"
30   },
31 {% if webapp_type == 'v1' %}
32   "content_scripts": [
33     {
34       "matches": [
35         "{{ OAUTH2_REDIRECT_URL }}"
36       ],
37       "js": [ "cs_oauth2_trampoline.js" ]
38     },
39     {
40       "matches": [
41         "{{ THIRD_PARTY_AUTH_REDIRECT_URL }}"
42       ],
43       "js": [ "cs_third_party_auth_trampoline.js" ]
44     }
45   ],
46   "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",
47 {% endif %}
48   "optional_permissions": [
49     "<all_urls>"
50   ],
51
52 {% if webapp_type != 'v1' %}
53   "oauth2": {
54     "client_id": "{{ REMOTING_IDENTITY_API_CLIENT_ID }}",
55     "scopes": [
56       "https://www.googleapis.com/auth/chromoting https://www.googleapis.com/auth/googletalk https://www.googleapis.com/auth/userinfo#email"
57     ]
58   },
59   "sandbox": {
60     "pages": [ "wcs_sandbox.html" ]
61   },
62 {% endif %}
63   "externally_connectable": {
64     "matches": [
65         "https://*.talkgadget.google.com/*"
66     ]
67   },
68   "permissions": [
69     "{{ OAUTH2_ACCOUNTS_HOST }}/*",
70     "{{ OAUTH2_API_BASE_URL }}/*",
71     "{{ DIRECTORY_API_BASE_URL }}/*",
72     "{{ TALK_GADGET_HOST }}/talkgadget/*",
73     "https://relay.google.com/*",
74     "storage",
75     "clipboardRead",
76     "clipboardWrite",
77     "nativeMessaging"
78 {% if webapp_type != 'v1' %}
79     ,
80     "fullscreen",
81     "identity",
82     "contextMenus",
83     "overrideEscFullscreen"
84 {% endif %}
85 {% if webapp_type == 'v2_pnacl' %}
86     ,{
87       "socket": [
88         "tcp-connect",
89         "tcp-listen",
90         "udp-send-to",
91         "udp-bind",
92         "udp-multicast-membership",
93         "resolve-host",
94         "network-state"
95       ]
96     }
97 {% endif %}
98   ]
99 }