OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 /** @const */ var PageManager = cr.ui.pageManager.PageManager; | 6 /** @const */ var PageManager = cr.ui.pageManager.PageManager; |
7 /** @const */ var SettingsDialog = options.SettingsDialog; | 7 /** @const */ var SettingsDialog = options.SettingsDialog; |
8 | 8 |
9 /** | 9 /** |
10 * HomePageOverlay class | 10 * HomePageOverlay class |
11 * Dialog that allows users to set the home page. | 11 * Dialog that allows users to set the home page. |
12 * @constructor | 12 * @constructor |
13 * @extends {options.SettingsDialog} | 13 * @extends {options.SettingsDialog} |
14 */ | 14 */ |
15 function ThirdPartyImeConfirmOverlay() { | 15 function ThirdPartyImeConfirmOverlay() { |
16 SettingsDialog.call( | 16 SettingsDialog.call( |
17 this, 'thirdPartyImeConfirm', | 17 this, 'thirdPartyImeConfirm', |
18 loadTimeData.getString('thirdPartyImeConfirmOverlayTabTitle'), | 18 loadTimeData.getString('thirdPartyImeConfirmOverlayTabTitle'), |
19 'third-party-ime-confirm-overlay', | 19 'third-party-ime-confirm-overlay', |
20 $('third-party-ime-confirm-ok'), | 20 assertInstanceof($('third-party-ime-confirm-ok'), HTMLButtonElement), |
21 $('third-party-ime-confirm-cancel')); | 21 assertInstanceof($('third-party-ime-confirm-cancel'), |
| 22 HTMLButtonElement)); |
22 } | 23 } |
23 | 24 |
24 cr.addSingletonGetter(ThirdPartyImeConfirmOverlay); | 25 cr.addSingletonGetter(ThirdPartyImeConfirmOverlay); |
25 | 26 |
26 ThirdPartyImeConfirmOverlay.prototype = { | 27 ThirdPartyImeConfirmOverlay.prototype = { |
27 __proto__: SettingsDialog.prototype, | 28 __proto__: SettingsDialog.prototype, |
28 | 29 |
29 /** | 30 /** |
30 * Callback to authorize use of an input method. | 31 * Callback to authorize use of an input method. |
31 * @type {Function} | 32 * @type {Function} |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 */ | 82 */ |
82 ThirdPartyImeConfirmOverlay.showConfirmationDialog = function(data) { | 83 ThirdPartyImeConfirmOverlay.showConfirmationDialog = function(data) { |
83 ThirdPartyImeConfirmOverlay.getInstance().showConfirmationDialog_(data); | 84 ThirdPartyImeConfirmOverlay.getInstance().showConfirmationDialog_(data); |
84 }; | 85 }; |
85 | 86 |
86 // Export | 87 // Export |
87 return { | 88 return { |
88 ThirdPartyImeConfirmOverlay: ThirdPartyImeConfirmOverlay | 89 ThirdPartyImeConfirmOverlay: ThirdPartyImeConfirmOverlay |
89 }; | 90 }; |
90 }); | 91 }); |
OLD | NEW |