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.annotation.TargetApi; | 8 import android.annotation.TargetApi; |
9 import android.app.Activity; | 9 import android.app.Activity; |
10 import android.content.ComponentCallbacks2; | 10 import android.content.ComponentCallbacks2; |
(...skipping 783 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
794 mScrollOffsetManager = | 794 mScrollOffsetManager = |
795 dependencyFactory.createScrollOffsetManager(new AwScrollOffsetMa nagerDelegate()); | 795 dependencyFactory.createScrollOffsetManager(new AwScrollOffsetMa nagerDelegate()); |
796 mScrollAccessibilityHelper = new ScrollAccessibilityHelper(mContainerVie w); | 796 mScrollAccessibilityHelper = new ScrollAccessibilityHelper(mContainerVie w); |
797 | 797 |
798 setOverScrollMode(mContainerView.getOverScrollMode()); | 798 setOverScrollMode(mContainerView.getOverScrollMode()); |
799 setScrollBarStyle(mInternalAccessAdapter.super_getScrollBarStyle()); | 799 setScrollBarStyle(mInternalAccessAdapter.super_getScrollBarStyle()); |
800 | 800 |
801 setNewAwContents(nativeInit(mBrowserContext)); | 801 setNewAwContents(nativeInit(mBrowserContext)); |
802 | 802 |
803 onContainerViewChanged(); | 803 onContainerViewChanged(); |
804 | |
805 AwMetricsServiceClient.queryMetricsSetting(mContext); | |
sgurun-gerrit only
2017/01/13 07:12:15
that is not the right place to do. AwMetricsServic
paulmiller
2017/01/13 20:43:58
I agree it doesn't really make sense to put this h
| |
804 } | 806 } |
805 | 807 |
806 private void initializeContentViewCore(ContentViewCore contentViewCore, | 808 private void initializeContentViewCore(ContentViewCore contentViewCore, |
807 Context context, ViewAndroidDelegate viewDelegate, | 809 Context context, ViewAndroidDelegate viewDelegate, |
808 InternalAccessDelegate internalDispatcher, WebContents webContents, | 810 InternalAccessDelegate internalDispatcher, WebContents webContents, |
809 GestureStateListener gestureStateListener, ContentViewClient content ViewClient, | 811 GestureStateListener gestureStateListener, ContentViewClient content ViewClient, |
810 WindowAndroid windowAndroid) { | 812 WindowAndroid windowAndroid) { |
811 contentViewCore.initialize(viewDelegate, internalDispatcher, webContents , windowAndroid); | 813 contentViewCore.initialize(viewDelegate, internalDispatcher, webContents , windowAndroid); |
812 contentViewCore.setActionModeCallback( | 814 contentViewCore.setActionModeCallback( |
813 new AwActionModeCallback(mContext, this, | 815 new AwActionModeCallback(mContext, this, |
(...skipping 2562 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3376 | 3378 |
3377 private native void nativePostMessageToFrame(long nativeAwContents, String f rameId, | 3379 private native void nativePostMessageToFrame(long nativeAwContents, String f rameId, |
3378 String message, String targetOrigin, int[] msgPorts); | 3380 String message, String targetOrigin, int[] msgPorts); |
3379 | 3381 |
3380 private native void nativeCreateMessageChannel( | 3382 private native void nativeCreateMessageChannel( |
3381 long nativeAwContents, AppWebMessagePort[] ports); | 3383 long nativeAwContents, AppWebMessagePort[] ports); |
3382 | 3384 |
3383 private native void nativeGrantFileSchemeAccesstoChildProcess(long nativeAwC ontents); | 3385 private native void nativeGrantFileSchemeAccesstoChildProcess(long nativeAwC ontents); |
3384 private native void nativeResumeLoadingCreatedPopupWebContents(long nativeAw Contents); | 3386 private native void nativeResumeLoadingCreatedPopupWebContents(long nativeAw Contents); |
3385 } | 3387 } |
OLD | NEW |