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

Side by Side Diff: chrome/browser/resources/md_user_manager/supervised_user_create_confirm.js

Issue 1901853002: Import supervised user dialog (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@md-user-manager-confirmation-page
Patch Set: Addressed comments Created 4 years, 8 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 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** 5 /**
6 * @fileoverview 'supervised-user-create-confirm' is a page that is displayed 6 * @fileoverview 'supervised-user-create-confirm' is a page that is displayed
7 * upon successful creation of a supervised user. It contains information for 7 * upon successful creation of a supervised user. It contains information for
8 * the custodian on where to configure browsing restrictions as well as how to 8 * the custodian on where to configure browsing restrictions as well as how to
9 * exit and childlock their profile. 9 * exit and childlock their profile.
10 */ 10 */
(...skipping 29 matching lines...) Expand all
40 'tap': 'onTap_' 40 'tap': 'onTap_'
41 }, 41 },
42 42
43 /** @override */ 43 /** @override */
44 created: function() { 44 created: function() {
45 this.browserProxy_ = signin.ProfileBrowserProxyImpl.getInstance(); 45 this.browserProxy_ = signin.ProfileBrowserProxyImpl.getInstance();
46 }, 46 },
47 47
48 /** 48 /**
49 * Handles tap events from dynamically created links in the 49 * Handles tap events from dynamically created links in the
50 * supervisedUserCreatedTextPart1 and supervisedUserCreatedTextPart2 strings. 50 * supervisedUserCreatedTextPart1 and supervisedUserCreatedTextPart2 i18n
51 * strings.
51 * @param {!Event} event 52 * @param {!Event} event
52 * @private 53 * @private
53 */ 54 */
54 onTap_: function(event) { 55 onTap_: function(event) {
55 var element = Polymer.dom(event).rootTarget; 56 var element = Polymer.dom(event).rootTarget;
56 57
57 // Handle the tap event only if the target is a '<a>' element. 58 // Handle the tap event only if the target is a '<a>' element.
58 if (element.nodeName == 'A') { 59 if (element.nodeName == 'A') {
59 this.browserProxy_.openUrlInLastActiveProfileBrowser(element.href); 60 this.browserProxy_.openUrlInLastActiveProfileBrowser(element.href);
60 event.preventDefault(); 61 event.preventDefault();
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 * @param {!Event} event 161 * @param {!Event} event
161 * @private 162 * @private
162 */ 163 */
163 onSwitchUserTap_: function(event) { 164 onSwitchUserTap_: function(event) {
164 this.browserProxy_.switchToProfile(this.profileInfo.filePath); 165 this.browserProxy_.switchToProfile(this.profileInfo.filePath);
165 // Event is caught by user-manager-pages. 166 // Event is caught by user-manager-pages.
166 this.fire('change-page', {page: 'user-pods-page'}); 167 this.fire('change-page', {page: 'user-pods-page'});
167 } 168 }
168 }); 169 });
169 })(); 170 })();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698