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

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

Issue 2708013003: [MD settings] show icon when content settings are controlled by an extension (Closed)
Patch Set: unit test fix Created 3 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 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 // Lazy-create the drawer the first time it is opened or swiped into view. 83 // Lazy-create the drawer the first time it is opened or swiped into view.
84 listenOnce(this.$.drawer, 'open-changed', function() { 84 listenOnce(this.$.drawer, 'open-changed', function() {
85 this.$.drawerTemplate.if = true; 85 this.$.drawerTemplate.if = true;
86 }.bind(this)); 86 }.bind(this));
87 87
88 window.addEventListener('popstate', function(e) { 88 window.addEventListener('popstate', function(e) {
89 this.$.drawer.closeDrawer(); 89 this.$.drawer.closeDrawer();
90 }.bind(this)); 90 }.bind(this));
91 91
92 CrPolicyStrings = { 92 CrPolicyStrings = {
93 controlledSettingExtension:
94 loadTimeData.getString('controlledSettingExtension'),
93 controlledSettingPolicy: 95 controlledSettingPolicy:
94 loadTimeData.getString('controlledSettingPolicy'), 96 loadTimeData.getString('controlledSettingPolicy'),
95 controlledSettingRecommendedMatches: 97 controlledSettingRecommendedMatches:
96 loadTimeData.getString('controlledSettingRecommendedMatches'), 98 loadTimeData.getString('controlledSettingRecommendedMatches'),
97 controlledSettingRecommendedDiffers: 99 controlledSettingRecommendedDiffers:
98 loadTimeData.getString('controlledSettingRecommendedDiffers'), 100 loadTimeData.getString('controlledSettingRecommendedDiffers'),
99 // <if expr="chromeos"> 101 // <if expr="chromeos">
100 controlledSettingShared: 102 controlledSettingShared:
101 loadTimeData.getString('controlledSettingShared'), 103 loadTimeData.getString('controlledSettingShared'),
102 controlledSettingOwner: loadTimeData.getString('controlledSettingOwner'), 104 controlledSettingOwner: loadTimeData.getString('controlledSettingOwner'),
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 onMenuButtonTap_: function() { 237 onMenuButtonTap_: function() {
236 this.$.drawer.toggle(); 238 this.$.drawer.toggle();
237 }, 239 },
238 240
239 /** @private */ 241 /** @private */
240 directionDelegateChanged_: function() { 242 directionDelegateChanged_: function() {
241 this.$.drawer.align = this.directionDelegate.isRtl() ? 243 this.$.drawer.align = this.directionDelegate.isRtl() ?
242 'right' : 'left'; 244 'right' : 'left';
243 }, 245 },
244 }); 246 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698