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

Side by Side Diff: chrome/browser/resources/options/content_settings_exceptions_area.js

Issue 1350713002: Enable editing of content settings type Notifications. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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 | « no previous file | chrome/browser/ui/webui/options/content_settings_handler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 cr.define('options.contentSettings', function() { 5 cr.define('options.contentSettings', function() {
6 /** @const */ var ControlledSettingIndicator = 6 /** @const */ var ControlledSettingIndicator =
7 options.ControlledSettingIndicator; 7 options.ControlledSettingIndicator;
8 /** @const */ var InlineEditableItemList = options.InlineEditableItemList; 8 /** @const */ var InlineEditableItemList = options.InlineEditableItemList;
9 /** @const */ var InlineEditableItem = options.InlineEditableItem; 9 /** @const */ var InlineEditableItem = options.InlineEditableItem;
10 /** @const */ var ArrayDataModel = cr.ui.ArrayDataModel; 10 /** @const */ var ArrayDataModel = cr.ui.ArrayDataModel;
11 11
12 /** 12 /**
13 * Returns whether exceptions list for the type is editable. 13 * Returns whether exceptions list for the type is editable.
14 * 14 *
15 * @param {string} contentType The type of the list. 15 * @param {string} contentType The type of the list.
16 */ 16 */
17 function IsEditableType(contentType) { 17 function IsEditableType(contentType) {
18 // Exceptions of the following lists are not editable for now. 18 // Exceptions of the following lists are not editable for now.
19 return !(contentType == 'notifications' || 19 return !(contentType == 'location' ||
20 contentType == 'location' ||
21 contentType == 'fullscreen' || 20 contentType == 'fullscreen' ||
22 contentType == 'media-stream-mic' || 21 contentType == 'media-stream-mic' ||
23 contentType == 'media-stream-camera' || 22 contentType == 'media-stream-camera' ||
24 contentType == 'midi-sysex' || 23 contentType == 'midi-sysex' ||
25 contentType == 'zoomlevels'); 24 contentType == 'zoomlevels');
26 } 25 }
27 26
28 /** 27 /**
29 * Creates a new exceptions list item. 28 * Creates a new exceptions list item.
30 * 29 *
(...skipping 624 matching lines...) Expand 10 before | Expand all | Expand 10 after
655 } 654 }
656 }; 655 };
657 656
658 return { 657 return {
659 ExceptionsListItem: ExceptionsListItem, 658 ExceptionsListItem: ExceptionsListItem,
660 ExceptionsAddRowListItem: ExceptionsAddRowListItem, 659 ExceptionsAddRowListItem: ExceptionsAddRowListItem,
661 ExceptionsList: ExceptionsList, 660 ExceptionsList: ExceptionsList,
662 ContentSettingsExceptionsArea: ContentSettingsExceptionsArea, 661 ContentSettingsExceptionsArea: ContentSettingsExceptionsArea,
663 }; 662 };
664 }); 663 });
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/webui/options/content_settings_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698