Fix Mac OS X compile errors due to Chromium 69409 update.

git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@153 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt
2010-12-20 14:50:07 +00:00
parent 3cd3a35f10
commit 998d11188f
4 changed files with 13 additions and 13 deletions

View File

@@ -3,6 +3,7 @@
// be found in the LICENSE file.
#include "../include/cef.h"
#include "base/utf_string_conversions.h"
#include "webkit/glue/webpreferences.h"
void BrowserToWebSettings(const CefBrowserSettings& cef, WebPreferences& web)
@@ -10,22 +11,22 @@ void BrowserToWebSettings(const CefBrowserSettings& cef, WebPreferences& web)
if (cef.standard_font_family.length > 0)
web.standard_font_family = CefString(&cef.standard_font_family);
else
web.standard_font_family = L"Times";
web.standard_font_family = ASCIIToUTF16("Times");
if (cef.fixed_font_family.length > 0)
web.fixed_font_family = CefString(&cef.fixed_font_family);
else
web.fixed_font_family = L"Courier";
web.fixed_font_family = ASCIIToUTF16("Courier");
if (cef.serif_font_family.length > 0)
web.serif_font_family = CefString(&cef.serif_font_family);
else
web.serif_font_family = L"Times";
web.serif_font_family = ASCIIToUTF16("Times");
if (cef.sans_serif_font_family.length > 0)
web.sans_serif_font_family = CefString(&cef.sans_serif_font_family);
else
web.sans_serif_font_family = L"Helvetica";
web.sans_serif_font_family = ASCIIToUTF16("Helvetica");
// These two fonts below are picked from the intersection of
// Win XP font list and Vista font list :
@@ -42,9 +43,9 @@ void BrowserToWebSettings(const CefBrowserSettings& cef, WebPreferences& web)
web.cursive_font_family = CefString(&cef.cursive_font_family);
} else {
#if defined(OS_MACOSX)
web.cursive_font_family = L"Apple Chancery";
web.cursive_font_family = ASCIIToUTF16("Apple Chancery");
#else
web.cursive_font_family = L"Comic Sans MS";
web.cursive_font_family = ASCIIToUTF16("Comic Sans MS");
#endif
}
@@ -52,9 +53,9 @@ void BrowserToWebSettings(const CefBrowserSettings& cef, WebPreferences& web)
web.fantasy_font_family = CefString(&cef.fantasy_font_family);
} else {
#if defined(OS_MACOSX)
web.fantasy_font_family = L"Papyrus";
web.fantasy_font_family = ASCIIToUTF16("Papyrus");
#else
web.fantasy_font_family = L"Impact";
web.fantasy_font_family = ASCIIToUTF16("Impact");
#endif
}