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

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

Issue 6093001: Some RTL fixes for tabbed options. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: swap around id Created 10 years 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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', function() { 5 cr.define('options', function() {
6 6
7 var OptionsPage = options.OptionsPage; 7 var OptionsPage = options.OptionsPage;
8 8
9 ////////////////////////////////////////////////////////////////////////////// 9 //////////////////////////////////////////////////////////////////////////////
10 // ContentSettings class: 10 // ContentSettings class:
11 11
12 /** 12 /**
13 * Encapsulated handling of content settings page. 13 * Encapsulated handling of content settings page.
14 * @constructor 14 * @constructor
15 */ 15 */
16 function ContentSettings() { 16 function ContentSettings() {
17 this.activeNavTab = null; 17 this.activeNavTab = null;
18 OptionsPage.call(this, 'content', templateData.contentSettingsPage, 18 OptionsPage.call(this, 'content', templateData.contentSettingsPage,
19 'contentSettingsPage'); 19 'content-settings-page');
20 } 20 }
21 21
22 cr.addSingletonGetter(ContentSettings); 22 cr.addSingletonGetter(ContentSettings);
23 23
24 ContentSettings.prototype = { 24 ContentSettings.prototype = {
25 __proto__: OptionsPage.prototype, 25 __proto__: OptionsPage.prototype,
26 26
27 initializePage: function() { 27 initializePage: function() {
28 OptionsPage.prototype.initializePage.call(this); 28 OptionsPage.prototype.initializePage.call(this);
29 29
30 chrome.send('getContentFilterSettings'); 30 chrome.send('getContentFilterSettings');
31 31
32 var exceptionsButtons = 32 var exceptionsButtons =
33 this.pageDiv.querySelectorAll('.exceptionsListButton'); 33 this.pageDiv.querySelectorAll('.exceptions-list-button');
34 for (var i = 0; i < exceptionsButtons.length; i++) { 34 for (var i = 0; i < exceptionsButtons.length; i++) {
35 exceptionsButtons[i].onclick = function(event) { 35 exceptionsButtons[i].onclick = function(event) {
36 ContentSettingsExceptionsArea.getInstance().showList( 36 ContentSettingsExceptionsArea.getInstance().showList(
37 event.target.getAttribute('contentType')); 37 event.target.getAttribute('contentType'));
38 OptionsPage.showPageByName('contentExceptions'); 38 OptionsPage.showPageByName('contentExceptions');
39 }; 39 };
40 } 40 }
41 41
42 // Cookies filter page --------------------------------------------------- 42 // Cookies filter page ---------------------------------------------------
43 $('block-third-party-cookies').onclick = function(event) { 43 $('block-third-party-cookies').onclick = function(event) {
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 'list[mode=' + mode + ']'); 143 'list[mode=' + mode + ']');
144 exceptionsList.patternValidityCheckComplete(pattern, valid); 144 exceptionsList.patternValidityCheckComplete(pattern, valid);
145 }; 145 };
146 146
147 // Export 147 // Export
148 return { 148 return {
149 ContentSettings: ContentSettings 149 ContentSettings: ContentSettings
150 }; 150 };
151 151
152 }); 152 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698