OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // This features file defines extension APIs implemented under src/extensions. | 5 // This features file defines extension APIs implemented under src/extensions. |
6 // See chrome/common/extensions/api/_features.md to understand this file, as | 6 // See chrome/common/extensions/api/_features.md to understand this file, as |
7 // well as feature.h, simple_feature.h, and feature_provider.h. | 7 // well as feature.h, simple_feature.h, and feature_provider.h. |
8 // | 8 // |
9 // Note that specifying "web_page", "blessed_web_page", or "all" as a context | 9 // Note that specifying "web_page", "blessed_web_page", or "all" as a context |
10 // type will require manually updating chrome/renderer/resources/dispatcher.cc. | 10 // type will require manually updating chrome/renderer/resources/dispatcher.cc. |
11 | 11 |
12 { | 12 { |
13 "alarms": { | 13 "alarms": { |
14 "dependencies": ["permission:alarms"], | 14 "dependencies": ["permission:alarms"], |
15 "contexts": ["blessed_extension"] | 15 "contexts": ["blessed_extension"] |
16 }, | 16 }, |
17 "app.runtime": [{ | 17 "app.runtime": [{ |
18 "channel": "stable", | 18 "channel": "stable", |
19 "contexts": ["blessed_extension"], | 19 "contexts": ["blessed_extension", "lock_screen_extension"], |
20 "extension_types": ["platform_app"], | 20 "extension_types": ["platform_app"], |
21 "noparent": true | 21 "noparent": true |
22 }, { | 22 }, { |
23 "channel": "stable", | 23 "channel": "stable", |
24 "component_extensions_auto_granted": false, | 24 "component_extensions_auto_granted": false, |
25 "contexts": ["blessed_extension"], | 25 "contexts": ["blessed_extension"], |
26 "extension_types": ["extension"], | 26 "extension_types": ["extension"], |
27 "noparent": true, | 27 "noparent": true, |
28 "whitelist": [ | 28 "whitelist": [ |
29 "2FC374607C2DF285634B67C64A2E356C607091C3", // Quickoffice | 29 "2FC374607C2DF285634B67C64A2E356C607091C3", // Quickoffice |
30 "3727DD3E564B6055387425027AD74C58784ACC15", // Quickoffice internal | 30 "3727DD3E564B6055387425027AD74C58784ACC15", // Quickoffice internal |
31 "12E618C3C6E97495AAECF2AC12DEB082353241C6" // QO component extension | 31 "12E618C3C6E97495AAECF2AC12DEB082353241C6" // QO component extension |
32 ] | 32 ] |
33 }], | 33 }], |
34 "app.window": [{ | 34 "app.window": [{ |
35 "channel": "stable", | 35 "channel": "stable", |
36 "contexts": ["blessed_extension"], | 36 "contexts": ["blessed_extension", "lock_screen_extension"], |
37 "extension_types": ["platform_app"], | 37 "extension_types": ["platform_app"], |
38 "noparent": true | 38 "noparent": true |
39 }, { | 39 }, { |
40 "channel": "stable", | 40 "channel": "stable", |
41 "contexts": ["blessed_extension"], | 41 "contexts": ["blessed_extension"], |
42 "extension_types": ["extension"], | 42 "extension_types": ["extension"], |
43 "noparent": true, | 43 "noparent": true, |
44 "component_extensions_auto_granted": false, | 44 "component_extensions_auto_granted": false, |
45 "whitelist": [ | 45 "whitelist": [ |
46 "B9EF10DDFEA11EF77873CC5009809E5037FC4C7A", // Google input tools | 46 "B9EF10DDFEA11EF77873CC5009809E5037FC4C7A", // Google input tools |
47 "06BE211D5F014BAB34BC22D9DDA09C63A81D828E", // Official xkb extension | 47 "06BE211D5F014BAB34BC22D9DDA09C63A81D828E", // Official xkb extension |
48 "F94EE6AB36D6C6588670B2B01EB65212D9C64E33" // Open source xkb extension | 48 "F94EE6AB36D6C6588670B2B01EB65212D9C64E33" // Open source xkb extension |
49 ] | 49 ] |
50 }], | 50 }], |
51 "app.currentWindowInternal": { | 51 "app.currentWindowInternal": { |
52 "noparent": true, | 52 "noparent": true, |
53 "internal": true, | 53 "internal": true, |
54 "channel": "stable", | 54 "channel": "stable", |
55 "contexts": ["blessed_extension"] | 55 "contexts": ["blessed_extension", "lock_screen_extension"] |
56 }, | 56 }, |
57 "app.currentWindowInternal.setShape": { | 57 "app.currentWindowInternal.setShape": { |
58 "dependencies": ["permission:app.window.shape"], | 58 "dependencies": ["permission:app.window.shape"], |
59 "contexts": ["blessed_extension"] | 59 "contexts": ["blessed_extension"] |
60 }, | 60 }, |
61 // The API for the *embedder* of appview. Appview has both an embedder and | 61 // The API for the *embedder* of appview. Appview has both an embedder and |
62 // guest API, which are different. | 62 // guest API, which are different. |
63 "appViewEmbedderInternal": { | 63 "appViewEmbedderInternal": { |
64 "internal": true, | 64 "internal": true, |
65 "contexts": ["blessed_extension"], | 65 "contexts": ["blessed_extension"], |
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
339 "contexts": ["blessed_extension"] | 339 "contexts": ["blessed_extension"] |
340 }, | 340 }, |
341 "printerProviderInternal": { | 341 "printerProviderInternal": { |
342 "internal": true, | 342 "internal": true, |
343 "dependencies": ["permission:printerProvider"], | 343 "dependencies": ["permission:printerProvider"], |
344 "contexts": ["blessed_extension"] | 344 "contexts": ["blessed_extension"] |
345 }, | 345 }, |
346 "runtime": { | 346 "runtime": { |
347 "channel": "stable", | 347 "channel": "stable", |
348 "extension_types": ["extension", "legacy_packaged_app", "platform_app"], | 348 "extension_types": ["extension", "legacy_packaged_app", "platform_app"], |
349 "contexts": ["blessed_extension"] | 349 "contexts": ["blessed_extension", "lock_screen_extension"] |
350 }, | 350 }, |
351 "runtime.getManifest": { | 351 "runtime.getManifest": { |
352 "contexts": ["blessed_extension", "unblessed_extension", "content_script"] | 352 "contexts": ["blessed_extension", "unblessed_extension", "content_script"] |
353 }, | 353 }, |
354 "runtime.connect": { | 354 "runtime.connect": { |
355 // Everything except WebUI. | 355 // Everything except WebUI. |
356 "contexts": [ | 356 "contexts": [ |
357 "blessed_web_page", | 357 "blessed_web_page", |
358 "content_script", | 358 "content_script", |
359 "blessed_extension", | 359 "blessed_extension", |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
456 "test": [{ | 456 "test": [{ |
457 "channel": "stable", | 457 "channel": "stable", |
458 "extension_types": "all", | 458 "extension_types": "all", |
459 // Everything except web pages and WebUI. WebUI is declared in a separate | 459 // Everything except web pages and WebUI. WebUI is declared in a separate |
460 // rule to keep the "matches" property isolated. | 460 // rule to keep the "matches" property isolated. |
461 "contexts": [ | 461 "contexts": [ |
462 "blessed_extension", | 462 "blessed_extension", |
463 "blessed_web_page", | 463 "blessed_web_page", |
464 "content_script", | 464 "content_script", |
465 "extension_service_worker", | 465 "extension_service_worker", |
| 466 "lock_screen_extension", |
466 "unblessed_extension" | 467 "unblessed_extension" |
467 ] | 468 ] |
468 }, { | 469 }, { |
469 "channel": "stable", | 470 "channel": "stable", |
470 "contexts": ["webui"], | 471 "contexts": ["webui"], |
471 "matches": [ | 472 "matches": [ |
472 "chrome://extensions/*", | 473 "chrome://extensions/*", |
473 "chrome://extensions-frame/*", | 474 "chrome://extensions-frame/*", |
474 "chrome://chrome/extensions/*" | 475 "chrome://chrome/extensions/*" |
475 ] | 476 ] |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
538 }, { | 539 }, { |
539 "channel": "stable", | 540 "channel": "stable", |
540 "contexts": ["webui"], | 541 "contexts": ["webui"], |
541 "matches": [ | 542 "matches": [ |
542 "chrome://chrome-signin/*", | 543 "chrome://chrome-signin/*", |
543 "chrome://media-router/*", | 544 "chrome://media-router/*", |
544 "chrome://oobe/*" | 545 "chrome://oobe/*" |
545 ] | 546 ] |
546 }] | 547 }] |
547 } | 548 } |
OLD | NEW |