OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 var OptionsPage = options.OptionsPage; | 6 var OptionsPage = options.OptionsPage; |
7 | 7 |
8 /** | 8 /** |
9 * ClearBrowserDataOverlay class | 9 * ClearBrowserDataOverlay class |
10 * Encapsulated handling of the 'Clear Browser Data' overlay page. | 10 * Encapsulated handling of the 'Clear Browser Data' overlay page. |
11 * @class | 11 * @class |
12 */ | 12 */ |
13 function ClearBrowserDataOverlay() { | 13 function ClearBrowserDataOverlay() { |
14 OptionsPage.call(this, 'clearBrowserData', | 14 OptionsPage.call(this, 'clearBrowserDataOverlay', |
15 templateData.clearBrowserDataOverlayTabTitle, | 15 templateData.clearBrowserDataOverlayTabTitle, |
16 'clearBrowserDataOverlay'); | 16 'clearBrowserDataOverlay'); |
17 } | 17 } |
18 | 18 |
19 cr.addSingletonGetter(ClearBrowserDataOverlay); | 19 cr.addSingletonGetter(ClearBrowserDataOverlay); |
20 | 20 |
21 ClearBrowserDataOverlay.prototype = { | 21 ClearBrowserDataOverlay.prototype = { |
22 // Inherit ClearBrowserDataOverlay from OptionsPage. | 22 // Inherit ClearBrowserDataOverlay from OptionsPage. |
23 __proto__: OptionsPage.prototype, | 23 __proto__: OptionsPage.prototype, |
24 | 24 |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 ClearBrowserDataOverlay.dismiss = function() { | 105 ClearBrowserDataOverlay.dismiss = function() { |
106 OptionsPage.closeOverlay(); | 106 OptionsPage.closeOverlay(); |
107 this.setClearingState(false); | 107 this.setClearingState(false); |
108 }; | 108 }; |
109 | 109 |
110 // Export | 110 // Export |
111 return { | 111 return { |
112 ClearBrowserDataOverlay: ClearBrowserDataOverlay | 112 ClearBrowserDataOverlay: ClearBrowserDataOverlay |
113 }; | 113 }; |
114 }); | 114 }); |
OLD | NEW |