summaryrefslogtreecommitdiffstats
path: root/WebKit/android/jni/WebViewCore.h
diff options
context:
space:
mode:
authorGrace Kloba <klobag@google.com>2010-03-12 13:34:26 -0800
committerGrace Kloba <klobag@google.com>2010-03-12 14:01:57 -0800
commit2952bfa29c6990f198b901a6f1d230c52c5d6bd6 (patch)
treec9484da8c336d2769eedc59539d06b3dd7f64f1c /WebKit/android/jni/WebViewCore.h
parent3d1b69cdc70e614086125bfeb91e82043c105d92 (diff)
downloadexternal_webkit-2952bfa29c6990f198b901a6f1d230c52c5d6bd6.zip
external_webkit-2952bfa29c6990f198b901a6f1d230c52c5d6bd6.tar.gz
external_webkit-2952bfa29c6990f198b901a6f1d230c52c5d6bd6.tar.bz2
Add requestCenterFitZoom to android_npapi so that
Flash can trigger the smart-zoom Fix http://b/issue?id=2510670
Diffstat (limited to 'WebKit/android/jni/WebViewCore.h')
-rw-r--r--WebKit/android/jni/WebViewCore.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/WebKit/android/jni/WebViewCore.h b/WebKit/android/jni/WebViewCore.h
index 2bb45a6..608643e 100644
--- a/WebKit/android/jni/WebViewCore.h
+++ b/WebKit/android/jni/WebViewCore.h
@@ -425,6 +425,10 @@ namespace android {
int contentHeight, float xPercentInDoc, float xPercentInView,
float yPercentInDoc, float yPercentInView);
+ // Scale the rect (x, y, width, height) to make it just fit and centered
+ // in the current view.
+ void centerFitRect(int x, int y, int width, int height);
+
// other public functions
public:
// Open a file chooser for selecting a file to upload