]> git.sesse.net Git - casparcg/blob - dependencies64/cef/linux/libcef_dll/ctocpp/value_ctocpp.h
24b6e3a3e8f17edfbe965e9a8b2da3a4e06181ec
[casparcg] / dependencies64 / cef / linux / libcef_dll / ctocpp / value_ctocpp.h
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.
4 //
5 // ---------------------------------------------------------------------------
6 //
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.
11 //
12
13 #ifndef CEF_LIBCEF_DLL_CTOCPP_VALUE_CTOCPP_H_
14 #define CEF_LIBCEF_DLL_CTOCPP_VALUE_CTOCPP_H_
15 #pragma once
16
17 #if !defined(WRAPPING_CEF_SHARED)
18 #error This file can be included wrapper-side only
19 #endif
20
21 #include "include/cef_values.h"
22 #include "include/capi/cef_values_capi.h"
23 #include "libcef_dll/ctocpp/ctocpp_ref_counted.h"
24
25 // Wrap a C structure with a C++ class.
26 // This class may be instantiated and accessed wrapper-side only.
27 class CefValueCToCpp
28     : public CefCToCppRefCounted<CefValueCToCpp, CefValue, cef_value_t> {
29  public:
30   CefValueCToCpp();
31
32   // CefValue methods.
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;
55 };
56
57 #endif  // CEF_LIBCEF_DLL_CTOCPP_VALUE_CTOCPP_H_