Skip to content

Commit

Permalink
Merge pull request #359 from dotproto/chromium-types
Browse files Browse the repository at this point in the history
Add interface definitions for Chromium
  • Loading branch information
dotproto authored Mar 14, 2024
2 parents 75afd30 + 2a74ba2 commit 10591b2
Show file tree
Hide file tree
Showing 133 changed files with 34,663 additions and 0 deletions.
26 changes: 26 additions & 0 deletions interfaces/chromium/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
Chromium extension interface data was collected at 2023-03-03T19:05:00.000Z.

| Subdirectory | Chromium source view | Directory archive |
| --- | --- | --- |
[extensions-common-api](extensions-common-api) | [common/apps/platform_apps/api](https://source.chromium.org/chromium/chromium/src/+/main:extensions/common/api/) | [download](https://chromium.googlesource.com/chromium/src/+archive/HEAD/extensions/common/api.tar.gz) |
[chrome-common-extensions-api](chrome-common-extensions-api) | [chrome/common/extensions/api](https://source.chromium.org/chromium/chromium/src/+/main:chrome/common/extensions/api) | [download](https://chromium.googlesource.com/chromium/src/+archive/HEAD/chrome/common/extensions/api.tar.gz) |

Subdirectories of this folder contain the JSON and IDL files the Chromium project uses to define the extension platform APIs it exposes to developers. The names of these directories are based on where these files were located in the Chromium repository, where path separators (`/`) are replaced by dashes (`-`).

1. Download the `.tar.giz` archive for each directory.
2. Extract each `.tar.gz` file to the `interfaces/chromium` directory in this repo.
3. CD into the `interfaces/chromium` directory
4. Remove all files except those with a `json` or `idl` extension.
* Use the following Bash command or appropriate equivalent

```bash
find -E . -type f -not -iregex ".*\.(json|idl)" -exec rm {} \;
```
5. Remove all private and internal files.
* Use the following Bash command or appropriate equivalent.

```bash
find -E . -type f -iregex ".*_(private|internal)\.(json|idl)" -exec rm {} \;
```

For information on the Chromium project's extension interface definitions, see https://source.chromium.org/chromium/chromium/src/+/main:chrome/common/extensions/api/_features.md
Loading

0 comments on commit 10591b2

Please sign in to comment.