Improve inheritance support in the CEF API (issue #1623).

- Support single parent inheritance in CEF API classes.
- Support non-virtual inheritance in CEF API classes.
- Support translation of CEF API sub-directories.
- Add test sub-directories for testing-only functionality that will be
  available to unit tests but not exposed via the binary distribution.
- Add unit tests for the translator tool.
- Fix parsing of template parameter types that include commas.
This commit is contained in:
Marshall Greenblatt
2015-04-26 21:40:01 +03:00
parent 4715a1644e
commit 616fdbf3ff
408 changed files with 13269 additions and 4680 deletions

View File

@@ -27,34 +27,32 @@
class CefValueCToCpp
: public CefCToCpp<CefValueCToCpp, CefValue, cef_value_t> {
public:
explicit CefValueCToCpp(cef_value_t* str)
: CefCToCpp<CefValueCToCpp, CefValue, cef_value_t>(str) {}
CefValueCToCpp();
// CefValue methods
virtual bool IsValid() OVERRIDE;
virtual bool IsOwned() OVERRIDE;
virtual bool IsReadOnly() OVERRIDE;
virtual bool IsSame(CefRefPtr<CefValue> that) OVERRIDE;
virtual bool IsEqual(CefRefPtr<CefValue> that) OVERRIDE;
virtual CefRefPtr<CefValue> Copy() OVERRIDE;
virtual CefValueType GetType() OVERRIDE;
virtual bool GetBool() OVERRIDE;
virtual int GetInt() OVERRIDE;
virtual double GetDouble() OVERRIDE;
virtual CefString GetString() OVERRIDE;
virtual CefRefPtr<CefBinaryValue> GetBinary() OVERRIDE;
virtual CefRefPtr<CefDictionaryValue> GetDictionary() OVERRIDE;
virtual CefRefPtr<CefListValue> GetList() OVERRIDE;
virtual bool SetNull() OVERRIDE;
virtual bool SetBool(bool value) OVERRIDE;
virtual bool SetInt(int value) OVERRIDE;
virtual bool SetDouble(double value) OVERRIDE;
virtual bool SetString(const CefString& value) OVERRIDE;
virtual bool SetBinary(CefRefPtr<CefBinaryValue> value) OVERRIDE;
virtual bool SetDictionary(CefRefPtr<CefDictionaryValue> value) OVERRIDE;
virtual bool SetList(CefRefPtr<CefListValue> value) OVERRIDE;
// CefValue methods.
bool IsValid() OVERRIDE;
bool IsOwned() OVERRIDE;
bool IsReadOnly() OVERRIDE;
bool IsSame(CefRefPtr<CefValue> that) OVERRIDE;
bool IsEqual(CefRefPtr<CefValue> that) OVERRIDE;
CefRefPtr<CefValue> Copy() OVERRIDE;
CefValueType GetType() OVERRIDE;
bool GetBool() OVERRIDE;
int GetInt() OVERRIDE;
double GetDouble() OVERRIDE;
CefString GetString() OVERRIDE;
CefRefPtr<CefBinaryValue> GetBinary() OVERRIDE;
CefRefPtr<CefDictionaryValue> GetDictionary() OVERRIDE;
CefRefPtr<CefListValue> GetList() OVERRIDE;
bool SetNull() OVERRIDE;
bool SetBool(bool value) OVERRIDE;
bool SetInt(int value) OVERRIDE;
bool SetDouble(double value) OVERRIDE;
bool SetString(const CefString& value) OVERRIDE;
bool SetBinary(CefRefPtr<CefBinaryValue> value) OVERRIDE;
bool SetDictionary(CefRefPtr<CefDictionaryValue> value) OVERRIDE;
bool SetList(CefRefPtr<CefListValue> value) OVERRIDE;
};
#endif // USING_CEF_SHARED
#endif // CEF_LIBCEF_DLL_CTOCPP_VALUE_CTOCPP_H_