| OLD | NEW |
| (Empty) | |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 /** |
| 6 * AddStartupPageOverlay class |
| 7 * Encapsulated handling of the 'Add Page' overlay page. |
| 8 * @class |
| 9 */ |
| 10 function AddStartupPageOverlay() { |
| 11 OptionsPage.call(this, 'addStartupPageOverlay', |
| 12 templateData.addStartupPageTitle, |
| 13 'addStartupPageOverlay'); |
| 14 } |
| 15 |
| 16 cr.addSingletonGetter(AddStartupPageOverlay); |
| 17 |
| 18 AddStartupPageOverlay.prototype = { |
| 19 __proto__: OptionsPage.prototype, |
| 20 |
| 21 /** |
| 22 * Initializes the page. |
| 23 */ |
| 24 initializePage: function() { |
| 25 OptionsPage.prototype.initializePage.call(this); |
| 26 |
| 27 $('addStartupPageCancelButton').onclick = function(e) { |
| 28 OptionsPage.clearOverlays(); |
| 29 }; |
| 30 } |
| 31 }; |
| OLD | NEW |