| 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.annotation.SuppressLint; | 7 import android.annotation.SuppressLint; |
| 8 import android.app.Activity; | 8 import android.app.Activity; |
| 9 import android.content.ComponentCallbacks2; | 9 import android.content.ComponentCallbacks2; |
| 10 import android.content.Context; | 10 import android.content.Context; |
| (...skipping 564 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 575 mAwViewMethods = new AwViewMethodsImpl(); | 575 mAwViewMethods = new AwViewMethodsImpl(); |
| 576 mFullScreenTransitionsState = new FullScreenTransitionsState( | 576 mFullScreenTransitionsState = new FullScreenTransitionsState( |
| 577 mContainerView, mInternalAccessAdapter, mAwViewMethods); | 577 mContainerView, mInternalAccessAdapter, mAwViewMethods); |
| 578 mContentViewClient = new AwContentViewClient(contentsClient, settings, t
his, mContext); | 578 mContentViewClient = new AwContentViewClient(contentsClient, settings, t
his, mContext); |
| 579 mLayoutSizer = dependencyFactory.createLayoutSizer(); | 579 mLayoutSizer = dependencyFactory.createLayoutSizer(); |
| 580 mSettings = settings; | 580 mSettings = settings; |
| 581 mDIPScale = DeviceDisplayInfo.create(mContext).getDIPScale(); | 581 mDIPScale = DeviceDisplayInfo.create(mContext).getDIPScale(); |
| 582 mLayoutSizer.setDelegate(new AwLayoutSizerDelegate()); | 582 mLayoutSizer.setDelegate(new AwLayoutSizerDelegate()); |
| 583 mLayoutSizer.setDIPScale(mDIPScale); | 583 mLayoutSizer.setDIPScale(mDIPScale); |
| 584 mWebContentsDelegate = new AwWebContentsDelegateAdapter( | 584 mWebContentsDelegate = new AwWebContentsDelegateAdapter( |
| 585 contentsClient, mContainerView, mContext); | 585 contentsClient, mContentViewClient, mContainerView, mContext); |
| 586 mContentsClientBridge = new AwContentsClientBridge(contentsClient, | 586 mContentsClientBridge = new AwContentsClientBridge(contentsClient, |
| 587 mBrowserContext.getKeyStore(), AwContentsStatics.getClientCertLo
okupTable()); | 587 mBrowserContext.getKeyStore(), AwContentsStatics.getClientCertLo
okupTable()); |
| 588 mZoomControls = new AwZoomControls(this); | 588 mZoomControls = new AwZoomControls(this); |
| 589 mIoThreadClient = new IoThreadClientImpl(); | 589 mIoThreadClient = new IoThreadClientImpl(); |
| 590 mInterceptNavigationDelegate = new InterceptNavigationDelegateImpl(); | 590 mInterceptNavigationDelegate = new InterceptNavigationDelegateImpl(); |
| 591 | 591 |
| 592 AwSettings.ZoomSupportChangeListener zoomListener = | 592 AwSettings.ZoomSupportChangeListener zoomListener = |
| 593 new AwSettings.ZoomSupportChangeListener() { | 593 new AwSettings.ZoomSupportChangeListener() { |
| 594 @Override | 594 @Override |
| 595 public void onGestureZoomSupportChanged( | 595 public void onGestureZoomSupportChanged( |
| (...skipping 1959 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2555 | 2555 |
| 2556 private native void nativeSetJsOnlineProperty(long nativeAwContents, boolean
networkUp); | 2556 private native void nativeSetJsOnlineProperty(long nativeAwContents, boolean
networkUp); |
| 2557 | 2557 |
| 2558 private native void nativeTrimMemory(long nativeAwContents, int level, boole
an visible); | 2558 private native void nativeTrimMemory(long nativeAwContents, int level, boole
an visible); |
| 2559 | 2559 |
| 2560 private native void nativeCreatePdfExporter(long nativeAwContents, AwPdfExpo
rter awPdfExporter); | 2560 private native void nativeCreatePdfExporter(long nativeAwContents, AwPdfExpo
rter awPdfExporter); |
| 2561 | 2561 |
| 2562 private native void nativePreauthorizePermission(long nativeAwContents, Stri
ng origin, | 2562 private native void nativePreauthorizePermission(long nativeAwContents, Stri
ng origin, |
| 2563 long resources); | 2563 long resources); |
| 2564 } | 2564 } |
| OLD | NEW |