- add sources.
[platform/framework/web/crosswalk.git] / src / chrome / browser / resources / file_manager / manifest.json
1 {
2   // chrome-extension://hhaomjibdihmijegdhdafkllkbggdgoj/
3   "key": "MIGdMA0GCSqGSIb3DQEBAQUAA4GLADCBhwKBgQDlhpGghtnNJ7pluQN0RDwbUxwwi99oM35ZEaFYvxPLrf0fIEC18cfDdJi6u4aJ+UoSpgzK731L0P/k4LvK2Rz9kVKOy0+IvuRrWkT7lbrLfA1UEBh02OA1AAshjmyRg4IxCqgl8ia8XWq6HKegS1y1KXZYGgb4qp7Bh9VC4cIzswIBIw==",
4   "manifest_version": 2,
5   "name": "Files",
6   "version": "3.0",
7   "description": "File Manager",
8   "incognito" : "split",
9   "icons": {
10     "16": "common/images/icon16.png",
11     "32": "common/images/icon32.png",
12     "48": "common/images/icon48.png",
13     "64": "common/images/icon64.png",
14     "96": "common/images/icon96.png",
15     "128": "common/images/icon128.png",
16     "256": "common/images/icon256.png"
17   },
18   "permissions": [
19     "contextMenus",
20     "experimental",
21     "echoPrivate",
22     "storage",
23     "fileBrowserHandler",
24     "fileBrowserPrivate",
25     "fullscreen",
26     "mediaPlayerPrivate",
27     "mediaGalleriesPrivate",
28     "metricsPrivate",
29     "commandLinePrivate",
30     "unlimitedStorage",
31     "webview",
32     // Comment out chrome:// permissions to debug on a desktop browser.
33     "chrome://extension-icon/",
34     "chrome://resources/",
35     "chrome://theme/",
36     "tabs",
37     "clipboardWrite",
38     "clipboardRead",
39     "https://docs.google.com/",
40     "https://*.googleusercontent.com/",
41     "https://drive.google.com/"
42   ],
43   "file_browser_handlers": [
44     {
45       "id": "play",
46       "default_title": "__MSG_PLAY_MEDIA__",
47       "default_icon": "common/images/file_types/200/audio.png",
48       "file_filters": [
49         "filesystem:*.amr",
50         "filesystem:*.flac",
51         "filesystem:*.m4a",
52         "filesystem:*.mp3",
53         "filesystem:*.oga",
54         "filesystem:*.ogg",
55         "filesystem:*.wav"
56       ]
57     },
58     {
59       "id": "watch",
60       "default_title": "__MSG_PLAY_MEDIA__",
61       "default_icon": "common/images/file_types/200/video.png",
62       "file_filters": [
63         "filesystem:*.3gp",
64         "filesystem:*.avi",
65         "filesystem:*.m4v",
66         "filesystem:*.mkv",
67         "filesystem:*.mov",
68         "filesystem:*.mp4",
69         "filesystem:*.mpeg",
70         "filesystem:*.mpeg4",
71         "filesystem:*.mpg",
72         "filesystem:*.mpg4",
73         "filesystem:*.ogm",
74         "filesystem:*.ogv",
75         "filesystem:*.ogx",
76         "filesystem:*.webm"
77       ]
78     },
79     {
80       "id": "mount-archive",
81       "default_title": "__MSG_MOUNT_ARCHIVE__",
82       "default_icon": "common/images/file_types/200/archive.png",
83       "file_filters": [
84         "filesystem:*.rar",
85         "filesystem:*.tar",
86         "filesystem:*.tar.bz2",
87         "filesystem:*.tar.gz",
88         "filesystem:*.tbz",
89         "filesystem:*.tbz2",
90         "filesystem:*.tgz",
91         "filesystem:*.zip"
92       ]
93     },
94     {
95       "id": "view-pdf",
96       "default_title": "__MSG_OPEN_ACTION__",
97       "default_icon": "common/images/file_types/200/pdf.png",
98       "file_filters": [
99         "filesystem:*.pdf"
100       ]
101     },
102     {
103       "id": "view-swf",
104       "default_title": "__MSG_OPEN_ACTION__",
105       "default_icon": "common/images/file_types/200/generic.png",
106       "file_filters": [
107         "filesystem:*.swf"
108       ]
109     },
110     {
111       "id": "view-in-browser",
112       "default_title": "__MSG_OPEN_ACTION__",
113       "default_icon": "common/images/file_types/200/generic.png",
114       "file_filters": [
115         "filesystem:*.htm",
116         "filesystem:*.html",
117         "filesystem:*.mht",
118         "filesystem:*.mhtml",
119         "filesystem:*.txt"
120       ]
121     },
122     {
123       "id": "gallery",
124       "default_title": "__MSG_OPEN_ACTION__",
125       "default_icon": "common/images/file_types/200/image.png",
126       "file_filters": [
127         // Image formats
128         "filesystem:*.bmp",
129         "filesystem:*.gif",
130         "filesystem:*.jpg",
131         "filesystem:*.jpeg",
132         "filesystem:*.png",
133         "filesystem:*.webp",
134         // Video formats
135         "filesystem:*.3gp",
136         "filesystem:*.avi",
137         "filesystem:*.m4v",
138         "filesystem:*.mkv",
139         "filesystem:*.mov",
140         "filesystem:*.mp4",
141         "filesystem:*.mpeg",
142         "filesystem:*.mpeg4",
143         "filesystem:*.mpg",
144         "filesystem:*.mpg4",
145         "filesystem:*.ogm",
146         "filesystem:*.ogv",
147         "filesystem:*.ogx",
148         "filesystem:*.webm"
149       ]
150     },
151     {
152       "id": "open-hosted-generic",
153       "default_title": "__MSG_HOSTED__",
154       "default_icon": "common/images/file_types/200generic.png",
155       "file_filters": [
156         "filesystem:*.gdraw",
157         "filesystem:*.gtable",
158         "filesystem:*.gform"
159       ]
160     },
161     {
162       "id": "open-hosted-gdoc",
163       "default_title": "__MSG_HOSTED__",
164       "default_icon": "common/images/file_types/200/generic.png",
165       "file_filters": [
166         "filesystem:*.gdoc"
167       ]
168     },
169     {
170       "id": "open-hosted-gsheet",
171       "default_title": "__MSG_HOSTED__",
172       "default_icon": "common/images/file_types/200/generic.png",
173       "file_filters": [
174         "filesystem:*.gsheet"
175       ]
176     },
177     {
178       "id": "open-hosted-gslides",
179       "default_title": "__MSG_HOSTED__",
180       "default_icon": "common/images/file_types/200/generic.png",
181       "file_filters": [
182         "filesystem:*.gslides"
183       ]
184     },
185     // The following handlers are used only internally, therefore they do not
186     // have any file filter.
187     // Automatically opens a volume and later close Files.app when unmounted.
188     {
189       "id": "auto-open",
190       "default_title": "__MSG_OPEN_ACTION__",
191       "default_icon": "common/images/file_types/200/generic.png",
192       "file_filters": []
193     },
194     // Selects the passed file after launching Files.app.
195     {
196       "id": "select",
197       "default_title": "__MSG_OPEN_ACTION__",
198       "default_icon": "common/images/file_types/200/generic.png",
199       "file_filters": []
200     },
201     // Opens the passed directory after launching Files.app.
202     {
203       "id": "open",
204       "default_title": "__MSG_OPEN_ACTION__",
205       "default_icon": "common/images/file_types/200/generic.png",
206       "file_filters": []
207     }
208   ],
209   // Required to import scripts in a web worker. Note, that in Apps v2, it is
210   // enough that anything is passed to web_accessible_resources. If there is
211   // at least any file, then all files are allowed. http://crbug.com/179127.
212   "web_accessible_resources": ["foreground/js/metadata/byte_reader.js"],
213   "app": {
214     "background": {
215       "scripts": [
216         "chrome://resources/js/load_time_data.js",
217         "chrome://resources/js/cr.js",
218         "chrome://resources/js/cr/event_target.js",
219         "chrome://resources/js/cr/ui/array_data_model.js",
220         "common/js/async_util.js",
221         "common/js/path_util.js",
222         "common/js/progress_center_common.js",
223         "common/js/util.js",
224         "background/js/volume_manager.js",
225         "background/js/file_operation_manager.js",
226         "background/js/test_util.js",
227         "background/js/progress_center.js",
228         "background/js/background.js"]
229     },
230     // chrome-extension://pmfjbimdmchhbnneeidfognadeopoehp is the image loader extension.
231     "content_security_policy": "default-src 'none'; script-src 'self' chrome://resources chrome-extension://pmfjbimdmchhbnneeidfognadeopoehp; style-src 'self' 'unsafe-inline' chrome://resources; frame-src 'self' about:; img-src 'self' chrome://resources chrome://theme data: https://docs.google.com https://*.googleusercontent.com chrome://extension-icon; media-src 'self' https://*.googleusercontent.com; connect-src https://drive.google.com; object-src 'self'"
232   }
233 }