Kateryna Prokopenko | 704e6d6 | 2020-10-14 14:42:40 | [diff] [blame] | 1 | // 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 | |
| 12 | import './Icon.js'; |
| 13 | /** |
| 14 | * @typedef {IconWithPath|IconWithName} |
| 15 | */ |
| 16 | // @ts-ignore we export this for Closure not TS |
| 17 | export 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 |
| 27 | export 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 |
| 37 | export let IconWithName; |
| 38 | // eslint-disable-next-line no-unused-vars |
| 39 | export 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 | */ |
| 55 | export function createIcon() { |
| 56 | return /** @type {!IconClosureInterface} */ (document.createElement('devtools-icon')); |
| 57 | } |