| Index: ui/android/java/src/org/chromium/ui/resources/dynamics/ViewResourceAdapter.java
|
| diff --git a/ui/android/java/src/org/chromium/ui/resources/dynamics/ViewResourceAdapter.java b/ui/android/java/src/org/chromium/ui/resources/dynamics/ViewResourceAdapter.java
|
| index cf45b2f4d4ecd8e77e8137907ada48d7b04e0291..98816856e277c24629ebc0f3c0b003720e052e00 100644
|
| --- a/ui/android/java/src/org/chromium/ui/resources/dynamics/ViewResourceAdapter.java
|
| +++ b/ui/android/java/src/org/chromium/ui/resources/dynamics/ViewResourceAdapter.java
|
| @@ -12,6 +12,7 @@ import android.view.View;
|
| import android.view.View.OnLayoutChangeListener;
|
|
|
| import org.chromium.base.TraceEvent;
|
| +import org.chromium.ui.resources.ResourceManager;
|
|
|
| /**
|
| * An adapter that exposes a {@link View} as a {@link DynamicResource}. In order to properly use
|
| @@ -73,17 +74,12 @@ public class ViewResourceAdapter implements DynamicResource, OnLayoutChangeListe
|
| }
|
|
|
| @Override
|
| - public Rect getPadding() {
|
| + public long createNativeResource() {
|
| + // TODO(khushalsagar): Fix this to create the correct native resource type.
|
| + // See crbug.com/700454.
|
| computeContentPadding(mContentPadding);
|
| -
|
| - return mContentPadding;
|
| - }
|
| -
|
| - @Override
|
| - public Rect getAperture() {
|
| computeContentAperture(mContentAperture);
|
| -
|
| - return mContentAperture;
|
| + return ResourceManager.createNinePatchBitmapResource(mContentPadding, mContentAperture);
|
| }
|
|
|
| @Override
|
|
|