From e38f40150dac6e0af08e3cdcfb1e502a2223c87c Mon Sep 17 00:00:00 2001 From: "brettw@google.com" Date: Fri, 12 Sep 2008 23:08:30 +0000 Subject: Revert the change that fixed the encoding when viewing source in subframes. This makes view source for some pages (for example Google Reader) not work properly. I speculate that telling WebKit to change the encoding (which causes a reload) right after starting the real load makes it confused. Review URL: http://codereview.chromium.org/3022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2143 0039d316-1c4b-4281-b951-d872f2087c98 --- webkit/glue/webview.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'webkit/glue/webview.h') diff --git a/webkit/glue/webview.h b/webkit/glue/webview.h index bbb13f1..bd13a701 100644 --- a/webkit/glue/webview.h +++ b/webkit/glue/webview.h @@ -144,10 +144,10 @@ class WebView : public WebWidget { // 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. - virtual void SetPageEncoding(const std::string& encoding_name) = 0; + virtual void SetPageEncoding(const std::wstring& encoding_name) = 0; // Return the canonical encoding name of current main webframe in webview. - virtual std::string GetMainFrameEncodingName() = 0; + virtual std::wstring GetMainFrameEncodingName() = 0; // Change the text zoom level. Text size is made 20% larger or smaller. virtual void MakeTextLarger() = 0; -- cgit v1.1