Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(452)

Side by Side Diff: webkit/glue/webview.h

Issue 192017: Convert std::wstring encoding names to std::string in a bunch of files. (Closed)
Patch Set: mac and linux fixes Created 11 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webkit/glue/webpreferences.cc ('k') | webkit/glue/webview_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WEBKIT_GLUE_WEBVIEW_H_ 5 #ifndef WEBKIT_GLUE_WEBVIEW_H_
6 #define WEBKIT_GLUE_WEBVIEW_H_ 6 #define WEBKIT_GLUE_WEBVIEW_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 // not use it beyond WebView's lifetime. 149 // not use it beyond WebView's lifetime.
150 virtual WebKit::WebSettings* GetSettings() = 0; 150 virtual WebKit::WebSettings* GetSettings() = 0;
151 151
152 // Settings used by inspector. 152 // Settings used by inspector.
153 virtual const std::wstring& GetInspectorSettings() const = 0; 153 virtual const std::wstring& GetInspectorSettings() const = 0;
154 virtual void SetInspectorSettings(const std::wstring& settings) = 0; 154 virtual void SetInspectorSettings(const std::wstring& settings) = 0;
155 155
156 // Set the encoding of the current main frame. The value comes from 156 // Set the encoding of the current main frame. The value comes from
157 // the encoding menu. WebKit uses the function named 157 // the encoding menu. WebKit uses the function named
158 // SetCustomTextEncodingName to do override encoding job. 158 // SetCustomTextEncodingName to do override encoding job.
159 virtual void SetPageEncoding(const std::wstring& encoding_name) = 0; 159 virtual void SetPageEncoding(const std::string& encoding_name) = 0;
160 160
161 // Return the canonical encoding name of current main webframe in webview. 161 // Return the canonical encoding name of current main webframe in webview.
162 virtual std::wstring GetMainFrameEncodingName() = 0; 162 virtual std::string GetMainFrameEncodingName() = 0;
163 163
164 // Change the text zoom level. It will make the zoom level 20% larger or 164 // Change the text zoom level. It will make the zoom level 20% larger or
165 // smaller. If text_only is set, the text size will be changed. When unset, 165 // smaller. If text_only is set, the text size will be changed. When unset,
166 // the entire page's zoom factor will be changed. 166 // the entire page's zoom factor will be changed.
167 // 167 //
168 // You can only have either text zoom or full page zoom at one time. Changing 168 // You can only have either text zoom or full page zoom at one time. Changing
169 // the mode will change things in weird ways. Generally the app should only 169 // the mode will change things in weird ways. Generally the app should only
170 // support text zoom or full page zoom, and not both. 170 // support text zoom or full page zoom, and not both.
171 // 171 //
172 // ResetZoom will reset both full page and text zoom. 172 // ResetZoom will reset both full page and text zoom.
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 258
259 #if defined(OS_LINUX) 259 #if defined(OS_LINUX)
260 virtual void SetThemeFocusRingColor(int r, int g, int b) = 0; 260 virtual void SetThemeFocusRingColor(int r, int g, int b) = 0;
261 #endif 261 #endif
262 262
263 private: 263 private:
264 DISALLOW_COPY_AND_ASSIGN(WebView); 264 DISALLOW_COPY_AND_ASSIGN(WebView);
265 }; 265 };
266 266
267 #endif // WEBKIT_GLUE_WEBVIEW_H_ 267 #endif // WEBKIT_GLUE_WEBVIEW_H_
OLDNEW
« no previous file with comments | « webkit/glue/webpreferences.cc ('k') | webkit/glue/webview_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698