Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(38)

Side by Side Diff: chrome/browser/resources/settings/people_page/people_page.html

Issue 2210583002: MD Settings: Associate suppages with the controls that trigger them. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Resolve conflicts with ToT Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <link rel="import" href="chrome://resources/cr_elements/icons.html"> 1 <link rel="import" href="chrome://resources/cr_elements/icons.html">
2 <link rel="import" href="chrome://resources/html/polymer.html"> 2 <link rel="import" href="chrome://resources/html/polymer.html">
3 <link rel="import" href="chrome://resources/html/web_ui_listener_behavior.html"> 3 <link rel="import" href="chrome://resources/html/web_ui_listener_behavior.html">
4 <link rel="import" href="chrome://resources/polymer/v1_0/neon-animation/neon-ani matable.html"> 4 <link rel="import" href="chrome://resources/polymer/v1_0/neon-animation/neon-ani matable.html">
5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt on.html"> 5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt on.html">
6 <link rel="import" href="chrome://resources/polymer/v1_0/paper-checkbox/paper-ch eckbox.html"> 6 <link rel="import" href="chrome://resources/polymer/v1_0/paper-checkbox/paper-ch eckbox.html">
7 <link rel="import" href="chrome://resources/cr_elements/cr_dialog/cr_dialog.html "> 7 <link rel="import" href="chrome://resources/cr_elements/cr_dialog/cr_dialog.html ">
8 <link rel="import" href="/controls/settings_checkbox.html"> 8 <link rel="import" href="/controls/settings_checkbox.html">
9 <link rel="import" href="/people_page/sync_page.html"> 9 <link rel="import" href="/people_page/sync_page.html">
10 <link rel="import" href="/people_page/profile_info_browser_proxy.html"> 10 <link rel="import" href="/people_page/profile_info_browser_proxy.html">
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 width: var(--iron-icon-width); 68 width: var(--iron-icon-width);
69 } 69 }
70 70
71 paper-checkbox { 71 paper-checkbox {
72 margin: 16px 0 2px; 72 margin: 16px 0 2px;
73 } 73 }
74 </style> 74 </style>
75 <settings-animated-pages id="pages" current-route="{{currentRoute}}" 75 <settings-animated-pages id="pages" current-route="{{currentRoute}}"
76 section="people"> 76 section="people">
77 <neon-animatable id="main"> 77 <neon-animatable id="main">
78 <div class="settings-box first two-line"> 78 <div id="picture-subpage-trigger" class="settings-box first two-line">
79 <img id="profile-icon" src="[[profileIconUrl_]]" 79 <img id="profile-icon" src="[[profileIconUrl_]]"
80 on-tap="onPictureTap_" actionable> 80 on-tap="onPictureTap_" actionable>
81 <div class="middle"> 81 <div class="middle">
82 <if expr="not chromeos"> 82 <if expr="not chromeos">
83 <span id="profile-name" on-tap="onProfileNameTap_" actionable> 83 <span id="profile-name" on-tap="onProfileNameTap_" actionable>
84 [[profileName_]] 84 [[profileName_]]
85 </span> 85 </span>
86 </if> 86 </if>
87 <if expr="chromeos"> 87 <if expr="chromeos">
88 <span id="profile-name"> 88 <span id="profile-name">
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 <if expr="chromeos"> 163 <if expr="chromeos">
164 <div class="settings-box single-column"> 164 <div class="settings-box single-column">
165 <settings-checkbox pref="{{prefs.settings.enable_screen_lock}}" 165 <settings-checkbox pref="{{prefs.settings.enable_screen_lock}}"
166 label="$i18n{enableScreenlock}"> 166 label="$i18n{enableScreenlock}">
167 </settings-checkbox> 167 </settings-checkbox>
168 </div> 168 </div>
169 169
170 <!-- TODO(jdufault): Disable navigating to /quickUnlock/* if pin is 170 <!-- TODO(jdufault): Disable navigating to /quickUnlock/* if pin is
171 disabled. --> 171 disabled. -->
172 <template is="dom-if" if=[[quickUnlockEnabled_]]> 172 <template is="dom-if" if=[[quickUnlockEnabled_]]>
173 <div class="settings-box"> 173 <div id="quick-unlock-subpage-trigger" class="settings-box">
174 <paper-button on-tap="onQuickUnlockTap_" class="primary-button"> 174 <paper-button on-tap="onQuickUnlockTap_" class="primary-button">
175 $i18n{quickUnlockTitle} 175 $i18n{quickUnlockTitle}
176 </paper-button> 176 </paper-button>
177 </div> 177 </div>
178 </template> 178 </template>
179 179
180 <template is="dom-if" if="[[easyUnlockAllowed_]]"> 180 <template is="dom-if" if="[[easyUnlockAllowed_]]">
181 <div class="settings-box"> 181 <div class="settings-box">
182 <div class="middle"> 182 <div class="middle">
183 <div>$i18n{easyUnlockSectionTitle}</div> 183 <div>$i18n{easyUnlockSectionTitle}</div>
(...skipping 29 matching lines...) Expand all
213 <paper-button id="easyUnlockTurnOff" class="secondary-button" 213 <paper-button id="easyUnlockTurnOff" class="secondary-button"
214 on-tap="onEasyUnlockTurnOffTap_"> 214 on-tap="onEasyUnlockTurnOffTap_">
215 $i18n{easyUnlockTurnOffButton} 215 $i18n{easyUnlockTurnOffButton}
216 </paper-button> 216 </paper-button>
217 </template> 217 </template>
218 </div> 218 </div>
219 </div> 219 </div>
220 </template> 220 </template>
221 </if> 221 </if>
222 222
223 <div class="settings-box"> 223 <div id="manage-other-people-subpage-trigger" class="settings-box">
224 <paper-button class="primary-button" on-tap="onManageOtherPeople_"> 224 <paper-button class="primary-button" on-tap="onManageOtherPeople_">
225 $i18n{manageOtherPeople} 225 $i18n{manageOtherPeople}
226 </paper-button> 226 </paper-button>
227 </div> 227 </div>
228 228
229 <template is="dom-if" if=[[profileManagesSupervisedUsers_]]> 229 <template is="dom-if" if=[[profileManagesSupervisedUsers_]]>
230 <div id="manageSupervisedUsersContainer" class="settings-box"> 230 <div id="manageSupervisedUsersContainer" class="settings-box">
231 <paper-button class="primary-button" 231 <paper-button class="primary-button"
232 on-tap="onManageSupervisedUsers_"> 232 on-tap="onManageSupervisedUsers_">
233 $i18n{manageSupervisedUsers} 233 $i18n{manageSupervisedUsers}
234 </paper-button> 234 </paper-button>
235 </div> 235 </div>
236 </template> 236 </template>
237 </neon-animatable> 237 </neon-animatable>
238 <template is="dom-if" name="sync"> 238 <template is="dom-if" name="sync">
239 <settings-subpage page-title="$i18n{syncPageTitle}"> 239 <settings-subpage
240 associated-control="[[$$('#customize-sync')]]"
241 page-title="$i18n{syncPageTitle}">
240 <settings-sync-page current-route="[[currentRoute]]"> 242 <settings-sync-page current-route="[[currentRoute]]">
241 </settings-sync-page> 243 </settings-sync-page>
242 </settings-subpage> 244 </settings-subpage>
243 </template> 245 </template>
244 <if expr="chromeos"> 246 <if expr="chromeos">
245 <template is="dom-if" name="quick-unlock-authenticate"> 247 <template is="dom-if" name="quick-unlock-authenticate">
246 <settings-subpage page-title="$i18n{quickUnlockTitle}"> 248 <settings-subpage
249 associated-control="[[$$('#quick-unlock-subpage-trigger')]]"
250 page-title="$i18n{quickUnlockTitle}">
247 <settings-quick-unlock-authenticate 251 <settings-quick-unlock-authenticate
248 set-modes="{{quickUnlockSetModes}}" 252 set-modes="{{quickUnlockSetModes}}"
249 current-route="{{currentRoute}}" 253 current-route="{{currentRoute}}"
250 profile-name="[[profileName_]]"> 254 profile-name="[[profileName_]]">
251 </settings-quick-unlock-authenticate> 255 </settings-quick-unlock-authenticate>
252 </settings-subpage> 256 </settings-subpage>
253 </template> 257 </template>
254 <template is="dom-if" name="quick-unlock-choose-method"> 258 <template is="dom-if" name="quick-unlock-choose-method">
255 <settings-subpage page-title="$i18n{quickUnlockTitle}"> 259 <settings-subpage no-associated-control
260 page-title="$i18n{quickUnlockTitle}">
256 <settings-quick-unlock-choose-method 261 <settings-quick-unlock-choose-method
257 set-modes="[[quickUnlockSetModes]]" 262 set-modes="[[quickUnlockSetModes]]"
258 current-route="{{currentRoute}}" 263 current-route="{{currentRoute}}"
259 prefs="{{prefs}}"> 264 prefs="{{prefs}}">
260 </settings-quick-unlock-choose-method> 265 </settings-quick-unlock-choose-method>
261 </settings-subpage> 266 </settings-subpage>
262 </template> 267 </template>
263 <template is="dom-if" name="quick-unlock-setup-pin"> 268 <template is="dom-if" name="quick-unlock-setup-pin">
264 <settings-subpage page-title="$i18n{quickUnlockTitle}"> 269 <settings-subpage no-associated-control
270 page-title="$i18n{quickUnlockTitle}">
265 <settings-quick-unlock-setup-pin 271 <settings-quick-unlock-setup-pin
266 set-modes="[[quickUnlockSetModes]]" 272 set-modes="[[quickUnlockSetModes]]"
267 current-route="{{currentRoute}}"> 273 current-route="{{currentRoute}}">
268 </settings-quick-unlock-setup-pin> 274 </settings-quick-unlock-setup-pin>
269 </settings-subpage> 275 </settings-subpage>
270 </template> 276 </template>
271 <template is="dom-if" name="users"> 277 <template is="dom-if" name="users">
272 <settings-subpage page-title="$i18n{usersPageTitle}"> 278 <settings-subpage
279 associated-control="[[$$('#manage-other-people-subpage-trigger')]]"
280 page-title="$i18n{usersPageTitle}">
273 <settings-users-page prefs="{{prefs}}"></settings-users-page> 281 <settings-users-page prefs="{{prefs}}"></settings-users-page>
274 </settings-subpage> 282 </settings-subpage>
275 </template> 283 </template>
276 <template is="dom-if" name="changePicture"> 284 <template is="dom-if" name="changePicture">
277 <settings-subpage page-title="$i18n{changePictureTitle}"> 285 <settings-subpage
286 associated-control="[[$$('#picture-subpage-trigger')]]"
287 page-title="$i18n{changePictureTitle}">
278 <settings-change-picture></settings-change-picture> 288 <settings-change-picture></settings-change-picture>
279 </settings-subpage> 289 </settings-subpage>
280 </template> 290 </template>
281 </if> 291 </if>
282 <if expr="not chromeos"> 292 <if expr="not chromeos">
283 <template is="dom-if" name="manageProfile"> 293 <template is="dom-if" name="manageProfile">
284 <settings-subpage page-title="$i18n{editPerson}"> 294 <settings-subpage
295 associated-control="[[$$('#picture-subpage-trigger')]]"
296 page-title="$i18n{editPerson}">
285 <settings-manage-profile profile-icon-url="[[profileIconUrl_]]" 297 <settings-manage-profile profile-icon-url="[[profileIconUrl_]]"
286 profile-name="[[profileName_]]"> 298 profile-name="[[profileName_]]">
287 </settings-manage-profile> 299 </settings-manage-profile>
288 </settings-subpage> 300 </settings-subpage>
289 </template> 301 </template>
290 </if> 302 </if>
291 </settings-animated-pages> 303 </settings-animated-pages>
292 304
293 <dialog is="cr-dialog" id="disconnectDialog"> 305 <dialog is="cr-dialog" id="disconnectDialog">
294 <div class="title">$i18n{syncDisconnectTitle}</div> 306 <div class="title">$i18n{syncDisconnectTitle}</div>
(...skipping 23 matching lines...) Expand all
318 330
319 <if expr="chromeos"> 331 <if expr="chromeos">
320 <template is="dom-if" if="[[easyUnlockEnabled_]]"> 332 <template is="dom-if" if="[[easyUnlockEnabled_]]">
321 <easy-unlock-turn-off-dialog id="easyUnlockTurnOffDialog"> 333 <easy-unlock-turn-off-dialog id="easyUnlockTurnOffDialog">
322 </easy-unlock-turn-off-dialog> 334 </easy-unlock-turn-off-dialog>
323 </template> 335 </template>
324 </if> 336 </if>
325 </template> 337 </template>
326 <script src="people_page.js"></script> 338 <script src="people_page.js"></script>
327 </dom-module> 339 </dom-module>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698