1/*
2 * Copyright (C) 2022 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *      http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16import {Component} from '@angular/core';
17
18@Component({
19  selector: 'web-adb',
20  template: `
21    <p class="text-icon-wrapper mat-body-1">
22      <mat-icon class="adb-icon">info</mat-icon>
23      <span class="adb-info">Add new device</span>
24    </p>
25    <p class="mat-body-1">Click the button below to follow instructions in the Chrome pop-up.</p>
26    <p class="mat-body-1">Selecting a device will kill all existing ADB connections.</p>
27    <button color="primary" class="web-select-btn" mat-raised-button>Select a device</button>
28  `,
29  styles: [
30    `
31      .text-icon-wrapper {
32        display: flex;
33        flex-direction: row;
34        align-items: center;
35      }
36      .adb-info,
37      .web-select-btn {
38        margin-left: 5px;
39      }
40    `,
41  ],
42})
43export class WebAdbComponent {
44  adbDevice = null;
45}
46