- Add a CefV8Context object and CefV8Value::ExecuteFunctionWithContext method to support asynchronous V8 ExecuteFunction callbacks.
- Add a CefFrame::GetBrowser() method.
- Ensure that V8 types are only referenced on the UI thread.
- Accept a empty |object| parameter to CefV8Value::ExecuteFunction.

git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@188 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt
2011-02-21 22:44:06 +00:00
parent 42846e6e31
commit 06a6f0ce7c
20 changed files with 1337 additions and 336 deletions

View File

@@ -10,6 +10,7 @@
// tools directory for more information.
//
#include "libcef_dll/ctocpp/browser_ctocpp.h"
#include "libcef_dll/ctocpp/frame_ctocpp.h"
#include "libcef_dll/ctocpp/request_ctocpp.h"
#include "libcef_dll/ctocpp/stream_reader_ctocpp.h"
@@ -193,6 +194,19 @@ CefString CefFrameCToCpp::GetURL()
return str;
}
CefRefPtr<CefBrowser> CefFrameCToCpp::GetBrowser()
{
CefRefPtr<CefBrowser> browser;
if(CEF_MEMBER_MISSING(struct_, get_browser))
return browser;
cef_browser_t* browserStruct = struct_->get_browser(struct_);
if(browserStruct)
return CefBrowserCToCpp::Wrap(browserStruct);
return browser;
}
#ifdef _DEBUG
template<> long CefCToCpp<CefFrameCToCpp, CefFrame, cef_frame_t>::DebugObjCt =