File: app.html

package info (click to toggle)
chromium 139.0.7258.127-1
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 6,122,068 kB
  • sloc: cpp: 35,100,771; ansic: 7,163,530; javascript: 4,103,002; python: 1,436,920; asm: 946,517; xml: 746,709; pascal: 187,653; perl: 88,691; sh: 88,436; objc: 79,953; sql: 51,488; cs: 44,583; fortran: 24,137; makefile: 22,147; tcl: 15,277; php: 13,980; yacc: 8,984; ruby: 7,485; awk: 3,720; lisp: 3,096; lex: 1,327; ada: 727; jsp: 228; sed: 36
file content (213 lines) | stat: -rw-r--r-- 6,376 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
<link rel="stylesheet" href="usb_internals.css">
<cr-tab-box sticky-tabs hidden>
  <div slot="tab">Test Devices</div>
  <div slot="tab">Devices</div>
  <div slot="panel">
    <!-- Test Devices -->
    <h2>Test Devices</h2>
    <p>
      <table class="styled-table">
        <thead>
          <tr>
            <th>Name</th>
            <th>Serial number</th>
            <th>Landing page</th>
            <th>
          </tr>
        </thead>
        <tbody id="test-device-list">
        </tbody>

        <template id="test-device-row">
          <tr>
            <td></td>
            <td></td>
            <td></td>
            <td><button>Remove</button></td>
          </tr>
        </template>

      </table>
    </p>
    <div class="page-section">
      <strong>Add a test device:</strong>
      <form id="add-test-device-form" action="">
        <p>
          <label>
            Name: <input id="test-device-name" type="text" size="40">
          </label>
        </p>
        <p>
          <label>
            Serial number:
            <input id="test-device-serial" type="text" size="40">
          </label>
        </p>
        <p>
          <label>
            Landing page:
            <input id="test-device-landing-page" type="text" size="40">
          </label>
        </p>
        <button type="submit">Add</button>
        <span id="add-test-device-result"></span>
      </form>
    </div>
  </div>

  <div slot="panel">
    <!-- Devices -->
    <h2>Devices</h2>
    <table class="styled-table">
      <thead>
        <tr>
          <th>Bus Number</th>
          <th>Port Number</th>
          <th>Vendor Id</th>
          <th>Product Id</th>
          <th>Manufacturer Name</th>
          <th>Product Name</th>
          <th>Serial Number</th>
          <th>
        </tr>
      </thead>
      <tbody id="device-list"></tbody>

      <template id="device-row">
        <tr>
          <td></td>
          <td></td>
          <td></td>
          <td></td>
          <td></td>
          <td></td>
          <td></td>
          <td><button>Inspect</button></td>
        </tr>
      </template>

    </table>
  </div>
</cr-tab-box>


<template id="tab-template">
  <div slot="tab"></div>
</template>

<template id="device-tabpanel-template">
  <div slot="panel">
    <cr-tree class="tree-view"></cr-tree>
    <div class="descriptor-button">
      <button class="device-descriptor-button">Get Device Descriptor</button>
    </div>
    <div class="device-descriptor-panel" hidden></div>
    <div class="descriptor-button">
      <button class="configuration-descriptor-button">
        Get Configuration Descriptor
      </button>
    </div>
    <div class="configuration-descriptor-panel" hidden></div>
    <div class="descriptor-button">
      <button class="string-descriptor-button">Get String Descriptor</button>
    </div>
    <div class="string-descriptor-panel" hidden>
      String Descriptor Index:
      <input id="index-input" type="number" min="1" list="indexes">
      <datalist id="indexes"></datalist>
      Language Code:
      <input id="language-code-input" list="languages">
      <datalist id="languages"></datalist>
      <button>GET</button>
    </div>
    <div class="descriptor-button">
      <button class="bos-descriptor-button">
        Get WebUSB & Microsoft OS 2.0 Descriptors
      </button>
    </div>
    <div class="bos-descriptor-panel" hidden></div>
    <div class="descriptor-button">
      <button class="testing-tool-button">Testing Tool Panel</button>
    </div>
    <div class="testing-tool-panel" hidden>
      <select id="input-type">
        <option label="Decimal with Dropdown Menu"></option>
        <option label="Hex Bytes"></option>
      </select>
      <table class="styled-table">
        <thead>
          <tr>
            <th>bmRequestType</th>
            <th>bRequest</th>
            <th>wValue</th>
            <th>wIndex</th>
            <th>wLength</th>
          </tr>
        </thead>
        <tbody id="testing-tool">
          <tr>
            <td>
              <select id="transfer-direction">
                <option label="Host-to-Device" value="Host-to-Device">
                </option>
                <option label="Device-to-Host" value="Device-to-Host">
                </option>
              </select>
              <select id="transfer-type">
                <option label="Standard" value="STANDARD"></option>
                <option label="Class" value="CLASS"></option>
                <option label="Vendor" value="VENDOR"></option>
              </select>
              <select id="transfer-recipient">
                <option label="Device" value="DEVICE"></option>
                <option label="Interface" value="INTERFACE"></option>
                <option label="Endpoint" value="ENDPOINT"></option>
                <option label="Other" value="OTHER"></option>
              </select>
            </td>
            <td><input id="query-request" type="number" placeholder="0"></td>
            <td><input id="query-value" type="number" placeholder="0"></td>
            <td><input id="query-index" type="number" placeholder="0"></td>
            <td><input id="query-length" type="number" placeholder="0"></td>
            <td><button>Send</button></td>
          </tr>
          <tr hidden>
            <td>0x<input id="query-request-type" placeholder="00"></td>
            <td>0x<input id="query-request" placeholder="00"></td>
            <td>0x<input id="query-value" placeholder="0000"></td>
            <td>0x<input id="query-index" placeholder="0000"></td>
            <td>0x<input id="query-length" placeholder="0000"></td>
            <td><button>Send</button></td>
          </tr>
        </tbody>
      </table>
      <div id="data-input-area">
        Data (in Hex):
        <textarea cols="31"></textarea>
      </div>
    </div>
  </div>
</template>

<template id="descriptor-panel-template">
  <descriptorpanel>
    <cr-tree class="raw-data-tree-view"></cr-tree>
    <div class="raw-data-byte-view"></div>
  </descriptorpanel>
</template>

<template id="raw-data-byte-container-template">
  <div></div>
</template>

<template id="raw-data-byte-template">
  <span></span>
</template>

<template id="raw-data-tree-button">
  <button>GET</button>
</template>

<template id="descriptor-panel-title">
  <descriptorpaneltitle></descriptorpaneltitle>
</template>