mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
- Move frame-related methods from CefBrowser into a new CefFrame class.
- Add CefBrowser::Get*Frame() methods for retrieving the appropriate CefFrame instance. - Add a CefFrame attribute to CefHandler callback methods where appropriate. - Add support for V8 JavaScript extensions and values via CefV8Value and CefV8Handler. Native C++ and user-defined JavaScript object hierarchies may now be created and accessed using the CEF API. - Remove the CefHandler and CefVariant classes and related CefBrowser methods that have been obsoleted by the addition of CEF V8 support. - Add the CefRegisterExtension() function for registering system-wide V8 extensions. - Add the CefHandler::HandleJSBinding() callback method for attaching V8 values to the global frame JavaScript object. This method replaces the previous technique of calling CefBrowser::AddJSHandler(). - Add new wrapper template methods for simplifying DLL wrapper implementations. - Move cef_string* files from libcef_dll to libcef so that projects can link libcef statically without errors. - Fix crashes when CEF exits due to object constructors being executed on non-UI threads if the application is closed while a page is still loading. - Update the cefclient project to reflect changes and demonstrate the new APIs. git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@26 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@@ -16,18 +16,17 @@
|
||||
|
||||
// Wrap a C request structure with a C++ request class.
|
||||
// This class may be instantiated and accessed wrapper-side only.
|
||||
class CefRequestCToCpp : public CefCToCpp<CefRequest, cef_request_t>
|
||||
class CefRequestCToCpp
|
||||
: public CefCToCpp<CefRequestCToCpp, CefRequest, cef_request_t>
|
||||
{
|
||||
public:
|
||||
CefRequestCToCpp(cef_request_t* str)
|
||||
: CefCToCpp<CefRequest, cef_request_t>(str) {}
|
||||
: CefCToCpp<CefRequestCToCpp, CefRequest, cef_request_t>(str) {}
|
||||
virtual ~CefRequestCToCpp() {}
|
||||
|
||||
// CefRequest methods
|
||||
virtual std::wstring GetURL();
|
||||
virtual void SetURL(const std::wstring& url);
|
||||
virtual std::wstring GetFrame();
|
||||
virtual void SetFrame(const std::wstring& url);
|
||||
virtual std::wstring GetMethod();
|
||||
virtual void SetMethod(const std::wstring& method);
|
||||
virtual CefRefPtr<CefPostData> GetPostData();
|
||||
@@ -35,7 +34,6 @@ public:
|
||||
virtual void GetHeaderMap(HeaderMap& headerMap);
|
||||
virtual void SetHeaderMap(const HeaderMap& headerMap);
|
||||
virtual void Set(const std::wstring& url,
|
||||
const std::wstring& frame,
|
||||
const std::wstring& method,
|
||||
CefRefPtr<CefPostData> postData,
|
||||
const HeaderMap& headerMap);
|
||||
@@ -44,11 +42,12 @@ public:
|
||||
|
||||
// Wrap a C post data structure with a C++ post data class.
|
||||
// This class may be instantiated and accessed wrapper-side only.
|
||||
class CefPostDataCToCpp : public CefCToCpp<CefPostData, cef_post_data_t>
|
||||
class CefPostDataCToCpp
|
||||
: public CefCToCpp<CefPostDataCToCpp, CefPostData, cef_post_data_t>
|
||||
{
|
||||
public:
|
||||
CefPostDataCToCpp(cef_post_data_t* str)
|
||||
: CefCToCpp<CefPostData, cef_post_data_t>(str) {}
|
||||
: CefCToCpp<CefPostDataCToCpp, CefPostData, cef_post_data_t>(str) {}
|
||||
virtual ~CefPostDataCToCpp() {}
|
||||
|
||||
// CefPostData methods
|
||||
@@ -62,12 +61,14 @@ public:
|
||||
|
||||
// Wrap a C post data element structure with a C++ post data element class.
|
||||
// This class may be instantiated and accessed wrapper-side only.
|
||||
class CefPostDataElementCToCpp :
|
||||
public CefCToCpp<CefPostDataElement, cef_post_data_element_t>
|
||||
class CefPostDataElementCToCpp
|
||||
: public CefCToCpp<CefPostDataElementCToCpp, CefPostDataElement,
|
||||
cef_post_data_element_t>
|
||||
{
|
||||
public:
|
||||
CefPostDataElementCToCpp(cef_post_data_element_t* str)
|
||||
: CefCToCpp<CefPostDataElement, cef_post_data_element_t>(str) {}
|
||||
: CefCToCpp<CefPostDataElementCToCpp, CefPostDataElement,
|
||||
cef_post_data_element_t>(str) {}
|
||||
virtual ~CefPostDataElementCToCpp() {}
|
||||
|
||||
// CefPostDataElement methods
|
||||
|
Reference in New Issue
Block a user