| 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 786 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 797 mScrollAccessibilityHelper = new ScrollAccessibilityHelper(mContainerVie
w); | 797 mScrollAccessibilityHelper = new ScrollAccessibilityHelper(mContainerVie
w); |
| 798 | 798 |
| 799 setOverScrollMode(mContainerView.getOverScrollMode()); | 799 setOverScrollMode(mContainerView.getOverScrollMode()); |
| 800 setScrollBarStyle(mInternalAccessAdapter.super_getScrollBarStyle()); | 800 setScrollBarStyle(mInternalAccessAdapter.super_getScrollBarStyle()); |
| 801 | 801 |
| 802 setNewAwContents(nativeInit(mBrowserContext)); | 802 setNewAwContents(nativeInit(mBrowserContext)); |
| 803 | 803 |
| 804 onContainerViewChanged(); | 804 onContainerViewChanged(); |
| 805 } | 805 } |
| 806 | 806 |
| 807 private static void initializeContentViewCore(ContentViewCore contentViewCor
e, | 807 private void initializeContentViewCore(ContentViewCore contentViewCore, |
| 808 Context context, ViewAndroidDelegate viewDelegate, | 808 Context context, ViewAndroidDelegate viewDelegate, |
| 809 InternalAccessDelegate internalDispatcher, WebContents webContents, | 809 InternalAccessDelegate internalDispatcher, WebContents webContents, |
| 810 GestureStateListener gestureStateListener, ContentViewClient content
ViewClient, | 810 GestureStateListener gestureStateListener, ContentViewClient content
ViewClient, |
| 811 ContentViewCore.ZoomControlsDelegate zoomControlsDelegate, | 811 ContentViewCore.ZoomControlsDelegate zoomControlsDelegate, |
| 812 WindowAndroid windowAndroid) { | 812 WindowAndroid windowAndroid) { |
| 813 contentViewCore.initialize(viewDelegate, internalDispatcher, webContents
, windowAndroid); | 813 contentViewCore.initialize(viewDelegate, internalDispatcher, webContents
, windowAndroid); |
| 814 contentViewCore.setActionModeCallback( |
| 815 new AwActionModeCallback(this, contentViewCore.getActionModeCall
backHelper())); |
| 814 contentViewCore.addGestureStateListener(gestureStateListener); | 816 contentViewCore.addGestureStateListener(gestureStateListener); |
| 815 contentViewCore.setContentViewClient(contentViewClient); | 817 contentViewCore.setContentViewClient(contentViewClient); |
| 816 contentViewCore.setZoomControlsDelegate(zoomControlsDelegate); | 818 contentViewCore.setZoomControlsDelegate(zoomControlsDelegate); |
| 817 } | 819 } |
| 818 | 820 |
| 819 boolean isFullScreen() { | 821 boolean isFullScreen() { |
| 820 return mFullScreenTransitionsState.isFullScreen(); | 822 return mFullScreenTransitionsState.isFullScreen(); |
| 821 } | 823 } |
| 822 | 824 |
| 823 /** | 825 /** |
| (...skipping 2542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3366 | 3368 |
| 3367 private native void nativePostMessageToFrame(long nativeAwContents, String f
rameId, | 3369 private native void nativePostMessageToFrame(long nativeAwContents, String f
rameId, |
| 3368 String message, String targetOrigin, int[] msgPorts); | 3370 String message, String targetOrigin, int[] msgPorts); |
| 3369 | 3371 |
| 3370 private native void nativeCreateMessageChannel( | 3372 private native void nativeCreateMessageChannel( |
| 3371 long nativeAwContents, AppWebMessagePort[] ports); | 3373 long nativeAwContents, AppWebMessagePort[] ports); |
| 3372 | 3374 |
| 3373 private native void nativeGrantFileSchemeAccesstoChildProcess(long nativeAwC
ontents); | 3375 private native void nativeGrantFileSchemeAccesstoChildProcess(long nativeAwC
ontents); |
| 3374 private native void nativeResumeLoadingCreatedPopupWebContents(long nativeAw
Contents); | 3376 private native void nativeResumeLoadingCreatedPopupWebContents(long nativeAw
Contents); |
| 3375 } | 3377 } |
| OLD | NEW |