Chromium Code Reviews| 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.content.pm.PackageManager; | 7 import android.content.pm.PackageManager; |
| 8 import android.content.res.Configuration; | 8 import android.content.res.Configuration; |
| 9 import android.graphics.Bitmap; | 9 import android.graphics.Bitmap; |
| 10 import android.graphics.Canvas; | 10 import android.graphics.Canvas; |
| (...skipping 1613 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1624 } | 1624 } |
| 1625 | 1625 |
| 1626 /** | 1626 /** |
| 1627 * @see android.webkit.WebView#clearFormData() | 1627 * @see android.webkit.WebView#clearFormData() |
| 1628 */ | 1628 */ |
| 1629 public void hideAutofillPopup() { | 1629 public void hideAutofillPopup() { |
| 1630 if (mAwAutofillManagerDelegate != null) | 1630 if (mAwAutofillManagerDelegate != null) |
| 1631 mAwAutofillManagerDelegate.hideAutofillPopup(); | 1631 mAwAutofillManagerDelegate.hideAutofillPopup(); |
| 1632 } | 1632 } |
| 1633 | 1633 |
| 1634 public void setNetworkAvailable(boolean networkUp) { | |
| 1635 if(mNativeAwContents != 0) { | |
|
joth
2013/08/25 21:13:04
nit: space after if.
in the rest of this file we
benm (inactive)
2013/08/27 09:46:36
Done.
| |
| 1636 nativeSetJsOnlineProperty(mNativeAwContents, networkUp); | |
| 1637 } | |
| 1638 } | |
| 1639 | |
| 1634 //-------------------------------------------------------------------------- ------------------ | 1640 //-------------------------------------------------------------------------- ------------------ |
| 1635 // Methods called from native via JNI | 1641 // Methods called from native via JNI |
| 1636 //-------------------------------------------------------------------------- ------------------ | 1642 //-------------------------------------------------------------------------- ------------------ |
| 1637 | 1643 |
| 1638 @CalledByNative | 1644 @CalledByNative |
| 1639 private static void onDocumentHasImagesResponse(boolean result, Message mess age) { | 1645 private static void onDocumentHasImagesResponse(boolean result, Message mess age) { |
| 1640 message.arg1 = result ? 1 : 0; | 1646 message.arg1 = result ? 1 : 0; |
| 1641 message.sendToTarget(); | 1647 message.sendToTarget(); |
| 1642 } | 1648 } |
| 1643 | 1649 |
| (...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1902 private native int nativeReleasePopupAwContents(int nativeAwContents); | 1908 private native int nativeReleasePopupAwContents(int nativeAwContents); |
| 1903 private native void nativeFocusFirstNode(int nativeAwContents); | 1909 private native void nativeFocusFirstNode(int nativeAwContents); |
| 1904 private native void nativeSetBackgroundColor(int nativeAwContents, int color ); | 1910 private native void nativeSetBackgroundColor(int nativeAwContents, int color ); |
| 1905 | 1911 |
| 1906 private native int nativeGetAwDrawGLViewContext(int nativeAwContents); | 1912 private native int nativeGetAwDrawGLViewContext(int nativeAwContents); |
| 1907 private native int nativeCapturePicture(int nativeAwContents, int width, int height); | 1913 private native int nativeCapturePicture(int nativeAwContents, int width, int height); |
| 1908 private native void nativeEnableOnNewPicture(int nativeAwContents, boolean e nabled); | 1914 private native void nativeEnableOnNewPicture(int nativeAwContents, boolean e nabled); |
| 1909 | 1915 |
| 1910 private native void nativeInvokeGeolocationCallback( | 1916 private native void nativeInvokeGeolocationCallback( |
| 1911 int nativeAwContents, boolean value, String requestingFrame); | 1917 int nativeAwContents, boolean value, String requestingFrame); |
| 1918 | |
| 1919 private native void nativeSetJsOnlineProperty(int nativeAwContents, boolean networkUp); | |
| 1912 } | 1920 } |
| OLD | NEW |