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

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

Issue 517413002: Compile chrome://settings, part 1: remove all warnings (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@true_master
Patch Set: s/event/Event/ Created 6 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
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', function() { 5 cr.define('options', function() {
6 /** @const */ var Page = cr.ui.pageManager.Page; 6 /** @const */ var Page = cr.ui.pageManager.Page;
7 /** @const */ var PageManager = cr.ui.pageManager.PageManager; 7 /** @const */ var PageManager = cr.ui.pageManager.PageManager;
8 8
9 ///////////////////////////////////////////////////////////////////////////// 9 /////////////////////////////////////////////////////////////////////////////
10 // HandlerOptions class: 10 // HandlerOptions class:
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 this.handlersList_.autoExpands = true; 53 this.handlersList_.autoExpands = true;
54 54
55 this.ignoredHandlersList_ = $('ignored-handlers-list'); 55 this.ignoredHandlersList_ = $('ignored-handlers-list');
56 options.IgnoredHandlersList.decorate(this.ignoredHandlersList_); 56 options.IgnoredHandlersList.decorate(this.ignoredHandlersList_);
57 this.ignoredHandlersList_.autoExpands = true; 57 this.ignoredHandlersList_.autoExpands = true;
58 }, 58 },
59 }; 59 };
60 60
61 /** 61 /**
62 * Sets the list of handlers shown by the view. 62 * Sets the list of handlers shown by the view.
63 * @param {Array} Handlers to be shown in the view. 63 * @param {Array} handlers Handlers to be shown in the view.
64 */ 64 */
65 HandlerOptions.setHandlers = function(handlers) { 65 HandlerOptions.setHandlers = function(handlers) {
66 $('handlers-list').setHandlers(handlers); 66 $('handlers-list').setHandlers(handlers);
67 }; 67 };
68 68
69 /** 69 /**
70 * Sets the list of ignored handlers shown by the view. 70 * Sets the list of ignored handlers shown by the view.
71 * @param {Array} Handlers to be shown in the view. 71 * @param {Array} handlers Handlers to be shown in the view.
72 */ 72 */
73 HandlerOptions.setIgnoredHandlers = function(handlers) { 73 HandlerOptions.setIgnoredHandlers = function(handlers) {
74 $('ignored-handlers-section').hidden = handlers.length == 0; 74 $('ignored-handlers-section').hidden = handlers.length == 0;
75 $('ignored-handlers-list').setHandlers(handlers); 75 $('ignored-handlers-list').setHandlers(handlers);
76 }; 76 };
77 77
78 return { 78 return {
79 HandlerOptions: HandlerOptions 79 HandlerOptions: HandlerOptions
80 }; 80 };
81 }); 81 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/options/controlled_setting.js ('k') | chrome/browser/resources/options/home_page_overlay.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698