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 // TODO(sail): Refactor options_page and remove this include. | 5 // TODO(sail): Refactor options_page and remove this include. |
6 <include src="options/options_page.js"/> | 6 <include src="../options/options_page.js"/> |
7 <include src="sync_setup_overlay.js"/> | 7 <include src="../sync_setup_overlay.js"/> |
8 | 8 |
9 cr.define('sync_promo', function() { | 9 cr.define('sync_promo', function() { |
10 /** | 10 /** |
11 * SyncPromo class | 11 * SyncPromo class |
12 * Subclass of options.SyncSetupOverlay that customizes the sync setup | 12 * Subclass of options.SyncSetupOverlay that customizes the sync setup |
13 * overlay for use in the new tab page. | 13 * overlay for use in the new tab page. |
14 * @class | 14 * @class |
15 */ | 15 */ |
16 function SyncPromo() { | 16 function SyncPromo() { |
17 options.SyncSetupOverlay.call(this, 'syncSetup', | 17 options.SyncSetupOverlay.call(this, 'syncSetup', |
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
283 return { | 283 return { |
284 SyncPromo: SyncPromo | 284 SyncPromo: SyncPromo |
285 }; | 285 }; |
286 }); | 286 }); |
287 | 287 |
288 var OptionsPage = options.OptionsPage; | 288 var OptionsPage = options.OptionsPage; |
289 var SyncSetupOverlay = sync_promo.SyncPromo; | 289 var SyncSetupOverlay = sync_promo.SyncPromo; |
290 window.addEventListener('DOMContentLoaded', sync_promo.SyncPromo.initialize); | 290 window.addEventListener('DOMContentLoaded', sync_promo.SyncPromo.initialize); |
291 window.addEventListener('beforeunload', | 291 window.addEventListener('beforeunload', |
292 sync_promo.SyncPromo.recordPageViewActions.bind(sync_promo.SyncPromo)); | 292 sync_promo.SyncPromo.recordPageViewActions.bind(sync_promo.SyncPromo)); |
OLD | NEW |