| 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 | 6 |
| 7 var OptionsPage = options.OptionsPage; | 7 var OptionsPage = options.OptionsPage; |
| 8 | 8 |
| 9 ///////////////////////////////////////////////////////////////////////////// | 9 ///////////////////////////////////////////////////////////////////////////// |
| 10 // CookiesView class: | 10 // CookiesView class: |
| 11 | 11 |
| 12 /** | 12 /** |
| 13 * Encapsulated handling of the cookies and other site data page. | 13 * Encapsulated handling of the cookies and other site data page. |
| 14 * @constructor | 14 * @constructor |
| 15 */ | 15 */ |
| 16 function CookiesView(model) { | 16 function CookiesView(model) { |
| 17 OptionsPage.call(this, 'cookies', | 17 OptionsPage.call(this, 'cookies', |
| 18 templateData.cookiesViewPageTabTitle, | 18 loadTimeData.getString('cookiesViewPageTabTitle'), |
| 19 'cookies-view-page'); | 19 'cookies-view-page'); |
| 20 } | 20 } |
| 21 | 21 |
| 22 cr.addSingletonGetter(CookiesView); | 22 cr.addSingletonGetter(CookiesView); |
| 23 | 23 |
| 24 CookiesView.prototype = { | 24 CookiesView.prototype = { |
| 25 __proto__: OptionsPage.prototype, | 25 __proto__: OptionsPage.prototype, |
| 26 | 26 |
| 27 /** | 27 /** |
| 28 * The timer id of the timer set on search query change events. | 28 * The timer id of the timer set on search query change events. |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 CookiesView.loadChildren = function(args) { | 124 CookiesView.loadChildren = function(args) { |
| 125 $('cookies-list').loadChildren(args[0], args[1]); | 125 $('cookies-list').loadChildren(args[0], args[1]); |
| 126 }; | 126 }; |
| 127 | 127 |
| 128 // Export | 128 // Export |
| 129 return { | 129 return { |
| 130 CookiesView: CookiesView | 130 CookiesView: CookiesView |
| 131 }; | 131 }; |
| 132 | 132 |
| 133 }); | 133 }); |
| OLD | NEW |