Commit 7e09e661 authored by Oksana Zhuravlova's avatar Oksana Zhuravlova Committed by Commit Bot

Add 'os_whitelist' note to the mojo typemap documentation

Change-Id: Iee49a86a9973be6799fb29004ce560fa8d69d068
Reviewed-on: https://chromium-review.googlesource.com/c/1354621Reviewed-by: default avatarKen Rockot <rockot@google.com>
Commit-Queue: Oksana Zhuravlova <oksamyt@chromium.org>
Cr-Commit-Position: refs/heads/master@{#612353}
parent ef3d27ed
...@@ -1372,6 +1372,7 @@ Let's place this `geometry.typemap` file alongside our Mojom file: ...@@ -1372,6 +1372,7 @@ Let's place this `geometry.typemap` file alongside our Mojom file:
``` ```
mojom = "//ui/gfx/geometry/mojo/geometry.mojom" mojom = "//ui/gfx/geometry/mojo/geometry.mojom"
os_whitelist = [ "android" ]
public_headers = [ "//ui/gfx/geometry/rect.h" ] public_headers = [ "//ui/gfx/geometry/rect.h" ]
traits_headers = [ "//ui/gfx/geometry/mojo/geometry_struct_traits.h" ] traits_headers = [ "//ui/gfx/geometry/mojo/geometry_struct_traits.h" ]
sources = [ sources = [
...@@ -1389,6 +1390,8 @@ Let's look at each of the variables above: ...@@ -1389,6 +1390,8 @@ Let's look at each of the variables above:
* `mojom`: Specifies the `mojom` file to which the typemap applies. Many * `mojom`: Specifies the `mojom` file to which the typemap applies. Many
typemaps may apply to the same `mojom` file, but any given typemap may only typemaps may apply to the same `mojom` file, but any given typemap may only
apply to a single `mojom` file. apply to a single `mojom` file.
* `os_whitelist`: Optional list of specific platforms this typemap
should be constrained to.
* `public_headers`: Additional headers required by any code which would depend * `public_headers`: Additional headers required by any code which would depend
on the Mojom definition of `gfx.mojom.Rect` now that the typemap is applied. on the Mojom definition of `gfx.mojom.Rect` now that the typemap is applied.
Any headers required for the native target type definition should be listed Any headers required for the native target type definition should be listed
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment