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 OptionsPage = options.OptionsPage; | 6 /** @const */ var OptionsPage = options.OptionsPage; |
7 /** @const */ var ArrayDataModel = cr.ui.ArrayDataModel; | 7 /** @const */ var ArrayDataModel = cr.ui.ArrayDataModel; |
8 | 8 |
9 /** | 9 /** |
10 * Encapsulated handling of search engine management page. | 10 * Encapsulated handling of search engine management page. |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
111 keywords); | 111 keywords); |
112 }; | 112 }; |
113 | 113 |
114 SearchEngineManager.validityCheckCallback = function(validity, modelIndex) { | 114 SearchEngineManager.validityCheckCallback = function(validity, modelIndex) { |
115 // Forward to both lists; the one without a matching modelIndex will ignore | 115 // Forward to both lists; the one without a matching modelIndex will ignore |
116 // it. | 116 // it. |
117 SearchEngineManager.getInstance().defaultsList_.validationComplete( | 117 SearchEngineManager.getInstance().defaultsList_.validationComplete( |
118 validity, modelIndex); | 118 validity, modelIndex); |
119 SearchEngineManager.getInstance().othersList_.validationComplete( | 119 SearchEngineManager.getInstance().othersList_.validationComplete( |
120 validity, modelIndex); | 120 validity, modelIndex); |
121 SearchEngineManager.getInstance().extensionList_.validationComplete( | |
Dan Beam
2013/05/30 22:13:57
uh... why are we call through to private propertie
Aaron Jacobs
2013/05/31 03:07:24
Done.
| |
122 validity, modelIndex); | |
121 }; | 123 }; |
122 | 124 |
123 // Export | 125 // Export |
124 return { | 126 return { |
125 SearchEngineManager: SearchEngineManager | 127 SearchEngineManager: SearchEngineManager |
126 }; | 128 }; |
127 | 129 |
128 }); | 130 }); |
129 | 131 |
OLD | NEW |