|
21 | 21 | <xs:element name="file-type" type="caps:file-type" /> |
22 | 22 | <xs:element name="url-protocol" type="caps:url-protocol" /> |
23 | 23 | <xs:element name="context-menu" type="caps:context-menu" /> |
| 24 | + <xs:element name="native-messaging" type="caps:native-messaging" /> |
24 | 25 | <xs:element name="auto-play" type="caps:auto-play" /> |
25 | 26 | <xs:element name="com-server" type="caps:com-server" /> |
26 | 27 | <xs:element name="registration" type="caps:registration" /> |
|
308 | 309 | </xs:restriction> |
309 | 310 | </xs:simpleType> |
310 | 311 |
|
| 312 | + <xs:complexType name="native-messaging"> |
| 313 | + <xs:annotation> |
| 314 | + <xs:documentation> |
| 315 | + An application's ability to act as a browser native messaging host. |
| 316 | + </xs:documentation> |
| 317 | + </xs:annotation> |
| 318 | + <xs:complexContent> |
| 319 | + <xs:extension base="caps:default-capability"> |
| 320 | + <xs:attribute name="browser" type="caps:browser-enum" use="required"> |
| 321 | + <xs:annotation> |
| 322 | + <xs:documentation> |
| 323 | + The browser the native messaging host can be registered in. |
| 324 | + </xs:documentation> |
| 325 | + </xs:annotation> |
| 326 | + </xs:attribute> |
| 327 | + <xs:attribute name="name" type="caps:native-messaging-name" use="required"> |
| 328 | + <xs:annotation> |
| 329 | + <xs:documentation> |
| 330 | + The name used to call the native messaging host from browser extensions. |
| 331 | + </xs:documentation> |
| 332 | + </xs:annotation> |
| 333 | + </xs:attribute> |
| 334 | + <xs:attribute name="command" type="xs:string"> |
| 335 | + <xs:annotation> |
| 336 | + <xs:documentation> |
| 337 | + The name of the command in the feed to use. Defaults to 'run' if not set. |
| 338 | + </xs:documentation> |
| 339 | + </xs:annotation> |
| 340 | + </xs:attribute> |
| 341 | + <xs:sequence> |
| 342 | + <xs:element name="browser-extension" minOccurs="1" maxOccurs="unbounded"> |
| 343 | + <xs:complexType> |
| 344 | + <xs:attribute name="id" type="xs:string" use="required"> |
| 345 | + <xs:annotation> |
| 346 | + <xs:documentation> |
| 347 | + Browser extension that should have access to the native messaging host. |
| 348 | + </xs:documentation> |
| 349 | + </xs:annotation> |
| 350 | + </xs:attribute> |
| 351 | + </xs:complexType> |
| 352 | + </xs:element> |
| 353 | + </xs:sequence> |
| 354 | + </xs:extension> |
| 355 | + </xs:complexContent> |
| 356 | + </xs:complexType> |
| 357 | + <xs:simpleType name="browser-enum"> |
| 358 | + <xs:restriction base="xs:string"> |
| 359 | + <xs:enumeration value="Chrome"/> |
| 360 | + <xs:enumeration value="Chromium"/> |
| 361 | + <xs:enumeration value="Edge"/> |
| 362 | + <xs:enumeration value="Firefox"/> |
| 363 | + <xs:enumeration value="Opera"/> |
| 364 | + <xs:enumeration value="Brave"/> |
| 365 | + <xs:enumeration value="Vivaldi"/> |
| 366 | + </xs:restriction> |
| 367 | + </xs:simpleType> |
| 368 | + <xs:simpleType name="native-messaging-name"> |
| 369 | + <xs:restriction base="xs:string"> |
| 370 | + <xs:pattern value="[a-z0-9._]+"/> |
| 371 | + </xs:restriction> |
| 372 | + </xs:simpleType> |
| 373 | + |
311 | 374 | <xs:complexType name="auto-play"> |
312 | 375 | <xs:annotation> |
313 | 376 | <xs:documentation> |
|
0 commit comments