blob: c75b492a78e2888882670599a780d75c2a0f35b0 [file] [log] [blame]
Kateryna Prokopenko704e6d62020-10-14 14:42:401// Copyright 2020 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5/**
6* WARNING: do not modify this file by hand!
7* it was automatically generated by the bridge generator
8* if you made changes to the source code and need to update this file, run:
9* npm run generate-bridge-file front_end/elements/Icon.ts
10*/
11
12import './Icon.js';
13/**
14* @typedef {IconWithPath|IconWithName}
15*/
16// @ts-ignore we export this for Closure not TS
17export let IconData;
18/**
19* @typedef {{
20* iconPath:string,
21* color:string,
22* width:(string|undefined),
23* height:(string|undefined),
24* }}
25*/
26// @ts-ignore we export this for Closure not TS
27export let IconWithPath;
28/**
29* @typedef {{
30* iconName:string,
31* color:string,
32* width:(string|undefined),
33* height:(string|undefined),
34* }}
35*/
36// @ts-ignore we export this for Closure not TS
37export let IconWithName;
38// eslint-disable-next-line no-unused-vars
39export class IconClosureInterface extends HTMLElement {
40 /**
41 * @return {!IconData}
42 */
43 get data() {
44 throw new Error('Not implemented in _bridge.js');
45 }
46 /**
47 * @param {!IconData} data
48 */
49 set data(data) {
50 }
51}
52/**
53* @return {!IconClosureInterface}
54*/
55export function createIcon() {
56 return /** @type {!IconClosureInterface} */ (document.createElement('devtools-icon'));
57}