forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support EnableIf attribute to conditionally disable definitions.
Add support for a new EnableIf attribute to conditionally enable fields/types in mojom definitions. In order to do this, mojom parsing and code generation has been split into two separate GN stages. The mojom bindings generator has been refactored to separate the logic for parsing and code generation and the GN mojom template has been updated to express these two distinct stages. The parse stage now prunes a mojom's AST - filtering definitions based on the enabled features. These intermediate ASTs are then pickled to gen/ to be later read by the code generation stage. Bug: 676224 Change-Id: I5fc106b43e8ac48339c63c48f7ce42ba5145d174 Reviewed-on: https://chromium-review.googlesource.com/846399 Commit-Queue: Eve Martin-Jones <evem@chromium.org> Reviewed-by: Daniel Cheng <dcheng@chromium.org> Reviewed-by: Yuzhu Shen <yzshen@chromium.org> Reviewed-by: Ken Rockot <rockot@chromium.org> Reviewed-by: Chris Watkins <watk@chromium.org> Reviewed-by: Sam McNally <sammc@chromium.org> Cr-Commit-Position: refs/heads/master@{#533796}
- Loading branch information
Eve Martin-Jones
authored and
Commit Bot
committed
Feb 1, 2018
1 parent
78069c5
commit f83c71b
Showing
5 changed files
with
437 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.