From 89e2486a48b739f8d771d69ede5a6a1b244a10fc Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Mon, 30 Jul 2012 11:37:48 +0200 Subject: Imported WebKit commit 0282df8ca7c11d8c8a66ea18543695c69f545a27 (http://svn.webkit.org/repository/webkit/trunk@124002) New snapshot with prospective Mountain Lion build fix --- Source/WebKit/chromium/public/WebView.h | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'Source/WebKit/chromium/public/WebView.h') diff --git a/Source/WebKit/chromium/public/WebView.h b/Source/WebKit/chromium/public/WebView.h index 0085ba51a..4da3363dd 100644 --- a/Source/WebKit/chromium/public/WebView.h +++ b/Source/WebKit/chromium/public/WebView.h @@ -63,7 +63,6 @@ struct WebActiveWheelFlingParameters; struct WebMediaPlayerAction; struct WebPluginAction; struct WebPoint; -struct WebRenderingStats; class WebView : public WebWidget { public: @@ -254,6 +253,14 @@ public: virtual float minimumPageScaleFactor() const = 0; virtual float maximumPageScaleFactor() const = 0; + // Save the WebView's current scroll and scale state. Each call to this function + // overwrites the previously saved scroll and scale state. + virtual void saveScrollAndScaleState() = 0; + + // Restore the previously saved scroll and scale state. After restroing the + // state, this function deletes any saved scroll and scale state. + virtual void restoreScrollAndScaleState() = 0; + // Prevent the web page from setting a maximum scale via the viewport meta // tag. This is an accessibility feature that lets folks zoom in to web // pages even if the web page tries to block scaling. @@ -454,10 +461,6 @@ public: virtual bool isSelectionEditable() const = 0; - // Fills in a WebRenderingStats struct containing information about the state of the compositor. - // This call is relatively expensive in threaded mode as it blocks on the compositor thread. - virtual void renderingStats(WebRenderingStats&) const { } - // Benchmarking support -------------------------------------------- virtual WebViewBenchmarkSupport* benchmarkSupport() { return 0; } -- cgit v1.2.1