mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Add support for native creation and resolution of Promises (fixes issue #3305)
This commit is contained in:
committed by
Marshall Greenblatt
parent
60ee4a34aa
commit
fa643b269e
@@ -9,7 +9,7 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=012bb9108d28ddefb6ebc58963be24469b79146f$
|
||||
// $hash=ee45dceec69f21be7a17e0c10ed15b29f28e63ec$
|
||||
//
|
||||
|
||||
#ifndef CEF_LIBCEF_DLL_CTOCPP_V8VALUE_CTOCPP_H_
|
||||
@@ -47,6 +47,7 @@ class CefV8ValueCToCpp
|
||||
bool IsArray() override;
|
||||
bool IsArrayBuffer() override;
|
||||
bool IsFunction() override;
|
||||
bool IsPromise() override;
|
||||
bool IsSame(CefRefPtr<CefV8Value> that) override;
|
||||
bool GetBoolValue() override;
|
||||
int32 GetIntValue() override;
|
||||
@@ -91,6 +92,8 @@ class CefV8ValueCToCpp
|
||||
CefRefPtr<CefV8Context> context,
|
||||
CefRefPtr<CefV8Value> object,
|
||||
const CefV8ValueList& arguments) override;
|
||||
bool ResolvePromise(CefRefPtr<CefV8Value> arg) override;
|
||||
bool RejectPromise(const CefString& errorMsg) override;
|
||||
};
|
||||
|
||||
#endif // CEF_LIBCEF_DLL_CTOCPP_V8VALUE_CTOCPP_H_
|
||||
|
Reference in New Issue
Block a user