tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

GPUUncapturedErrorEvent.webidl (891B)


      1 /* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
      2 /* This Source Code Form is subject to the terms of the Mozilla Public
      3 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
      4 * You can obtain one at http://mozilla.org/MPL/2.0/.
      5 *
      6 * The origin of this IDL file is
      7 * https://gpuweb.github.io/gpuweb/
      8 */
      9 
     10 // NOTE: This is part of WebGPU. We don't include this in `WebGPU.webidl`, in part because this
     11 // split allows code to generate properly.
     12 
     13 [Func="mozilla::webgpu::Instance::PrefEnabled",
     14 Exposed=(Window, Worker), SecureContext]
     15 interface GPUUncapturedErrorEvent : Event {
     16    constructor(
     17        DOMString type,
     18        GPUUncapturedErrorEventInit gpuUncapturedErrorEventInitDict
     19    );
     20    [SameObject] readonly attribute GPUError error;
     21 };
     22 
     23 dictionary GPUUncapturedErrorEventInit : EventInit {
     24    required GPUError error;
     25 };