mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Issue #188:
- 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:
@@ -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 =
|
||||
|
Reference in New Issue
Block a user