blob: e1e8258fbd0616fbd17756f845ba1129f405a1a0 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Definitions SYSTEM "widlprocxml.dtd">
<Definitions>
<webidl>enum MealType { &quot;rice&quot;, &quot;noodles&quot;, &quot;other&quot; };
interface Meal {
attribute <ref>MealType</ref> type;
attribute float size;
void initialize(<ref>MealType</ref> type, float size);
};</webidl>
<Enum name="MealType" id="::MealType">
<webidl>enum MealType { &quot;rice&quot;, &quot;noodles&quot;, &quot;other&quot; };</webidl>
<EnumValue stringvalue="rice">
<webidl> &quot;rice</webidl>
</EnumValue>
<EnumValue stringvalue="noodles">
<webidl> &quot;noodles</webidl>
</EnumValue>
<EnumValue stringvalue="other">
<webidl> &quot;other</webidl>
</EnumValue>
</Enum>
<Interface name="Meal" id="::Meal">
<webidl>interface Meal {
attribute <ref>MealType</ref> type;
attribute float size;
void initialize(<ref>MealType</ref> type, float size);
};</webidl>
<Attribute name="type" id="::Meal::type">
<webidl> attribute <ref>MealType</ref> type;</webidl>
<Type name="MealType"/>
</Attribute>
<Attribute name="size" id="::Meal::size">
<webidl> attribute float size;</webidl>
<Type type="float"/>
</Attribute>
<Operation name="initialize" id="::Meal::initialize">
<webidl> void initialize(<ref>MealType</ref> type, float size);</webidl>
<Type type="void"/>
<ArgumentList>
<Argument name="type">
<Type name="MealType"/>
</Argument>
<Argument name="size">
<Type type="float"/>
</Argument>
</ArgumentList>
</Operation>
</Interface>
</Definitions>