| 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.ClipboardManager; | 10 import android.content.ClipboardManager; |
| (...skipping 750 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 761 // removed in navigationEntryCommitted() below. | 761 // removed in navigationEntryCommitted() below. |
| 762 if (isProvisionalLoad) determinedProcessVisibility(); | 762 if (isProvisionalLoad) determinedProcessVisibility(); |
| 763 } | 763 } |
| 764 | 764 |
| 765 @Override | 765 @Override |
| 766 public void didNavigateMainFrame(String url, String baseUrl, | 766 public void didNavigateMainFrame(String url, String baseUrl, |
| 767 boolean isNavigationToDifferentPage, boolean isFragmentNavig
ation) { | 767 boolean isNavigationToDifferentPage, boolean isFragmentNavig
ation) { |
| 768 if (!isNavigationToDifferentPage) return; | 768 if (!isNavigationToDifferentPage) return; |
| 769 hidePopupsAndClearSelection(); | 769 hidePopupsAndClearSelection(); |
| 770 resetScrollInProgress(); | 770 resetScrollInProgress(); |
| 771 resetGestureDetection(); | |
| 772 } | 771 } |
| 773 | 772 |
| 774 @Override | 773 @Override |
| 775 public void renderProcessGone(boolean wasOomProtected) { | 774 public void renderProcessGone(boolean wasOomProtected) { |
| 776 hidePopupsAndClearSelection(); | 775 hidePopupsAndClearSelection(); |
| 777 resetScrollInProgress(); | 776 resetScrollInProgress(); |
| 778 // No need to reset gesture detection as the detector will have | 777 // No need to reset gesture detection as the detector will have |
| 779 // been destroyed in the RenderWidgetHostView. | 778 // been destroyed in the RenderWidgetHostView. |
| 780 } | 779 } |
| 781 | 780 |
| (...skipping 2390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3172 private native void nativeWasResized(long nativeContentViewCoreImpl); | 3171 private native void nativeWasResized(long nativeContentViewCoreImpl); |
| 3173 | 3172 |
| 3174 private native void nativeSetAccessibilityEnabled( | 3173 private native void nativeSetAccessibilityEnabled( |
| 3175 long nativeContentViewCoreImpl, boolean enabled); | 3174 long nativeContentViewCoreImpl, boolean enabled); |
| 3176 | 3175 |
| 3177 private native void nativeExtractSmartClipData(long nativeContentViewCoreImp
l, | 3176 private native void nativeExtractSmartClipData(long nativeContentViewCoreImp
l, |
| 3178 int x, int y, int w, int h); | 3177 int x, int y, int w, int h); |
| 3179 | 3178 |
| 3180 private native void nativeSetBackgroundOpaque(long nativeContentViewCoreImpl
, boolean opaque); | 3179 private native void nativeSetBackgroundOpaque(long nativeContentViewCoreImpl
, boolean opaque); |
| 3181 } | 3180 } |
| OLD | NEW |