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.content.browser; | 5 package org.chromium.content.browser; |
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.app.SearchManager; | 9 import android.app.SearchManager; |
10 import android.content.ContentResolver; | 10 import android.content.ContentResolver; |
(...skipping 778 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
789 } | 789 } |
790 mWebContents = null; | 790 mWebContents = null; |
791 if (mViewAndroid != null) mViewAndroid.destroy(); | 791 if (mViewAndroid != null) mViewAndroid.destroy(); |
792 mNativeContentViewCore = 0; | 792 mNativeContentViewCore = 0; |
793 mContentSettings = null; | 793 mContentSettings = null; |
794 mJavaScriptInterfaces.clear(); | 794 mJavaScriptInterfaces.clear(); |
795 mRetainedJavaScriptObjects.clear(); | 795 mRetainedJavaScriptObjects.clear(); |
796 unregisterAccessibilityContentObserver(); | 796 unregisterAccessibilityContentObserver(); |
797 mGestureStateListeners.clear(); | 797 mGestureStateListeners.clear(); |
798 ScreenOrientationListener.getInstance().removeObserver(this); | 798 ScreenOrientationListener.getInstance().removeObserver(this); |
| 799 mPositionObserver.clearListener(); |
799 } | 800 } |
800 | 801 |
801 private void unregisterAccessibilityContentObserver() { | 802 private void unregisterAccessibilityContentObserver() { |
802 if (mAccessibilityScriptInjectionObserver == null) { | 803 if (mAccessibilityScriptInjectionObserver == null) { |
803 return; | 804 return; |
804 } | 805 } |
805 getContext().getContentResolver().unregisterContentObserver( | 806 getContext().getContentResolver().unregisterContentObserver( |
806 mAccessibilityScriptInjectionObserver); | 807 mAccessibilityScriptInjectionObserver); |
807 mAccessibilityScriptInjectionObserver = null; | 808 mAccessibilityScriptInjectionObserver = null; |
808 } | 809 } |
(...skipping 2515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3324 | 3325 |
3325 private native void nativeExtractSmartClipData(long nativeContentViewCoreImp
l, | 3326 private native void nativeExtractSmartClipData(long nativeContentViewCoreImp
l, |
3326 int x, int y, int w, int h); | 3327 int x, int y, int w, int h); |
3327 private native void nativeSetBackgroundOpaque(long nativeContentViewCoreImpl
, boolean opaque); | 3328 private native void nativeSetBackgroundOpaque(long nativeContentViewCoreImpl
, boolean opaque); |
3328 | 3329 |
3329 private native void nativeResumeResponseDeferredAtStart( | 3330 private native void nativeResumeResponseDeferredAtStart( |
3330 long nativeContentViewCoreImpl); | 3331 long nativeContentViewCoreImpl); |
3331 private native void nativeSetHasPendingNavigationTransitionForTesting( | 3332 private native void nativeSetHasPendingNavigationTransitionForTesting( |
3332 long nativeContentViewCoreImpl); | 3333 long nativeContentViewCoreImpl); |
3333 } | 3334 } |
OLD | NEW |