summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/WebIDL/valid/xml/reg-operations.widlprocxml
blob: 3b756ed68d894b9a22eff0049904052b58ebe2d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Definitions SYSTEM "widlprocxml.dtd">
<Definitions>
  <webidl>interface Dimensions {
  attribute unsigned long width;
  attribute unsigned long height;
};

exception NoPointerDevice { };

interface Button {

  boolean isMouseOver();

  void setDimensions(<ref>Dimensions</ref> size);
  void setDimensions(unsigned long width, unsigned long height);
};</webidl>
  <Interface name="Dimensions" id="::Dimensions">
    <webidl>interface Dimensions {
  attribute unsigned long width;
  attribute unsigned long height;
};</webidl>
    <Attribute name="width" id="::Dimensions::width">
      <webidl>  attribute unsigned long width;</webidl>
      <Type type="unsigned long"/>
    </Attribute>
    <Attribute name="height" id="::Dimensions::height">
      <webidl>  attribute unsigned long height;</webidl>
      <Type type="unsigned long"/>
    </Attribute>
  </Interface>
  <Exception name="NoPointerDevice" id="::NoPointerDevice">
    <webidl>exception NoPointerDevice { };</webidl>
  </Exception>
  <Interface name="Button" id="::Button">
    <webidl>interface Button {

  boolean isMouseOver();

  void setDimensions(<ref>Dimensions</ref> size);
  void setDimensions(unsigned long width, unsigned long height);
};</webidl>
    <Operation name="isMouseOver" id="::Button::isMouseOver">
      <webidl>  boolean isMouseOver();</webidl>
      <Type type="boolean"/>
      <ArgumentList/>
    </Operation>
    <Operation name="setDimensions" id="::Button::setDimensions">
      <webidl>  void setDimensions(<ref>Dimensions</ref> size);</webidl>
      <Type type="void"/>
      <ArgumentList>
        <Argument name="size">
          <Type name="Dimensions"/>
        </Argument>
      </ArgumentList>
    </Operation>
    <Operation name="setDimensions" id="::Button::setDimensions">
      <webidl>  void setDimensions(unsigned long width, unsigned long height);</webidl>
      <Type type="void"/>
      <ArgumentList>
        <Argument name="width">
          <Type type="unsigned long"/>
        </Argument>
        <Argument name="height">
          <Type type="unsigned long"/>
        </Argument>
      </ArgumentList>
    </Operation>
  </Interface>
</Definitions>