# Copyright (c) 2012-2014 The CEF Python authors. All rights reserved.
# License: New BSD License.
# Website: http://code.google.com/p/cefpython/
include "compile_time_constants.pxi"
from libcpp cimport bool as cpp_bool
# noinspection PyUnresolvedReferences
from libc.stddef cimport wchar_t
from cef_string cimport cef_string_t
# noinspection PyUnresolvedReferences
from libc.limits cimport UINT_MAX
cdef extern from "include/internal/cef_types.h":
ctypedef unsigned int uint32
ctypedef int int32
ctypedef long long int64
ctypedef unsigned long long uint64
IF UNAME_SYSNAME == "Windows":
# noinspection PyUnresolvedReferences
ctypedef wchar_t char16
ELSE:
ctypedef unsigned short char16
ctypedef uint32 cef_color_t
ctypedef struct CefSettings:
cef_string_t accept_language_list
int single_process
cef_string_t browser_subprocess_path
int command_line_args_disabled
cef_string_t cache_path
int enable_net_security_expiration
int persist_session_cookies
cef_string_t user_agent
cef_string_t product_version
cef_string_t locale
cef_string_t log_file
int log_severity
int multi_threaded_message_loop
cef_string_t javascript_flags
cef_string_t resources_dir_path
cef_string_t locales_dir_path
int pack_loading_disabled
int remote_debugging_port
int uncaught_exception_stack_size
int context_safety_implementation # Not exposed.
int ignore_certificate_errors
cef_color_t background_color
int persist_user_preferences
cef_string_t user_data_path
int windowless_rendering_enabled
int no_sandbox
int external_message_pump
ctypedef struct CefBrowserSettings:
cef_string_t accept_language_list
cef_color_t background_color
cef_string_t standard_font_family
cef_string_t fixed_font_family
cef_string_t serif_font_family
cef_string_t sans_serif_font_family
cef_string_t cursive_font_family
cef_string_t fantasy_font_family
int default_font_size
int default_fixed_font_size
int minimum_font_size
int minimum_logical_font_size
cef_string_t default_encoding
cef_state_t remote_fonts
cef_state_t javascript
cef_state_t javascript_open_windows
cef_state_t javascript_close_windows
cef_state_t javascript_access_clipboard
cef_state_t javascript_dom_paste
cef_state_t caret_browsing
cef_state_t plugins
cef_state_t universal_access_from_file_urls
cef_state_t file_access_from_file_urls
cef_state_t web_security
cef_state_t image_loading
cef_state_t image_shrink_standalone_to_fit
cef_state_t text_area_resize
cef_state_t tab_to_links
cef_state_t local_storage
cef_state_t databases
cef_state_t application_cache
cef_state_t webgl
int windowless_frame_rate
cdef cppclass CefRect:
int x, y, width, height
CefRect()
CefRect(int x, int y, int width, int height)
cdef cppclass CefPoint:
pass
ctypedef struct CefRequestContextSettings:
pass
ctypedef enum cef_log_severity_t:
LOGSEVERITY_DEFAULT,
LOGSEVERITY_VERBOSE,
LOGSEVERITY_INFO,
LOGSEVERITY_WARNING,
LOGSEVERITY_ERROR,
LOGSEVERITY_DISABLE = 99,
ctypedef enum cef_thread_id_t:
TID_UI,
TID_DB,
TID_FILE,
TID_FILE_USER_BLOCKING,
TID_PROCESS_LAUNCHER,
TID_CACHE,
TID_IO,
TID_RENDERER
ctypedef enum cef_v8_propertyattribute_t:
V8_PROPERTY_ATTRIBUTE_NONE = 0, # Writeable, Enumerable,
# Configurable
V8_PROPERTY_ATTRIBUTE_READONLY = 1