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

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

Issue 233103002: Added a call to hide the popup when the render process dies. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated code with added calls to |resetScrollInProgress()| and |resetGestureDetectors()| Created 6 years, 8 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 | no next file » | 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 716 matching lines...) Expand 10 before | Expand all | Expand 10 after
727 R.string.accessibility_content_view); 727 R.string.accessibility_content_view);
728 } 728 }
729 mContainerView.setContentDescription(contentDescription); 729 mContainerView.setContentDescription(contentDescription);
730 mWebContentsObserver = new WebContentsObserverAndroid(this) { 730 mWebContentsObserver = new WebContentsObserverAndroid(this) {
731 @Override 731 @Override
732 public void didStartLoading(String url) { 732 public void didStartLoading(String url) {
733 hidePopupDialog(); 733 hidePopupDialog();
734 resetScrollInProgress(); 734 resetScrollInProgress();
735 resetGestureDetectors(); 735 resetGestureDetectors();
736 } 736 }
737
738 @Override
739 public void renderProcessGone(boolean wasOomProtected) {
740 hidePopupDialog();
741 resetScrollInProgress();
742 resetGestureDetectors();
743 }
737 }; 744 };
738 } 745 }
739 746
740 @CalledByNative 747 @CalledByNative
741 void onNativeContentViewCoreDestroyed(long nativeContentViewCore) { 748 void onNativeContentViewCoreDestroyed(long nativeContentViewCore) {
742 assert nativeContentViewCore == mNativeContentViewCore; 749 assert nativeContentViewCore == mNativeContentViewCore;
743 mNativeContentViewCore = 0; 750 mNativeContentViewCore = 0;
744 } 751 }
745 752
746 /** 753 /**
(...skipping 2600 matching lines...) Expand 10 before | Expand all | Expand 10 after
3347 boolean enableHiding, boolean enableShowing, boolean animate); 3354 boolean enableHiding, boolean enableShowing, boolean animate);
3348 3355
3349 private native void nativeShowImeIfNeeded(long nativeContentViewCoreImpl); 3356 private native void nativeShowImeIfNeeded(long nativeContentViewCoreImpl);
3350 3357
3351 private native void nativeSetAccessibilityEnabled( 3358 private native void nativeSetAccessibilityEnabled(
3352 long nativeContentViewCoreImpl, boolean enabled); 3359 long nativeContentViewCoreImpl, boolean enabled);
3353 3360
3354 private native void nativeExtractSmartClipData(long nativeContentViewCoreImp l, 3361 private native void nativeExtractSmartClipData(long nativeContentViewCoreImp l,
3355 int x, int y, int w, int h); 3362 int x, int y, int w, int h);
3356 } 3363 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698