|
| 1 | +# Copyright (c) 2012-2013 The CEF Python authors. All rights reserved. |
| 2 | +# License: New BSD License. |
| 3 | +# Website: http://code.google.com/p/cefpython/ |
| 4 | + |
| 5 | +from cef_ptr cimport CefRefPtr |
| 6 | +from libcpp cimport bool as cpp_bool |
| 7 | +from cef_string cimport CefString |
| 8 | +from libcpp.vector cimport vector |
| 9 | +from cef_types cimport cef_value_type_t |
| 10 | + |
| 11 | +cdef extern from "include/cef_values.h": |
| 12 | + CefRefPtr[CefDictionaryValue] CefDictionaryValue_Create "CefDictionaryValue::Create"() |
| 13 | + CefRefPtr[CefListValue] CefListValue_Create "CefListValue::Create"() |
| 14 | + |
| 15 | +cdef extern from "include/cef_values.h": |
| 16 | + cdef cppclass CefBinaryValue: |
| 17 | + pass |
| 18 | + |
| 19 | + cdef cppclass CefDictionaryValue: |
| 20 | + cpp_bool IsValid() |
| 21 | + cpp_bool IsOwned() |
| 22 | + cpp_bool IsReadOnly() |
| 23 | + CefRefPtr[CefDictionaryValue] Copy(cpp_bool exclude_empty_children) |
| 24 | + size_t GetSize() |
| 25 | + cpp_bool Clear() |
| 26 | + cpp_bool HasKey(const CefString& key) |
| 27 | + cpp_bool GetKeys(vector[CefString]& keys) |
| 28 | + cpp_bool Remove(const CefString& key) |
| 29 | + cef_value_type_t GetType(const CefString& key) |
| 30 | + cpp_bool GetBool(const CefString& key) |
| 31 | + int GetInt(const CefString& key) |
| 32 | + double GetDouble(const CefString& key) |
| 33 | + CefString GetString(const CefString& key) |
| 34 | + CefRefPtr[CefBinaryValue] GetBinary(const CefString& key) |
| 35 | + CefRefPtr[CefDictionaryValue] GetDictionary(const CefString& key) |
| 36 | + CefRefPtr[CefListValue] GetList(const CefString& key) |
| 37 | + cpp_bool SetNull(const CefString& key) |
| 38 | + cpp_bool SetBool(const CefString& key, cpp_bool value) |
| 39 | + cpp_bool SetInt(const CefString& key, int value) |
| 40 | + cpp_bool SetDouble(const CefString& key, double value) |
| 41 | + cpp_bool SetString(const CefString& key, const CefString& value) |
| 42 | + cpp_bool SetBinary(const CefString& key, CefRefPtr[CefBinaryValue] value) |
| 43 | + cpp_bool SetDictionary(const CefString& key, CefRefPtr[CefDictionaryValue] value) |
| 44 | + cpp_bool SetList(const CefString& key, CefRefPtr[CefListValue] value) |
| 45 | + |
| 46 | + cdef cppclass CefListValue: |
| 47 | + cpp_bool IsValid() |
| 48 | + cpp_bool IsOwned() |
| 49 | + cpp_bool IsReadOnly() |
| 50 | + CefRefPtr[CefListValue] Copy() |
| 51 | + cpp_bool SetSize(size_t size) |
| 52 | + size_t GetSize() |
| 53 | + cpp_bool Clear() |
| 54 | + cpp_bool Remove(int index) |
| 55 | + cef_value_type_t GetType(int index) |
| 56 | + cpp_bool GetBool(int index) |
| 57 | + int GetInt(int index) |
| 58 | + double GetDouble(int index) |
| 59 | + CefString GetString(int index) |
| 60 | + CefRefPtr[CefBinaryValue] GetBinary(int index) |
| 61 | + CefRefPtr[CefDictionaryValue] GetDictionary(int index) |
| 62 | + CefRefPtr[CefListValue] GetList(int index) |
| 63 | + cpp_bool SetNull(int index) |
| 64 | + cpp_bool SetBool(int index, cpp_bool value) |
| 65 | + cpp_bool SetInt(int index, int value) |
| 66 | + cpp_bool SetDouble(int index, double value) |
| 67 | + cpp_bool SetString(int index, const CefString& value) |
| 68 | + cpp_bool SetBinary(int index, CefRefPtr[CefBinaryValue] value) |
| 69 | + cpp_bool SetDictionary(int index, CefRefPtr[CefDictionaryValue] value) |
| 70 | + cpp_bool SetList(int index, CefRefPtr[CefListValue] value) |
0 commit comments