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

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

Issue 2106103006: MD Settings: cr/cros - Guest mode page visibility (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments Created 4 years, 5 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 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-ui' implements the UI for the Settings page. 7 * 'settings-ui' implements the UI for the Settings page.
8 * 8 *
9 * Example: 9 * Example:
10 * 10 *
(...skipping 20 matching lines...) Expand all
31 value: function() { 31 value: function() {
32 return !!(sessionStorage.appealClosed_ || localStorage.appealClosed_); 32 return !!(sessionStorage.appealClosed_ || localStorage.appealClosed_);
33 }, 33 },
34 }, 34 },
35 }, 35 },
36 36
37 listeners: { 37 listeners: {
38 'sideNav.iron-activate': 'onIronActivate_', 38 'sideNav.iron-activate': 'onIronActivate_',
39 }, 39 },
40 40
41 /** @override */
42 ready: function() {
43 this.$$('cr-toolbar').addEventListener('search-changed', function(e) {
44 this.$$('settings-main').searchContents(e.detail);
45 }.bind(this));
46
47 if (loadTimeData.getBoolean('isGuest')) {
48 this.pageVisibility_ = {
tommycli 2016/07/14 22:55:40 I noticed that the guest visibility info is in bot
Moe 2016/07/15 14:02:07 I don't expect guest-mode page visibility to chang
49 people: false,
50 onStartup: false,
51 reset: false,
52 <if expr="not chromeos">
53 appearance: false,
54 defaultBrowser: false,
55
56 hideAdvancedSettings: true,
57 hideToolbarSearchField: true,
58 </if>
59 <if expr="chromeos">
60 appearance: {
61 setWallpaper: false,
62 setTheme: false,
63 homeButton: false,
64 bookmarksBar: false,
65 pageZoom: false,
66 },
67 dateTime: {
68 timeZoneSelector: false,
69 },
70 privacy: {
71 networkPrediction: false,
72 },
73 passwordsAndForms: false,
74 downloads: {
75 googleDrive: false,
76 },
77 </if>
78 };
79 }
80 },
81
41 /** @private */ 82 /** @private */
42 onCloseAppealTap_: function() { 83 onCloseAppealTap_: function() {
43 sessionStorage.appealClosed_ = this.appealClosed_ = true; 84 sessionStorage.appealClosed_ = this.appealClosed_ = true;
44 }, 85 },
45 86
46 /** 87 /**
47 * @param {Event} event 88 * @param {Event} event
48 * @private 89 * @private
49 */ 90 */
50 onIronActivate_: function(event) { 91 onIronActivate_: function(event) {
51 if (event.detail.item.id != 'advancedPage') 92 if (event.detail.item.id != 'advancedPage')
52 this.$$('app-drawer').close(); 93 this.$$('app-drawer').close();
53 }, 94 },
54 95
55 /** @private */ 96 /** @private */
56 onMenuButtonTap_: function() { 97 onMenuButtonTap_: function() {
57 this.$$('app-drawer').toggle(); 98 this.$$('app-drawer').toggle();
58 }, 99 },
59 100
60 /** @override */
61 ready: function() {
62 this.$$('cr-toolbar').addEventListener('search-changed', function(e) {
63 this.$$('settings-main').searchContents(e.detail);
64 }.bind(this));
65 },
66
67 /** @private */ 101 /** @private */
68 directionDelegateChanged_: function() { 102 directionDelegateChanged_: function() {
69 this.$$('app-drawer').align = this.directionDelegate.isRtl() ? 103 this.$$('app-drawer').align = this.directionDelegate.isRtl() ?
70 'right' : 'left'; 104 'right' : 'left';
71 }, 105 },
72 }); 106 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698