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

Unified Diff: chrome/browser/resources/md_user_manager/user_manager_pages.js

Issue 1722843002: MD user manager (html/js/css for create profile flow) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments #2 Created 4 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/md_user_manager/user_manager_pages.js
diff --git a/chrome/browser/resources/settings/site_settings/all_sites.js b/chrome/browser/resources/md_user_manager/user_manager_pages.js
similarity index 30%
copy from chrome/browser/resources/settings/site_settings/all_sites.js
copy to chrome/browser/resources/md_user_manager/user_manager_pages.js
index 9d3513c7dc01c7778c626fe23a431414fa459165..1c815fc7eb907fc858d4bd461901284cc35ebff2 100644
--- a/chrome/browser/resources/settings/site_settings/all_sites.js
+++ b/chrome/browser/resources/md_user_manager/user_manager_pages.js
@@ -3,41 +3,29 @@
// found in the LICENSE file.
/**
- * @fileoverview
- * 'all-sites' is the polymer element for showing the list of all sites under
- * Site Settings.
+ * @fileoverview 'user-manager-pages' is the element that controls paging in the
+ * user manager screen.
*
- * @group Chrome Settings Elements
- * @element all-sites
+ * @element user-manager-pages
*/
Polymer({
- is: 'all-sites',
-
- behaviors: [SiteSettingsBehavior],
+ is: 'user-manager-pages',
properties: {
/**
- * Preferences state.
- */
- prefs: {
- type: Object,
- notify: true,
- },
-
- /**
- * The current active route.
+ * ID of the currently selected page.
+ * @private {boolean}
*/
- currentRoute: {
- type: Object,
- notify: true,
- },
-
- /**
- * The origin that was selected by the user in the dropdown list.
- */
- selectedOrigin: {
+ selectedPage_: {
type: String,
- notify: true,
- },
+ value: 'user-pods-page'
+ }
},
+
+ /** @override */
+ attached: function() {
+ this.addEventListener('change-page', function(e) {
+ this.selectedPage_ = e.detail.page;
+ }.bind(this));
+ }
});

Powered by Google App Engine
This is Rietveld 408576698