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

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

Issue 1630903002: material design user manager with create profile flow (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed the comments Created 4 years, 11 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..8ebade2b155bd1a2d7dbd418a380417a6d3eabee
--- /dev/null
+++ b/chrome/browser/resources/md_user_manager/control_bar.js
@@ -0,0 +1,36 @@
+/* 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.
+ */
+
+Polymer({
tommycli 2016/02/03 01:13:21 It would be good to add a @fileoverview describing
Moe 2016/02/05 17:58:39 Done. Also added to other JS files.
+ is: 'control-bar',
+
+ properties: {
+
+ /*
+ * If true then |Browse as Guest| button is displayed.
tommycli 2016/02/03 01:13:21 nit: formatting. The stars are aligned and the top
Moe 2016/02/05 17:58:39 Done. Also fixed in other JS files.
+ */
+ showGuest: {
+ type: Boolean,
+ value: false
+ },
+
+ /*
+ * If true then |Add Person| button is displayed.
+ */
+ showAddPerson: {
+ type: Boolean,
+ value: false
+ }
+ },
+
+ handleGuestClick_: function(e) {
+ chrome.send('launchGuest');
+ },
+
+ handleAddUserClick_: function(e) {
+ // Event is caught by user-manager-pages.
+ this.fire('change-page', {page: 'create-user-page'});
+ }
+});

Powered by Google App Engine
This is Rietveld 408576698