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

Side by Side Diff: chrome/browser/resources/settings/settings_menu/settings_menu.js

Issue 2197943002: MD Settings: fix a couple errors (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « chrome/browser/resources/settings/settings_main/settings_main.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 6 * @fileoverview
7 * 'settings-menu' shows a menu with a hardcoded set of pages and subpages. 7 * 'settings-menu' shows a menu with a hardcoded set of pages and subpages.
8 */ 8 */
9 Polymer({ 9 Polymer({
10 is: 'settings-menu', 10 is: 'settings-menu',
11 11
12 properties: { 12 properties: {
13 /** @private */ 13 /** @private */
14 advancedOpened_: Boolean, 14 advancedOpened_: Boolean,
15 15
16 /** 16 /**
17 * The current active route. 17 * The current active route.
18 * @type {!settings.Route} 18 * @type {!settings.Route}
19 */ 19 */
20 currentRoute: { 20 currentRoute: {
21 type: Object, 21 type: Object,
22 notify: true, 22 notify: true,
23 observer: 'currentRouteChanged_',
24 }, 23 },
25 24
26 /** 25 /**
27 * Dictionary defining page visibility. 26 * Dictionary defining page visibility.
28 * @type {!GuestModePageVisibility} 27 * @type {!GuestModePageVisibility}
29 */ 28 */
30 pageVisibility: { 29 pageVisibility: {
31 type: Object, 30 type: Object,
32 }, 31 },
33 }, 32 },
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 79
81 /** 80 /**
82 * @param {boolean} opened Whether the menu is expanded. 81 * @param {boolean} opened Whether the menu is expanded.
83 * @return {string} Which icon to use. 82 * @return {string} Which icon to use.
84 * @private 83 * @private
85 * */ 84 * */
86 arrowState_: function(opened) { 85 arrowState_: function(opened) {
87 return opened ? 'settings:arrow-drop-up' : 'cr:arrow-drop-down'; 86 return opened ? 'settings:arrow-drop-up' : 'cr:arrow-drop-down';
88 }, 87 },
89 }); 88 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/settings/settings_main/settings_main.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698