chromium/chrome/browser/resources/chromeos/emulator/audio_settings.html


    <style include="device-emulator-shared-styles cr-shared-style iron-flex
        iron-flex-alignment iron-positioning">
    </style>
    <cr-dialog id="editDialog">
      <div slot="title">[[currentEditableObject.deviceName]]</div>
      <div slot="body">
        <form>
          <div class="form-field-section">
            <cr-input value="{{currentEditableObject.deviceName}}"
                label="Device Name"></cr-input>
            <cr-input value="{{currentEditableObject.name}}"
                label="Tray Name"></cr-input>
            <cr-input value="{{currentEditableObject.id}}"
                label="ID" disabled></cr-input>
          </div>
          <div class="form-field-section">
            <span class="toggle-button-label">Is Input</span>
            <cr-checkbox
                checked="{{currentEditableObject.isInput}}"></cr-checkbox>
          </div>
          <div class="form-field-section">
            <span class="toggle-button-label">Active</span>
            <cr-checkbox
                checked="{{currentEditableObject.active}}"></cr-checkbox>
          </div>
          <div class="form-field-section">
            <div class="form-label">Audio Type</div>
            <cr-radio-group class="device-class-group"
                selected="{{currentEditableObject.type}}">
              <template is="dom-repeat"
                  items="[[nodeTypeOptions]]" as="option">
                <cr-radio-button name="[[option.type]]">
                  [[option.name]]
                </cr-radio-button>
              </template>
            </cr-radio-group>
          </div>
        </form>
      </div>
      <div slot="button-container">
        <cr-button class="action-button" on-click="insertEditedAudioNode">
          Done
        </cr-button>
      </div>
    </cr-dialog>

    <div class="layout vertical">
      <div class="element-label">
        <cr-icon-button iron-icon="device-emulator:volume-up"></cr-icon-button>
        Audio
      </div>
      <table class="devices-table">
        <tbody>
          <tr class="table-section-header">
            <td colspan="2">Devices</td>
            <td class="centered-cell-label">Is Input</td>
            <td class="centered-cell-label">Active</td>
          </tr>
          <template is="dom-repeat" items="[[nodes]]">
            <tr>
              <td class="alias-cell">[[item.deviceName]]</td>
              <td class="icon-cell">
                <cr-icon-button iron-icon="device-emulator:content-copy"
                    data-predefined="false" on-click="copyDevice">
                </cr-icon-button>
                <cr-icon-button iron-icon="device-emulator:settings"
                    on-click="showEditDialog">
                </cr-icon-button>
                <cr-icon-button iron-icon="device-emulator:delete"
                    on-click="removeAudioNode">
                </cr-icon-button>
              </td>
              <td class="control-cell">
                <cr-checkbox checked="{{item.isInput}}"
                    on-change="insertAudioNode"></cr-checkbox>
              </td>
              <td class="control-cell">
                <cr-checkbox checked="{{item.active}}"
                    on-change="insertAudioNode"></cr-checkbox>
              </td>
            </tr>
          </template>
        </tbody>
      </table>
      <div class="add-device-container">
        <cr-button on-click="appendNewNode">Add Node</cr-button>
      </div>
    </div>