1 // Copyright (c) 2017 The Chromium Embedded Framework Authors. All rights
2 // reserved. Use of this source code is governed by a BSD-style license that
3 // can be found in the LICENSE file.
5 // ---------------------------------------------------------------------------
7 // This file was generated by the CEF translator tool. If making changes by
8 // hand only do so within the body of existing method and function
9 // implementations. See the translator.README.txt file in the tools directory
10 // for more information.
13 #ifndef CEF_LIBCEF_DLL_CTOCPP_VALUE_CTOCPP_H_
14 #define CEF_LIBCEF_DLL_CTOCPP_VALUE_CTOCPP_H_
17 #if !defined(WRAPPING_CEF_SHARED)
18 #error This file can be included wrapper-side only
21 #include "include/cef_values.h"
22 #include "include/capi/cef_values_capi.h"
23 #include "libcef_dll/ctocpp/ctocpp_ref_counted.h"
25 // Wrap a C structure with a C++ class.
26 // This class may be instantiated and accessed wrapper-side only.
28 : public CefCToCppRefCounted<CefValueCToCpp, CefValue, cef_value_t> {
33 bool IsValid() OVERRIDE;
34 bool IsOwned() OVERRIDE;
35 bool IsReadOnly() OVERRIDE;
36 bool IsSame(CefRefPtr<CefValue> that) OVERRIDE;
37 bool IsEqual(CefRefPtr<CefValue> that) OVERRIDE;
38 CefRefPtr<CefValue> Copy() OVERRIDE;
39 CefValueType GetType() OVERRIDE;
40 bool GetBool() OVERRIDE;
41 int GetInt() OVERRIDE;
42 double GetDouble() OVERRIDE;
43 CefString GetString() OVERRIDE;
44 CefRefPtr<CefBinaryValue> GetBinary() OVERRIDE;
45 CefRefPtr<CefDictionaryValue> GetDictionary() OVERRIDE;
46 CefRefPtr<CefListValue> GetList() OVERRIDE;
47 bool SetNull() OVERRIDE;
48 bool SetBool(bool value) OVERRIDE;
49 bool SetInt(int value) OVERRIDE;
50 bool SetDouble(double value) OVERRIDE;
51 bool SetString(const CefString& value) OVERRIDE;
52 bool SetBinary(CefRefPtr<CefBinaryValue> value) OVERRIDE;
53 bool SetDictionary(CefRefPtr<CefDictionaryValue> value) OVERRIDE;
54 bool SetList(CefRefPtr<CefListValue> value) OVERRIDE;
57 #endif // CEF_LIBCEF_DLL_CTOCPP_VALUE_CTOCPP_H_