summaryrefslogtreecommitdiff
path: root/Source/WebKit/chromium/public/WebView.h
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@nokia.com>2012-07-30 11:37:48 +0200
committerSimon Hausmann <simon.hausmann@nokia.com>2012-07-30 11:38:52 +0200
commit89e2486a48b739f8d771d69ede5a6a1b244a10fc (patch)
tree503b1a7812cf97d93704c32437eb5f62dc1a1ff9 /Source/WebKit/chromium/public/WebView.h
parent625f028249cb37c55bbbd153f3902afd0b0756d9 (diff)
downloadqtwebkit-89e2486a48b739f8d771d69ede5a6a1b244a10fc.tar.gz
Imported WebKit commit 0282df8ca7c11d8c8a66ea18543695c69f545a27 (http://svn.webkit.org/repository/webkit/trunk@124002)
New snapshot with prospective Mountain Lion build fix
Diffstat (limited to 'Source/WebKit/chromium/public/WebView.h')
-rw-r--r--Source/WebKit/chromium/public/WebView.h13
1 files changed, 8 insertions, 5 deletions
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; }