| Index: chrome/browser/resources/settings/direction_delegate.js
|
| diff --git a/chrome/browser/resources/settings/direction_delegate.js b/chrome/browser/resources/settings/direction_delegate.js
|
| index 3b8020a356269478006e2a68b8ee6948037c246e..6d5275337e9ad8270a2fcdc386bf880b9e769ead 100644
|
| --- a/chrome/browser/resources/settings/direction_delegate.js
|
| +++ b/chrome/browser/resources/settings/direction_delegate.js
|
| @@ -4,26 +4,26 @@
|
|
|
| cr.exportPath('settings');
|
|
|
| -/** @interface */
|
| -settings.DirectionDelegate = function() {};
|
| +cr.define('settings', function() {
|
| + /** @interface */
|
| + class DirectionDelegate {
|
| + /**
|
| + * @return {boolean} Whether the direction of the settings UI is
|
| + * right-to-left.
|
| + */
|
| + isRtl() {}
|
| + }
|
|
|
| -settings.DirectionDelegate.prototype = {
|
| - /**
|
| - * @return {boolean} Whether the direction of the settings UI is
|
| - * right-to-left.
|
| - */
|
| - isRtl: assertNotReached,
|
| -};
|
| + /** @implements {settings.DirectionDelegate} */
|
| + class DirectionDelegateImpl {
|
| + /** @override */
|
| + isRtl() {
|
| + return loadTimeData.getString('textdirection') == 'rtl';
|
| + }
|
| + }
|
|
|
| -/**
|
| - * @implements {settings.DirectionDelegate}
|
| - * @constructor
|
| - */
|
| -settings.DirectionDelegateImpl = function() {};
|
| -
|
| -settings.DirectionDelegateImpl.prototype = {
|
| - /** @override */
|
| - isRtl: function() {
|
| - return loadTimeData.getString('textdirection') == 'rtl';
|
| - },
|
| -};
|
| + return {
|
| + DirectionDelegate: DirectionDelegate,
|
| + DirectionDelegateImpl: DirectionDelegateImpl,
|
| + };
|
| +});
|
|
|