File: phonehub_tab.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 (123 lines) | stat: -rw-r--r-- 4,392 bytes parent folder | download | duplicates (7)
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
<style include="cr-shared-style shared-style">
  :host {
    display: flex;
    justify-content: center;
  }

  .cr-row {
    display: flex;
    flex: 0 1 100%;
  }

  #flagDisabledContainer {
    align-items: center;
    display: flex;
    flex-direction: column;
  }
</style>

<template is="dom-if" if="[[isPhoneHubEnabled_]]" restamp>
  <div class="cr-row">
    <div class="cr-padded-text">
      Toggle on to use fake PhoneHub
    </div>
    <cr-toggle checked="{{shouldEnableFakePhoneHubManager_}}">
    </cr-toggle>
  </div>
  <template is="dom-if" if="[[!shouldEnableFakePhoneHubManager_]]" restamp>
    <div class="cr-row">
      <div class="cr-padded-text">
        Click to undo Notification Setup UI user dismissal. Note that
        Notification access must already be revoked for Google Play services on
        the phone (Toggle "Allow notification access" to off in Settings >
        Notifications > Device & app notifications > Google Play services OR
        Settings > Apps > Special app access > Device & app notifications >
        Google Play services). This will restart the Notification access
        onboarding flow.
      </div>
      <cr-button class="internals-button" on-click="onResetHasMultideviceFeatureSetupUiBeenDismissedButtonClick_">
        Reset
      </cr-button>
    </div>
    <div class="cr-row">
      <div class="cr-padded-text">
        Click to undo hiding of onboaring UI. The oboarding UI is hidden when
        the user has enabled the phonehub feature or if the user dismisses
        onboarding UI. Note that the user must have not started the opt-in flow
        yet.
      </div>
      <cr-button class="internals-button" on-click="onResetShouldShowOnboardingUiButtonClick_">
        Reset
      </cr-button>
    </div>
    <div class="cr-row">
      <div class="cr-padded-text">
        Click to make the Recent Photos onboarding UI appear when the feature
        becomes disabled by the user if it has been dismissed by the user
        previously. Note that this should be done before disabling Recent
        Photos from the Chromebook settings page in order for the onboarding UI
        to reappear.
      </div>
      <cr-button class="internals-button" on-click="onResetCameraRollOnboardingUiDismissedButtonClick_">
        Reset
      </cr-button>
    </div>
  </template>
  <template is="dom-if" if="[[shouldEnableFakePhoneHubManager_]]" restamp>
    <div class="cr-row">
      <div class="cr-padded-text">
        Select feature status
      </div>
      <select id="featureStatusList" class="md-select" on-change="onFeatureStatusSelected_">
        <template is="dom-repeat" items="[[featureStatusList_]]">
          <option selected="[[isEqual_(item, featureStatus_)]]">
            [[getFeatureStatusName_(item)]]
          </option>
        </template>
      </select>
      <div class="cr-padded-text" hidden="[[isFeatureEnabledAndConnected_]]">
        More controls will appear if the feature status is set to
        <span class="emphasize">ENABLED_AND_CONNECTED</span>.
      </div>
    </div>
    <template is="dom-if" if="[[canOnboardingFlowBeShown_]]" restamp>
      <div class="cr-row">
        <div class="cr-padded-text">
          Toggle on to show Onboarding flow.
        </div>
        <cr-toggle checked="{{shouldShowOnboardingFlow_}}">
        </cr-toggle>
      </div>
    </template>
    <template is="dom-if" if="[[isPhoneSetUp_]]" restamp>
      <div class="cr-row">
        <phone-name-form></phone-name-form>
      </div>
    </template>
    <template is="dom-if" if="[[isFeatureEnabledAndConnected_]]" restamp>
      <div class="cr-row">
        <quick-action-controller-form></quick-action-controller-form>
      </div>
      <div class="cr-row">
        <phone-status-model-form></phone-status-model-form>
      </div>
      <div class="cr-row">
        <browser-tabs-model-form></browser-tabs-model-form>
      </div>
      <div class="cr-row">
        <notification-manager></notification-manager>
      </div>
      <div class="cr-row">
        <camera-roll-manager-form></camera-roll-manager-form>
      </div>
    </template>
  </template>
</template>
<template is="dom-if" if="[[!isPhoneHubEnabled_]]" restamp>
  <div id="flagDisabledContainer">
    <p>Phone Hub flag is disabled.</p>
    <cr-button on-click="onPhoneHubFlagButtonClick_">
      Enable
    </cr-button>
  </div>
</template>