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
|
<style include="settings-shared">
.list-item:not(:last-of-type) {
border-bottom: var(--cr-separator-line);
}
.list-frame {
padding-bottom: 8px;
padding-top: 8px;
}
.separator {
margin: 0;
}
</style>
<template is="dom-if" if="[[showPrivacyHubLocationControl_]]" restamp>
<cr-link-row
id="geolocationAreaLinkRow"
start-icon="app-management:location"
on-click="onGeolocationAreaClick_"
label="$i18n{geolocationAreaTitle}"
sub-label="[[locationSubLabel_]]"
role-description="$i18n{subpageArrowRoleDescription}"
deep-link-focus-id$="[[Setting.kGeolocationOnOff]]"
using-slotted-label>
</div>
</cr-link-row>
</template>
<div id="cameraSection">
<div id="cameraRow" class="settings-box no-padding">
<cr-link-row id="cameraSubpageLink"
start-icon="app-management:camera"
label="$i18n{cameraToggleTitle}"
sub-label="[[cameraRowSubtext_]]"
on-click="onCameraSubpageLinkClick_"
role-description="$i18n{subpageArrowRoleDescription}">
</cr-link-row>
<div class="separator"></div>
<div id="cameraToggleWrapper">
<cr-toggle
id="cameraToggle"
class="margin-matches-padding"
checked="{{prefs.ash.user.camera_allowed.value}}"
disabled="[[shouldDisableCameraToggle_]]"
aria-label="$i18n{cameraToggleTitle}"
aria-description="[[cameraRowSubtext_]]">
</cr-toggle>
</div>
<paper-tooltip
id="cameraToggleTooltip"
hidden="[[!isCameraListEmpty_]]"
aria-hidden="true"
for="cameraToggleWrapper"
fit-to-visible-bounds>
$i18n{privacyHubNoCameraConnectedTooltipText}
</paper-tooltip>
</div>
</div>
<div id="microphoneSection">
<div id="microphoneRow" class="settings-box no-padding">
<cr-link-row id="microphoneSubpageLink"
start-icon="app-management:microphone"
label="$i18n{microphoneToggleTitle}"
sub-label="[[microphoneRowSubtext_]]"
on-click="onMicrophoneSubpageLinkClick_"
role-description="$i18n{subpageArrowRoleDescription}">
</cr-link-row>
<div class="separator"></div>
<div id="microphoneToggleWrapper">
<cr-toggle
id="microphoneToggle"
class="margin-matches-padding"
checked="{{prefs.ash.user.microphone_allowed.value}}"
disabled="[[shouldDisableMicrophoneToggle_]]"
aria-label="$i18n{microphoneToggleTitle}"
aria-description="[[microphoneRowSubtext_]]">
</cr-toggle>
</div>
<paper-tooltip
id="microphoneToggleTooltip"
hidden="[[!shouldDisableMicrophoneToggle_]]"
aria-hidden="true"
for="microphoneToggleWrapper"
fit-to-visible-bounds>
[[microphoneToggleTooltipText_]]
</paper-tooltip>
</div>
</div>
<template is="dom-if" if="[[showSpeakOnMuteDetectionPage_]]" restamp>
<div class="hr"></div>
<settings-toggle-button
pref="{{prefs.ash.user.speak_on_mute_detection_enabled}}"
id="speakonmuteDetectionToggle"
label="$i18n{speakOnMuteDetectionToggleTitle}"
sub-label="$i18n{speakOnMuteDetectionToggleSubtext}"
deep-link-focus-id$="[[Setting.kSpeakOnMuteDetectionOnOff]]"
learn-more-url="$i18n{speakOnMuteDetectionLearnMoreURL}">
</settings-toggle-button>
</template>
<if expr="_google_chrome">
<div class="hr"></div>
<settings-metrics-consent-toggle-button
id="metricsConsentToggle"
deep-link-focus-id$="[[Setting.kUsageStatsAndCrashReports]]"
prefs="{{prefs}}">
</settings-metrics-consent-toggle-button>
</if>
<div class="hr"></div>
<settings-toggle-button id="contentRecommendationsToggle"
pref="{{prefs.settings.suggested_content_enabled}}"
label="$i18n{enableSuggestedContent}"
sub-label="$i18n{enableSuggestedContentDesc}"
learn-more-url="$i18n{suggestedContentLearnMoreURL}">
</settings-toggle-button>
|