| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 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 | 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 // PersonalOptions class | 10 // PersonalOptions class |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 | 61 |
| 62 $('autofill_options').onclick = function(event) { | 62 $('autofill_options').onclick = function(event) { |
| 63 OptionsPage.showPageByName('autoFillOptions'); | 63 OptionsPage.showPageByName('autoFillOptions'); |
| 64 }; | 64 }; |
| 65 | 65 |
| 66 if (!cr.isChromeOS) { | 66 if (!cr.isChromeOS) { |
| 67 $('stop-sync').onclick = function(event) { | 67 $('stop-sync').onclick = function(event) { |
| 68 OptionsPage.showOverlay('stopSyncingOverlay'); | 68 OptionsPage.showOverlay('stopSyncingOverlay'); |
| 69 }; | 69 }; |
| 70 $('import_data').onclick = function(event) { | 70 $('import_data').onclick = function(event) { |
| 71 OptionsPage.showOverlay('importDataOverlay'); | 71 ImportDataOverlay.loadImporter(); |
| 72 OptionsPage.showOverlay('importDataOverlay'); |
| 72 }; | 73 }; |
| 73 } | 74 } |
| 74 | 75 |
| 75 if(!cr.isChromeOS && navigator.platform.match(/linux|BSD/i)) { | 76 if(!cr.isChromeOS && navigator.platform.match(/linux|BSD/i)) { |
| 76 $('themes_GTK_button').onclick = function(event) { | 77 $('themes_GTK_button').onclick = function(event) { |
| 77 chrome.send('themesSetGTK'); | 78 chrome.send('themesSetGTK'); |
| 78 }; | 79 }; |
| 79 | 80 |
| 80 $('themes_set_classic').onclick = function(event) { | 81 $('themes_set_classic').onclick = function(event) { |
| 81 chrome.send('themesReset'); | 82 chrome.send('themesReset'); |
| (...skipping 22 matching lines...) Expand all Loading... |
| 104 PersonalOptions.getInstance().syncStatusCallback_(statusString); | 105 PersonalOptions.getInstance().syncStatusCallback_(statusString); |
| 105 }; | 106 }; |
| 106 | 107 |
| 107 // Export | 108 // Export |
| 108 return { | 109 return { |
| 109 PersonalOptions: PersonalOptions | 110 PersonalOptions: PersonalOptions |
| 110 }; | 111 }; |
| 111 | 112 |
| 112 }); | 113 }); |
| 113 | 114 |
| OLD | NEW |