File: notifications_page.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 (121 lines) | stat: -rw-r--r-- 5,284 bytes parent folder | download | duplicates (3)
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
<style include="cr-hidden-style settings-shared site-settings-shared"></style>
<template is="dom-if"
    if="[[enablePermissionSiteSettingsRadioButton_]]">
  <div class="content-settings-header secondary">
    $i18n{siteSettingsNotificationsDescription}
  </div>
</template>
<div id="notificationRadioGroup" class="radio-group">
  <template is="dom-if" if="[[showNotificationPermissionsReview_]]">
    <template is="dom-if" if="[[shouldShowSafetyHub_]]">
      <h2>$i18n{safetyHub}</h2>
      <settings-safety-hub-module id="safetyHubEntryPoint"
          header="[[notificationPermissionsReviewHeader_]]"
          subheader="[[notificationPermissionsReviewSubheader_]]"
          header-icon="cr:security" header-icon-color="blue">
        <cr-button id="safetyHubButton" slot="button-container"
            class="action-button" on-click="onSafetyHubButtonClick_">
          $i18n{safetyHubEntryPointButtonLabel}
        </cr-button>
      </settings-safety-hub-module>
    </template>
  </template>
  <template is="dom-if"
      if="[[!enablePermissionSiteSettingsRadioButton_]]">
    <h2>$i18n{siteSettingsDefaultBehavior}</h2>
    <div id="notificationSubHeading"
        class="secondary radio-sub-heading">
      $i18n{siteSettingsNotificationsDefaultBehaviorDescription}
    </div>
    <cr-radio-group
        on-selected-changed="onNotificationTopLevelRadioChanged_">
      <cr-radio-button
          id="notification-ask-radio-button"
          name="notification-ask-radio-button"
          checked$="[[isNotificationAllowed_]]">
        <cr-icon icon="privacy:notifications"></cr-icon>
        $i18n{siteSettingsNotificationsAskState}
      </cr-radio-button>
      <settings-radio-group
          id="notificationCpssRadioGroup"
          pref="{{prefs.generated.notification}}"
          selectable-elements="cr-radio-button"
          hidden$="[[!isNotificationAllowed_]]">
        <cr-radio-button class="padded-radio-section"
            id="notification-ask-quiet"
            name="[[settingsStateEnum_.QUIET]]"
            pref="[[prefs.generated.notification]]"
            label="$i18n{siteSettingsNotificationsAskQuiet}">
        </cr-radio-button>
        <cr-radio-button class="padded-radio-section"
            id="notification-ask-cpss"
            name="[[settingsStateEnum_.CPSS]]"
            pref="[[prefs.generated.notification]]"
            label="$i18n{siteSettingsNotificationsAskCPSS}">
        </cr-radio-button>
        <cr-radio-button class="padded-radio-section"
            id="notification-ask-loud"
            name="[[settingsStateEnum_.LOUD]]"
            pref="[[prefs.generated.notification]]"
            label="$i18n{siteSettingsNotificationsAskLoud}">
        </cr-radio-button>
      </settings-radio-group>
      <cr-radio-button class="two-line"
          id="notification-block"
          name="notification-block-radio-button"
          sub-label="$i18n{siteSettingsNotificationsBlockedSubLabel}"
          checked$="[[!isNotificationAllowed_]]">
        <cr-icon icon="privacy:notifications-off"></cr-icon>
        $i18n{siteSettingsNotificationsBlocked}
      </cr-radio-button>
    </cr-radio-group>
  </template>
</div>
<template is="dom-if"
    if="[[enablePermissionSiteSettingsRadioButton_]]">
  <settings-category-default-radio-group
      id="notificationDefaultRadioGroup"
      category="[[contentSettingsTypesEnum_.NOTIFICATIONS]]"
      allow-option-label="$i18n{siteSettingsNotificationsAskState}"
      allow-option-icon="privacy:notifications"
      block-option-label="$i18n{siteSettingsNotificationsBlocked}"
      block-option-icon="privacy:notifications-off"
      on-selected-changed="onNotificationTopLevelRadioChanged2_">
  </settings-category-default-radio-group>
  <div class="radio-group"
      hidden$="[[!isNotificationAllowed_]]">
    <h2 class="cpss-heading">$i18n{siteSettingsHowToShowRequests}</h2>
    <settings-radio-group
        id="notificationCpssRadioGroup"
        pref="{{prefs.generated.notification}}"
        selectable-elements="settings-collapse-radio-button">
      <settings-collapse-radio-button
          id="notification-ask-quiet"
          name="[[settingsStateEnum_.QUIET]]"
          pref="[[prefs.generated.notification]]"
          label="$i18n{siteSettingsNotificationsAskQuiet}"
          no-collapse>
      </settings-collapse-radio-button>
      <settings-collapse-radio-button
          id="notification-ask-cpss"
          name="[[settingsStateEnum_.CPSS]]"
          pref="[[prefs.generated.notification]]"
          label="$i18n{siteSettingsNotificationsAskCPSS}"
          no-collapse>
      </settings-collapse-radio-button>
      <settings-collapse-radio-button
          id="notification-ask-loud"
          name="[[settingsStateEnum_.LOUD]]"
          pref="[[prefs.generated.notification]]"
          label="$i18n{siteSettingsNotificationsAskLoud}"
          no-collapse>
      </settings-collapse-radio-button>
    </settings-radio-group>
  </div>
</template>
<category-setting-exceptions
    category="[[contentSettingsTypesEnum_.NOTIFICATIONS]]"
    allow-header="$i18n{siteSettingsNotificationsAllowedExceptions}"
    block-header="$i18n{siteSettingsNotificationsBlockedExceptions}"
    search-filter="[[searchTerm]]">
</category-setting-exceptions>