diff options
author | mkosiba@chromium.org <mkosiba@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-21 11:44:26 +0000 |
---|---|---|
committer | mkosiba@chromium.org <mkosiba@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-21 11:44:26 +0000 |
commit | 1df4ecb33de3bd6c7f95ee531986942cd57a5cea (patch) | |
tree | d834cfa752dadbb6454696dcb2b44b3b0d661579 /android_webview | |
parent | a54d293a94d9876cc9845eb035ee5a462aa1c4ee (diff) | |
download | chromium_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.java | 8 |
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); } |