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.app.Activity; | 8 import android.app.Activity; |
9 import android.content.ComponentCallbacks2; | 9 import android.content.ComponentCallbacks2; |
10 import android.content.Context; | 10 import android.content.Context; |
(...skipping 1746 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1757 * @see android.webkit.WebView#performAccessibilityAction(int, Bundle) | 1757 * @see android.webkit.WebView#performAccessibilityAction(int, Bundle) |
1758 */ | 1758 */ |
1759 public boolean performAccessibilityAction(int action, Bundle arguments) { | 1759 public boolean performAccessibilityAction(int action, Bundle arguments) { |
1760 return mContentViewCore.performAccessibilityAction(action, arguments); | 1760 return mContentViewCore.performAccessibilityAction(action, arguments); |
1761 } | 1761 } |
1762 | 1762 |
1763 /** | 1763 /** |
1764 * @see android.webkit.WebView#clearFormData() | 1764 * @see android.webkit.WebView#clearFormData() |
1765 */ | 1765 */ |
1766 public void hideAutofillPopup() { | 1766 public void hideAutofillPopup() { |
1767 if (mAwAutofillManagerDelegate != null) | 1767 if (mAwAutofillManagerDelegate != null) { |
1768 mAwAutofillManagerDelegate.hideAutofillPopup(); | 1768 mAwAutofillManagerDelegate.hideAutofillPopup(); |
| 1769 } |
1769 } | 1770 } |
1770 | 1771 |
1771 public void setNetworkAvailable(boolean networkUp) { | 1772 public void setNetworkAvailable(boolean networkUp) { |
1772 if (mNativeAwContents == 0) return; | 1773 if (mNativeAwContents == 0) return; |
1773 nativeSetJsOnlineProperty(mNativeAwContents, networkUp); | 1774 nativeSetJsOnlineProperty(mNativeAwContents, networkUp); |
1774 } | 1775 } |
1775 | 1776 |
1776 //--------------------------------------------------------------------------
------------------ | 1777 //--------------------------------------------------------------------------
------------------ |
1777 // Methods called from native via JNI | 1778 // Methods called from native via JNI |
1778 //--------------------------------------------------------------------------
------------------ | 1779 //--------------------------------------------------------------------------
------------------ |
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2100 long nativeAwContents, boolean value, String requestingFrame); | 2101 long nativeAwContents, boolean value, String requestingFrame); |
2101 | 2102 |
2102 private native void nativeSetJsOnlineProperty(long nativeAwContents, boolean
networkUp); | 2103 private native void nativeSetJsOnlineProperty(long nativeAwContents, boolean
networkUp); |
2103 | 2104 |
2104 private native void nativeTrimMemoryOnRenderThread(long nativeAwContents, in
t level, | 2105 private native void nativeTrimMemoryOnRenderThread(long nativeAwContents, in
t level, |
2105 boolean visible); | 2106 boolean visible); |
2106 | 2107 |
2107 private native void nativeCreatePdfExporter(long nativeAwContents, AwPdfExpo
rter awPdfExporter); | 2108 private native void nativeCreatePdfExporter(long nativeAwContents, AwPdfExpo
rter awPdfExporter); |
2108 | 2109 |
2109 } | 2110 } |
OLD | NEW |