| 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 Page = cr.ui.pageManager.Page; | 7 var Page = cr.ui.pageManager.Page; |
| 8 var PageManager = cr.ui.pageManager.PageManager; | 8 var PageManager = cr.ui.pageManager.PageManager; |
| 9 | 9 |
| 10 ///////////////////////////////////////////////////////////////////////////// | 10 ///////////////////////////////////////////////////////////////////////////// |
| 11 // CookiesView class: | 11 // CookiesView class: |
| 12 | 12 |
| 13 /** | 13 /** |
| 14 * Encapsulated handling of the cookies and other site data page. | 14 * Encapsulated handling of the cookies and other site data page. |
| 15 * @constructor | 15 * @constructor |
| 16 * @extends {cr.ui.pageManager.Page} |
| 16 */ | 17 */ |
| 17 function CookiesView(model) { | 18 function CookiesView(model) { |
| 18 Page.call(this, 'cookies', | 19 Page.call(this, 'cookies', |
| 19 loadTimeData.getString('cookiesViewPageTabTitle'), | 20 loadTimeData.getString('cookiesViewPageTabTitle'), |
| 20 'cookies-view-page'); | 21 'cookies-view-page'); |
| 21 } | 22 } |
| 22 | 23 |
| 23 cr.addSingletonGetter(CookiesView); | 24 cr.addSingletonGetter(CookiesView); |
| 24 | 25 |
| 25 CookiesView.prototype = { | 26 CookiesView.prototype = { |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 CookiesView.loadChildren = function(args) { | 138 CookiesView.loadChildren = function(args) { |
| 138 $('cookies-list').loadChildren(args[0], args[1]); | 139 $('cookies-list').loadChildren(args[0], args[1]); |
| 139 }; | 140 }; |
| 140 | 141 |
| 141 // Export | 142 // Export |
| 142 return { | 143 return { |
| 143 CookiesView: CookiesView | 144 CookiesView: CookiesView |
| 144 }; | 145 }; |
| 145 | 146 |
| 146 }); | 147 }); |
| OLD | NEW |