- Complete basic functionality in libcef.
- Port cefclient and unittests.

git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@135 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt
2010-11-15 15:39:56 +00:00
parent 54e0a2db9a
commit c629ac966f
40 changed files with 931 additions and 216 deletions

View File

@ -175,14 +175,24 @@ CefHandler::RetVal ClientHandler::HandleConsoleMessage(
bool first_message = m_LogFile.empty();
if(first_message) {
std::wstringstream ss;
ss << AppGetWorkingDirectory() << L"\\console.log";
ss << AppGetWorkingDirectory();
#ifdef _WIN32
ss << L"\\";
#else
ss << L"/";
#endif
ss << L"console.log";
m_LogFile = ss.str();
}
std::wstring logFile = m_LogFile;
Unlock();
FILE* file = NULL;
#ifdef _WIN32
_wfopen_s(&file, logFile.c_str(), L"a, ccs=UTF-8");
#else
file = fopen(WStringToString(logFile).c_str(), "a");
#endif
if(file) {
std::wstringstream ss;