| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #ifndef RTL_GEOMETRY_H_ | 5 #ifndef IOS_CHROME_BROWSER_UI_RTL_GEOMETRY_H_ |
| 6 #define RTL_GEOMETRY_H_ | 6 #define IOS_CHROME_BROWSER_UI_RTL_GEOMETRY_H_ |
| 7 | 7 |
| 8 #include <CoreGraphics/CoreGraphics.h> | 8 #include <CoreGraphics/CoreGraphics.h> |
| 9 #import <UIKit/UIKit.h> | 9 #import <UIKit/UIKit.h> |
| 10 | 10 |
| 11 #include "base/i18n/rtl.h" | 11 #include "base/i18n/rtl.h" |
| 12 | 12 |
| 13 // Utilities for direction-independent layout calculations and related | 13 // Utilities for direction-independent layout calculations and related |
| 14 // functions. | 14 // functions. |
| 15 | 15 |
| 16 // True if views should be laid out with full RTL mirroring. | 16 // True if views should be laid out with full RTL mirroring. |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 // Autolayout utilities | 196 // Autolayout utilities |
| 197 | 197 |
| 198 // Returns the correct NSLayoutFormatOption for the current OS and build. This | 198 // Returns the correct NSLayoutFormatOption for the current OS and build. This |
| 199 // will return NSLayoutFormatDirectionLeadingToTrailing when a full RTL flip | 199 // will return NSLayoutFormatDirectionLeadingToTrailing when a full RTL flip |
| 200 // is correct, and NSLayoutFormatDirectionLeftToRight when layout should not | 200 // is correct, and NSLayoutFormatDirectionLeftToRight when layout should not |
| 201 // change with text direction. | 201 // change with text direction. |
| 202 // Generally speaking this option should be applied to any whole-page layouts; | 202 // Generally speaking this option should be applied to any whole-page layouts; |
| 203 // smaller sections of views should be determined case by case. | 203 // smaller sections of views should be determined case by case. |
| 204 NSLayoutFormatOptions LayoutOptionForRTLSupport(); | 204 NSLayoutFormatOptions LayoutOptionForRTLSupport(); |
| 205 | 205 |
| 206 #endif // RTL_GEOMETRY_H_ | 206 #endif // IOS_CHROME_BROWSER_UI_RTL_GEOMETRY_H_ |
| OLD | NEW |