OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 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 cr.exportPath('settings'); |
| 6 |
| 7 /** @interface */ |
| 8 settings.DirectionDelegate = function() {}; |
| 9 |
| 10 settings.DirectionDelegate.prototype = { |
| 11 /** |
| 12 * @return {boolean} Whether the direction of the settings UI is |
| 13 * right-to-left. |
| 14 */ |
| 15 isRtl: assertNotReached, |
| 16 }; |
| 17 |
| 18 /** |
| 19 * @implements {settings.DirectionDelegate} |
| 20 * @constructor |
| 21 */ |
| 22 settings.DirectionDelegateImpl = function() {}; |
| 23 |
| 24 settings.DirectionDelegateImpl.prototype = { |
| 25 /** @override */ |
| 26 isRtl: function() { |
| 27 return loadTimeData.getString('textdirection') == 'rtl'; |
| 28 }, |
| 29 }; |
OLD | NEW |