summaryrefslogtreecommitdiffstats
path: root/android_webview
diff options
context:
space:
mode:
authormkosiba@chromium.org <mkosiba@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-02-21 11:44:26 +0000
committermkosiba@chromium.org <mkosiba@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-02-21 11:44:26 +0000
commit1df4ecb33de3bd6c7f95ee531986942cd57a5cea (patch)
treed834cfa752dadbb6454696dcb2b44b3b0d661579 /android_webview
parenta54d293a94d9876cc9845eb035ee5a462aa1c4ee (diff)
downloadchromium_src-1df4ecb33de3bd6c7f95ee531986942cd57a5cea.zip
chromium_src-1df4ecb33de3bd6c7f95ee531986942cd57a5cea.tar.gz
chromium_src-1df4ecb33de3bd6c7f95ee531986942cd57a5cea.tar.bz2
[android_webview] Introduce content size methods on AwContents.
This makes it clear which coordinate space the width and height should be reported in. This will also remove another dependency on ContentViewCore from the glue layer. R=benm@chromium.org BUG=None TEST=None NOTRY=true Review URL: https://chromiumcodereview.appspot.com/12330047 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@183791 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'android_webview')
-rw-r--r--android_webview/java/src/org/chromium/android_webview/AwContents.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/android_webview/java/src/org/chromium/android_webview/AwContents.java b/android_webview/java/src/org/chromium/android_webview/AwContents.java
index 8fca982..bbd07b4 100644
--- a/android_webview/java/src/org/chromium/android_webview/AwContents.java
+++ b/android_webview/java/src/org/chromium/android_webview/AwContents.java
@@ -338,6 +338,14 @@ public class AwContents {
mLayoutSizer.onMeasure(widthMeasureSpec, heightMeasureSpec);
}
+ public int getContentHeightCss() {
+ return getContentViewCore().getContentHeight();
+ }
+
+ public int getContentWidthCss() {
+ return getContentViewCore().getContentWidth();
+ }
+
public Picture capturePicture() {
return nativeCapturePicture(mNativeAwContents);
}