IDL: Support 'required' in dictionary
commitcb3b714db098466d34735c23c79c8d8f34b2e233
authorbashi <bashi@chromium.org>
Wed, 1 Apr 2015 06:56:18 +0000 (31 23:56 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 1 Apr 2015 06:57:08 +0000 (1 06:57 +0000)
treee444a2d212703baacf67dbf136d9538d2eb85633
parent7e95a121dc3382949ab1c854bcd4d95e7489d957
IDL: Support 'required' in dictionary

Per spec[1], a dictionary member can be specified as 'required'.
If it is specified, node.GetProperty('REQUIRED') returns true.

[1] http://heycam.github.io/webidl/#required-dictionary-member

BUG=472220

Review URL: https://codereview.chromium.org/1046383002

Cr-Commit-Position: refs/heads/master@{#323195}
tools/idl_parser/idl_parser.py
tools/idl_parser/test_parser/dictionary_web.idl