OLD | NEW |
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 Loading... |
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 }); |
OLD | NEW |