diff options
author | jorlow@chromium.org <jorlow@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-08 06:14:51 +0000 |
---|---|---|
committer | jorlow@chromium.org <jorlow@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-08 06:14:51 +0000 |
commit | f2d507199e85ca69b1449ef05cc2163f1340b3aa (patch) | |
tree | f86bb6ab3890434441d39d9312b253a607289964 /webkit/glue/webview.h | |
parent | 70f7efe52831ef7f900c33af139c33d9c95f7dc4 (diff) | |
download | chromium_src-f2d507199e85ca69b1449ef05cc2163f1340b3aa.zip chromium_src-f2d507199e85ca69b1449ef05cc2163f1340b3aa.tar.gz chromium_src-f2d507199e85ca69b1449ef05cc2163f1340b3aa.tar.bz2 |
Create a WebSettings interface that can be used for code outside of WebKit/WebCore to set WebCore::Page settings. Create an implementation that actually does the modifications. Alter glue/webview to create the instance lazily and alter the webPreference code to use it.
In the next CL, we'll pull the WebPreference code out of WebView completely, so this interface will be of more use.
TEST=none
BUG=none
Review URL: http://codereview.chromium.org/164087
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@22863 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/webview.h')
-rw-r--r-- | webkit/glue/webview.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/webkit/glue/webview.h b/webkit/glue/webview.h index 1ada9cf..08bec75 100644 --- a/webkit/glue/webview.h +++ b/webkit/glue/webview.h @@ -13,6 +13,7 @@ namespace WebKit { class WebDragData; +class WebSettings; struct WebPoint; } @@ -146,9 +147,15 @@ class WebView : public WebKit::WebWidget { virtual bool DownloadImage(int id, const GURL& image_url, int image_size) = 0; // Replace the standard setting for the WebView with |preferences|. + // TODO(jorlow): Remove in favor of the GetWebSettings() interface below. virtual void SetPreferences(const WebPreferences& preferences) = 0; virtual const WebPreferences& GetPreferences() = 0; + // Gets a WebSettings object that can be used to modify the behavior of this + // WebView. The object is deleted by this class on destruction, so you must + // not use it beyond WebView's lifetime. + virtual WebKit::WebSettings* GetSettings() = 0; + // Set the encoding of the current main frame. The value comes from // the encoding menu. WebKit uses the function named // SetCustomTextEncodingName to do override encoding job. |