Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(350)

Side by Side Diff: chrome/browser/resources/settings/direction_delegate.js

Issue 1700273003: MD Settings: make <paper-drawer-panel> flip in RTL (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: michaelpg@ review Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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 };
OLDNEW
« no previous file with comments | « chrome/browser/resources/settings/direction_delegate.html ('k') | chrome/browser/resources/settings/settings.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698