| // Extracted from http://dev.w3.org/2006/webapi/WebIDL/ on 2011-05-06 | |
| interface Dimensions { | |
| attribute unsigned long width; | |
| attribute unsigned long height; | |
| }; | |
| exception NoPointerDevice { }; | |
| interface Button { | |
| // An operation that takes no arguments, returns a boolean | |
| boolean isMouseOver(); | |
| // Overloaded operations. | |
| void setDimensions(Dimensions size); | |
| void setDimensions(unsigned long width, unsigned long height); | |
| }; |