summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author John Reck <jreck@google.com> 2011-06-14 15:19:17 -0700
committer John Reck <jreck@google.com> 2011-06-14 15:53:46 -0700
commit9b90d553bb0a404ab62305bbedaab97b07d90e03 (patch)
tree2cdfe71d2b79de77dcd0f118a367c3d420754d90
parent9a67f2618444e0373dcbac0f3cc36e900105f18c (diff)
Support for getting the background color
Change-Id: I58a52f79e5a50dbb2cd1ba81d13e95ed9a1b7095
-rw-r--r--core/java/android/webkit/WebView.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/core/java/android/webkit/WebView.java b/core/java/android/webkit/WebView.java
index bfab8a995bab..c56e6db8398a 100644
--- a/core/java/android/webkit/WebView.java
+++ b/core/java/android/webkit/WebView.java
@@ -3062,6 +3062,13 @@ public class WebView extends AbsoluteLayout
}
/**
+ * @hide
+ */
+ public int getPageBackgroundColor() {
+ return nativeGetBackgroundColor();
+ }
+
+ /**
* Pause all layout, parsing, and JavaScript timers for all webviews. This
* is a global requests, not restricted to just this webview. This can be
* useful if the application has been paused.
@@ -9216,4 +9223,5 @@ public class WebView extends AbsoluteLayout
* @return True if the layer is successfully scrolled.
*/
private native boolean nativeScrollLayer(int layer, int newX, int newY);
+ private native int nativeGetBackgroundColor();
}