| Index: base/android/java/src/org/chromium/base/ApiCompatibilityUtils.java
|
| diff --git a/base/android/java/src/org/chromium/base/ApiCompatibilityUtils.java b/base/android/java/src/org/chromium/base/ApiCompatibilityUtils.java
|
| index b3eff94e81d69888712ea5aa535e66d4f734a446..2817deeb94f8c13ff94de3daac0c265f1278a1fc 100644
|
| --- a/base/android/java/src/org/chromium/base/ApiCompatibilityUtils.java
|
| +++ b/base/android/java/src/org/chromium/base/ApiCompatibilityUtils.java
|
| @@ -61,6 +61,18 @@ public class ApiCompatibilityUtils {
|
| }
|
|
|
| /**
|
| + * @see View#getLayoutDirection()
|
| + */
|
| + public static int getLayoutDirection(View view) {
|
| + if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1) {
|
| + return view.getLayoutDirection();
|
| + } else {
|
| + // All layouts are LTR before JB MR1.
|
| + return View.LAYOUT_DIRECTION_LTR;
|
| + }
|
| + }
|
| +
|
| + /**
|
| * @return True if the running version of the Android supports printing.
|
| */
|
| public static boolean isPrintingSupported() {
|
|
|