W3C home > Mailing lists > Public > whatwg@whatwg.org > September 2012

[whatwg] WebIDL nested interfaces

From: Tobie Langel <tobie.langel@gmail.com>
Date: Tue, 11 Sep 2012 00:39:46 +0200
Message-ID: <CAMK=o4fyrbytXNi1EQDxeOV42p9mHVpmqpVfjrQcaKQxn4FfOg@mail.gmail.com>
To: Glenn Maynard <glenn@zewt.org>
Cc: "whatwg@lists.whatwg.org" <whatwg@lists.whatwg.org>, Dean Jackson <dino@apple.com>, Ashley Gullen <ashley@scirra.com>
On Tue, Sep 11, 2012 at 12:14 AM, Glenn Maynard <glenn@zewt.org> wrote:
> On Mon, Sep 10, 2012 at 3:03 PM, Rick Waldron <waldron.rick@gmail.com>
>  wrote:
>> Has anyone considered a single global WebGL object with all of those constructors defined as properties?
> It's too late; WebGL is a shipping, widely-used API.  (This isn't a WebGL
> problem, either; it's just doing what every other API on the platform does.
>  I don't think WebIDL even has a mechanism to put interfaces inside other
> objects.)

Really? Wouldn't this do the trick:

interface WebGLActiveInfo {
    readonly attribute GLint size;
    readonly attribute GLenum type;
    readonly attribute DOMString name;

interface WebGLGlobal {
  attribute WebGLActiveInfo activeInfo;

partial interface Window {
  attribute WebGLGlobal WebGL;

Received on Monday, 10 September 2012 22:40:13 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:45 UTC