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

Side by Side Diff: android_webview/java/src/org/chromium/android_webview/AwContents.java

Issue 28923005: [android_webview] Fix crash in testCreateDestroy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698