| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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 package org.chromium.android_webview; | 5 package org.chromium.android_webview; |
| 6 | 6 |
| 7 import android.content.ComponentCallbacks2; | 7 import android.content.ComponentCallbacks2; |
| 8 import android.content.Context; | 8 import android.content.Context; |
| 9 import android.content.pm.PackageManager; | 9 import android.content.pm.PackageManager; |
| 10 import android.content.res.Configuration; | 10 import android.content.res.Configuration; |
| (...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 357 mContainerView.requestLayout(); | 357 mContainerView.requestLayout(); |
| 358 } | 358 } |
| 359 | 359 |
| 360 @Override | 360 @Override |
| 361 public void setMeasuredDimension(int measuredWidth, int measuredHeight)
{ | 361 public void setMeasuredDimension(int measuredWidth, int measuredHeight)
{ |
| 362 mInternalAccessAdapter.setMeasuredDimension(measuredWidth, measuredH
eight); | 362 mInternalAccessAdapter.setMeasuredDimension(measuredWidth, measuredH
eight); |
| 363 } | 363 } |
| 364 | 364 |
| 365 @Override | 365 @Override |
| 366 public void setFixedLayoutSize(int widthDip, int heightDip) { | 366 public void setFixedLayoutSize(int widthDip, int heightDip) { |
| 367 if (mNativeAwContents == 0) return; |
| 367 nativeSetFixedLayoutSize(mNativeAwContents, widthDip, heightDip); | 368 nativeSetFixedLayoutSize(mNativeAwContents, widthDip, heightDip); |
| 368 } | 369 } |
| 369 } | 370 } |
| 370 | 371 |
| 371 //--------------------------------------------------------------------------
------------------ | 372 //--------------------------------------------------------------------------
------------------ |
| 372 private class AwScrollOffsetManagerDelegate implements AwScrollOffsetManager
.Delegate { | 373 private class AwScrollOffsetManagerDelegate implements AwScrollOffsetManager
.Delegate { |
| 373 @Override | 374 @Override |
| 374 public void overScrollContainerViewBy(int deltaX, int deltaY, int scroll
X, int scrollY, | 375 public void overScrollContainerViewBy(int deltaX, int deltaY, int scroll
X, int scrollY, |
| 375 int scrollRangeX, int scrollRangeY, boolean isTouchEvent) { | 376 int scrollRangeX, int scrollRangeY, boolean isTouchEvent) { |
| 376 mInternalAccessAdapter.overScrollBy(deltaX, deltaY, scrollX, scrollY
, | 377 mInternalAccessAdapter.overScrollBy(deltaX, deltaY, scrollX, scrollY
, |
| (...skipping 1665 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2042 private native int nativeCapturePicture(int nativeAwContents, int width, int
height); | 2043 private native int nativeCapturePicture(int nativeAwContents, int width, int
height); |
| 2043 private native void nativeEnableOnNewPicture(int nativeAwContents, boolean e
nabled); | 2044 private native void nativeEnableOnNewPicture(int nativeAwContents, boolean e
nabled); |
| 2044 | 2045 |
| 2045 private native void nativeInvokeGeolocationCallback( | 2046 private native void nativeInvokeGeolocationCallback( |
| 2046 int nativeAwContents, boolean value, String requestingFrame); | 2047 int nativeAwContents, boolean value, String requestingFrame); |
| 2047 | 2048 |
| 2048 private native void nativeSetJsOnlineProperty(int nativeAwContents, boolean
networkUp); | 2049 private native void nativeSetJsOnlineProperty(int nativeAwContents, boolean
networkUp); |
| 2049 | 2050 |
| 2050 private native void nativeTrimMemory(int nativeAwContents, int level); | 2051 private native void nativeTrimMemory(int nativeAwContents, int level); |
| 2051 } | 2052 } |
| OLD | NEW |