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

Side by Side Diff: content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java

Issue 407893003: Implement clearListener() method for PositionObserver to clear all registered listeners when Con (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: changes incorporated Created 6 years, 5 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
« no previous file with comments | « no previous file | content/public/android/java/src/org/chromium/content/browser/PositionObserver.java » ('j') | 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.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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | content/public/android/java/src/org/chromium/content/browser/PositionObserver.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698