diff options
author | darin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-02 23:24:06 +0000 |
---|---|---|
committer | darin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-02 23:24:06 +0000 |
commit | f499e170777ed789fbe58f6697e3b5a46fa8deda (patch) | |
tree | 439601b6410c9cb2367644714ced54f1a742f911 /webkit/glue/glue_util.cc | |
parent | 9a0737126e932380b53a2c1dda5364f67871f1f7 (diff) | |
download | chromium_src-f499e170777ed789fbe58f6697e3b5a46fa8deda.zip chromium_src-f499e170777ed789fbe58f6697e3b5a46fa8deda.tar.gz chromium_src-f499e170777ed789fbe58f6697e3b5a46fa8deda.tar.bz2 |
Minor cleanup in webkit/glue:
- created dom_operations_private.h for things that mention WebCore types
that are only needed within webkit/glue.
- moved contents of webkit_glue.h to the right locations.
- moved FilePath::StringType <-> WebString conversion out of glue_util
into webkit_glue since it is part of the public API.
- minimized includes in webkit_glue.h
R=dglazkov
Review URL: http://codereview.chromium.org/27351
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10747 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/glue_util.cc')
-rw-r--r-- | webkit/glue/glue_util.cc | 20 |
1 files changed, 4 insertions, 16 deletions
diff --git a/webkit/glue/glue_util.cc b/webkit/glue/glue_util.cc index 359eb40..be96a7c 100644 --- a/webkit/glue/glue_util.cc +++ b/webkit/glue/glue_util.cc @@ -27,6 +27,10 @@ MSVC_POP_WARNING(); #include "googleurl/src/gurl.h" +// TODO(darin): This file will be deleted once we complete the move to +// third_party/WebKit/WebKit/chromium + + namespace webkit_glue { // String conversions ---------------------------------------------------------- @@ -99,22 +103,6 @@ WebCore::String FilePathStringToString(const FilePath::StringType& str) { #endif } -FilePath::StringType WebStringToFilePathString(const WebKit::WebString& str) { -#if defined(OS_POSIX) - return base::SysWideToNativeMB(UTF16ToWide(str)); -#elif defined(OS_WIN) - return UTF16ToWide(str); -#endif -} - -WebKit::WebString FilePathStringToWebString(const FilePath::StringType& str) { -#if defined(OS_POSIX) - return WideToUTF16(base::SysNativeMBToWide(str)); -#elif defined(OS_WIN) - return WideToUTF16(str); -#endif -} - // URL conversions ------------------------------------------------------------- GURL KURLToGURL(const WebCore::KURL& url) { |