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

Unified Diff: chrome/browser/resources/md_user_manager/control_bar.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 #6 Created 4 years, 9 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/control_bar.js
diff --git a/chrome/browser/resources/md_user_manager/control_bar.js b/chrome/browser/resources/md_user_manager/control_bar.js
new file mode 100644
index 0000000000000000000000000000000000000000..76197724ea9b31670286229f3007928da7edd230
--- /dev/null
+++ b/chrome/browser/resources/md_user_manager/control_bar.js
@@ -0,0 +1,60 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+/**
+ * @fileoverview 'control-bar' is the horizontal bar at the bottom of the user
+ * manager screen.
+ *
+ * @element control-bar
+ */
+ Polymer({
+ is: 'control-bar',
+
+ properties: {
+ /**
+ * True if 'Browse as Guest' button is displayed.
+ * @type {boolean}
+ */
+ showGuest: {
+ type: Boolean,
+ value: false
+ },
+
+ /**
+ * True if 'Add Person' button is displayed.
+ * @type {boolean}
+ */
+ showAddPerson: {
+ type: Boolean,
+ value: false
+ },
+
+ /** @private {!signin.ProfileBrowserProxy} */
+ browserProxy_: Object
+ },
+
+ /** @override */
+ created: function() {
+ this.browserProxy_ = signin.ProfileBrowserProxyImpl.getInstance();
+ },
+
+ /**
+ * Handler for 'Browse as Guest' button click event.
+ * @param {!Event} event
+ * @private
+ */
+ onLauchGuestTap_: function(event) {
+ this.browserProxy_.launchGuestUser();
+ },
+
+ /**
+ * Handler for 'Add Person' button click event.
+ * @param {!Event} event
+ * @private
+ */
+ onAddUserTap_: function(event) {
+ // Event is caught by user-manager-pages.
+ this.fire('change-page', {page: 'create-user-page'});
+ }
+});
« no previous file with comments | « chrome/browser/resources/md_user_manager/control_bar.html ('k') | chrome/browser/resources/md_user_manager/create_profile.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698