├── .gitattributes ├── .gitignore ├── LICENSE ├── authors.txt ├── cef ├── LICENSE.txt ├── README.txt ├── Resources │ ├── cef.pak │ ├── devtools_resources.pak │ └── locales │ │ ├── am.pak │ │ ├── ar.pak │ │ ├── bg.pak │ │ ├── bn.pak │ │ ├── ca.pak │ │ ├── cs.pak │ │ ├── da.pak │ │ ├── de.pak │ │ ├── el.pak │ │ ├── en-GB.pak │ │ ├── en-US.pak │ │ ├── es-419.pak │ │ ├── es.pak │ │ ├── et.pak │ │ ├── fa.pak │ │ ├── fi.pak │ │ ├── fil.pak │ │ ├── fr.pak │ │ ├── gu.pak │ │ ├── he.pak │ │ ├── hi.pak │ │ ├── hr.pak │ │ ├── hu.pak │ │ ├── id.pak │ │ ├── it.pak │ │ ├── ja.pak │ │ ├── kn.pak │ │ ├── ko.pak │ │ ├── lt.pak │ │ ├── lv.pak │ │ ├── ml.pak │ │ ├── mr.pak │ │ ├── ms.pak │ │ ├── nb.pak │ │ ├── nl.pak │ │ ├── pl.pak │ │ ├── pt-BR.pak │ │ ├── pt-PT.pak │ │ ├── ro.pak │ │ ├── ru.pak │ │ ├── sk.pak │ │ ├── sl.pak │ │ ├── sr.pak │ │ ├── sv.pak │ │ ├── sw.pak │ │ ├── ta.pak │ │ ├── te.pak │ │ ├── th.pak │ │ ├── tr.pak │ │ ├── uk.pak │ │ ├── vi.pak │ │ ├── zh-CN.pak │ │ └── zh-TW.pak ├── cefclient.vcxproj ├── cefclient.vcxproj.filters ├── cefclient │ ├── README-TRANSFER.txt │ ├── binding_test.cpp │ ├── binding_test.h │ ├── cefclient.cpp │ ├── cefclient.exe.manifest │ ├── cefclient.h │ ├── cefclient.rc │ ├── cefclient_osr_widget_win.cpp │ ├── cefclient_osr_widget_win.h │ ├── cefclient_win.cpp │ ├── client_app.cpp │ ├── client_app.h │ ├── client_app_delegates.cpp │ ├── client_handler.cpp │ ├── client_handler.h │ ├── client_handler_win.cpp │ ├── client_renderer.cpp │ ├── client_renderer.h │ ├── client_switches.cpp │ ├── client_switches.h │ ├── compatibility.manifest │ ├── dialog_test.cpp │ ├── dialog_test.h │ ├── dom_test.cpp │ ├── dom_test.h │ ├── osrenderer.cpp │ ├── osrenderer.h │ ├── performance_test.cpp │ ├── performance_test.h │ ├── performance_test_setup.h │ ├── performance_test_tests.cpp │ ├── res │ │ ├── binding.html │ │ ├── cefclient.ico │ │ ├── dialogs.html │ │ ├── domaccess.html │ │ ├── localstorage.html │ │ ├── logo.png │ │ ├── osr_test.html │ │ ├── other_tests.html │ │ ├── performance.html │ │ ├── performance2.html │ │ ├── small.ico │ │ ├── transparency.html │ │ ├── window.html │ │ └── xmlhttprequest.html │ ├── resource.h │ ├── resource_util.h │ ├── resource_util_win.cpp │ ├── scheme_test.cpp │ ├── scheme_test.h │ ├── string_util.cpp │ ├── string_util.h │ ├── util.h │ ├── window_test.cpp │ ├── window_test.h │ └── window_test_win.cpp ├── cefclient2012.sln ├── include │ ├── capi │ │ ├── cef_app_capi.h │ │ ├── cef_auth_callback_capi.h │ │ ├── cef_base_capi.h │ │ ├── cef_browser_capi.h │ │ ├── cef_browser_process_handler_capi.h │ │ ├── cef_callback_capi.h │ │ ├── cef_client_capi.h │ │ ├── cef_command_line_capi.h │ │ ├── cef_context_menu_handler_capi.h │ │ ├── cef_cookie_capi.h │ │ ├── cef_dialog_handler_capi.h │ │ ├── cef_display_handler_capi.h │ │ ├── cef_dom_capi.h │ │ ├── cef_download_handler_capi.h │ │ ├── cef_download_item_capi.h │ │ ├── cef_drag_data_capi.h │ │ ├── cef_drag_handler_capi.h │ │ ├── cef_focus_handler_capi.h │ │ ├── cef_frame_capi.h │ │ ├── cef_geolocation_capi.h │ │ ├── cef_geolocation_handler_capi.h │ │ ├── cef_jsdialog_handler_capi.h │ │ ├── cef_keyboard_handler_capi.h │ │ ├── cef_life_span_handler_capi.h │ │ ├── cef_load_handler_capi.h │ │ ├── cef_menu_model_capi.h │ │ ├── cef_origin_whitelist_capi.h │ │ ├── cef_path_util_capi.h │ │ ├── cef_process_message_capi.h │ │ ├── cef_process_util_capi.h │ │ ├── cef_render_handler_capi.h │ │ ├── cef_render_process_handler_capi.h │ │ ├── cef_request_capi.h │ │ ├── cef_request_context_capi.h │ │ ├── cef_request_context_handler_capi.h │ │ ├── cef_request_handler_capi.h │ │ ├── cef_resource_bundle_handler_capi.h │ │ ├── cef_resource_handler_capi.h │ │ ├── cef_response_capi.h │ │ ├── cef_scheme_capi.h │ │ ├── cef_stream_capi.h │ │ ├── cef_string_visitor_capi.h │ │ ├── cef_task_capi.h │ │ ├── cef_trace_capi.h │ │ ├── cef_url_capi.h │ │ ├── cef_urlrequest_capi.h │ │ ├── cef_v8_capi.h │ │ ├── cef_values_capi.h │ │ ├── cef_web_plugin_capi.h │ │ ├── cef_xml_reader_capi.h │ │ └── cef_zip_reader_capi.h │ ├── cef_app.h │ ├── cef_auth_callback.h │ ├── cef_base.h │ ├── cef_browser.h │ ├── cef_browser_process_handler.h │ ├── cef_callback.h │ ├── cef_client.h │ ├── cef_command_line.h │ ├── cef_context_menu_handler.h │ ├── cef_cookie.h │ ├── cef_dialog_handler.h │ ├── cef_display_handler.h │ ├── cef_dom.h │ ├── cef_download_handler.h │ ├── cef_download_item.h │ ├── cef_drag_data.h │ ├── cef_drag_handler.h │ ├── cef_focus_handler.h │ ├── cef_frame.h │ ├── cef_geolocation.h │ ├── cef_geolocation_handler.h │ ├── cef_jsdialog_handler.h │ ├── cef_keyboard_handler.h │ ├── cef_life_span_handler.h │ ├── cef_load_handler.h │ ├── cef_menu_model.h │ ├── cef_origin_whitelist.h │ ├── cef_pack_resources.h │ ├── cef_pack_strings.h │ ├── cef_path_util.h │ ├── cef_process_message.h │ ├── cef_process_util.h │ ├── cef_render_handler.h │ ├── cef_render_process_handler.h │ ├── cef_request.h │ ├── cef_request_context.h │ ├── cef_request_context_handler.h │ ├── cef_request_handler.h │ ├── cef_resource_bundle_handler.h │ ├── cef_resource_handler.h │ ├── cef_response.h │ ├── cef_runnable.h │ ├── cef_scheme.h │ ├── cef_stream.h │ ├── cef_string_visitor.h │ ├── cef_task.h │ ├── cef_trace.h │ ├── cef_trace_event.h │ ├── cef_url.h │ ├── cef_urlrequest.h │ ├── cef_v8.h │ ├── cef_values.h │ ├── cef_version.h │ ├── cef_web_plugin.h │ ├── cef_xml_reader.h │ ├── cef_zip_reader.h │ ├── internal │ │ ├── cef_build.h │ │ ├── cef_export.h │ │ ├── cef_ptr.h │ │ ├── cef_string.h │ │ ├── cef_string_list.h │ │ ├── cef_string_map.h │ │ ├── cef_string_multimap.h │ │ ├── cef_string_types.h │ │ ├── cef_string_wrappers.h │ │ ├── cef_time.h │ │ ├── cef_tuple.h │ │ ├── cef_types.h │ │ ├── cef_types_win.h │ │ ├── cef_types_wrappers.h │ │ └── cef_win.h │ └── wrapper │ │ ├── cef_byte_read_handler.h │ │ ├── cef_stream_resource_handler.h │ │ ├── cef_xml_object.h │ │ └── cef_zip_archive.h ├── libcef_dll │ ├── cef_logging.h │ ├── cpptoc │ │ ├── app_cpptoc.cc │ │ ├── app_cpptoc.h │ │ ├── base_cpptoc.h │ │ ├── browser_process_handler_cpptoc.cc │ │ ├── browser_process_handler_cpptoc.h │ │ ├── client_cpptoc.cc │ │ ├── client_cpptoc.h │ │ ├── completion_handler_cpptoc.cc │ │ ├── completion_handler_cpptoc.h │ │ ├── context_menu_handler_cpptoc.cc │ │ ├── context_menu_handler_cpptoc.h │ │ ├── cookie_visitor_cpptoc.cc │ │ ├── cookie_visitor_cpptoc.h │ │ ├── cpptoc.h │ │ ├── dialog_handler_cpptoc.cc │ │ ├── dialog_handler_cpptoc.h │ │ ├── display_handler_cpptoc.cc │ │ ├── display_handler_cpptoc.h │ │ ├── domevent_listener_cpptoc.cc │ │ ├── domevent_listener_cpptoc.h │ │ ├── domvisitor_cpptoc.cc │ │ ├── domvisitor_cpptoc.h │ │ ├── download_handler_cpptoc.cc │ │ ├── download_handler_cpptoc.h │ │ ├── drag_handler_cpptoc.cc │ │ ├── drag_handler_cpptoc.h │ │ ├── focus_handler_cpptoc.cc │ │ ├── focus_handler_cpptoc.h │ │ ├── geolocation_handler_cpptoc.cc │ │ ├── geolocation_handler_cpptoc.h │ │ ├── get_geolocation_callback_cpptoc.cc │ │ ├── get_geolocation_callback_cpptoc.h │ │ ├── jsdialog_handler_cpptoc.cc │ │ ├── jsdialog_handler_cpptoc.h │ │ ├── keyboard_handler_cpptoc.cc │ │ ├── keyboard_handler_cpptoc.h │ │ ├── life_span_handler_cpptoc.cc │ │ ├── life_span_handler_cpptoc.h │ │ ├── load_handler_cpptoc.cc │ │ ├── load_handler_cpptoc.h │ │ ├── read_handler_cpptoc.cc │ │ ├── read_handler_cpptoc.h │ │ ├── render_handler_cpptoc.cc │ │ ├── render_handler_cpptoc.h │ │ ├── render_process_handler_cpptoc.cc │ │ ├── render_process_handler_cpptoc.h │ │ ├── request_context_handler_cpptoc.cc │ │ ├── request_context_handler_cpptoc.h │ │ ├── request_handler_cpptoc.cc │ │ ├── request_handler_cpptoc.h │ │ ├── resource_bundle_handler_cpptoc.cc │ │ ├── resource_bundle_handler_cpptoc.h │ │ ├── resource_handler_cpptoc.cc │ │ ├── resource_handler_cpptoc.h │ │ ├── run_file_dialog_callback_cpptoc.cc │ │ ├── run_file_dialog_callback_cpptoc.h │ │ ├── scheme_handler_factory_cpptoc.cc │ │ ├── scheme_handler_factory_cpptoc.h │ │ ├── string_visitor_cpptoc.cc │ │ ├── string_visitor_cpptoc.h │ │ ├── task_cpptoc.cc │ │ ├── task_cpptoc.h │ │ ├── trace_client_cpptoc.cc │ │ ├── trace_client_cpptoc.h │ │ ├── urlrequest_client_cpptoc.cc │ │ ├── urlrequest_client_cpptoc.h │ │ ├── v8accessor_cpptoc.cc │ │ ├── v8accessor_cpptoc.h │ │ ├── v8handler_cpptoc.cc │ │ ├── v8handler_cpptoc.h │ │ ├── web_plugin_info_visitor_cpptoc.cc │ │ ├── web_plugin_info_visitor_cpptoc.h │ │ ├── web_plugin_unstable_callback_cpptoc.cc │ │ ├── web_plugin_unstable_callback_cpptoc.h │ │ ├── write_handler_cpptoc.cc │ │ └── write_handler_cpptoc.h │ ├── ctocpp │ │ ├── allow_certificate_error_callback_ctocpp.cc │ │ ├── allow_certificate_error_callback_ctocpp.h │ │ ├── auth_callback_ctocpp.cc │ │ ├── auth_callback_ctocpp.h │ │ ├── base_ctocpp.h │ │ ├── before_download_callback_ctocpp.cc │ │ ├── before_download_callback_ctocpp.h │ │ ├── binary_value_ctocpp.cc │ │ ├── binary_value_ctocpp.h │ │ ├── browser_ctocpp.cc │ │ ├── browser_ctocpp.h │ │ ├── browser_host_ctocpp.cc │ │ ├── browser_host_ctocpp.h │ │ ├── callback_ctocpp.cc │ │ ├── callback_ctocpp.h │ │ ├── command_line_ctocpp.cc │ │ ├── command_line_ctocpp.h │ │ ├── context_menu_params_ctocpp.cc │ │ ├── context_menu_params_ctocpp.h │ │ ├── cookie_manager_ctocpp.cc │ │ ├── cookie_manager_ctocpp.h │ │ ├── ctocpp.h │ │ ├── dictionary_value_ctocpp.cc │ │ ├── dictionary_value_ctocpp.h │ │ ├── domdocument_ctocpp.cc │ │ ├── domdocument_ctocpp.h │ │ ├── domevent_ctocpp.cc │ │ ├── domevent_ctocpp.h │ │ ├── domnode_ctocpp.cc │ │ ├── domnode_ctocpp.h │ │ ├── download_item_callback_ctocpp.cc │ │ ├── download_item_callback_ctocpp.h │ │ ├── download_item_ctocpp.cc │ │ ├── download_item_ctocpp.h │ │ ├── drag_data_ctocpp.cc │ │ ├── drag_data_ctocpp.h │ │ ├── file_dialog_callback_ctocpp.cc │ │ ├── file_dialog_callback_ctocpp.h │ │ ├── frame_ctocpp.cc │ │ ├── frame_ctocpp.h │ │ ├── geolocation_callback_ctocpp.cc │ │ ├── geolocation_callback_ctocpp.h │ │ ├── jsdialog_callback_ctocpp.cc │ │ ├── jsdialog_callback_ctocpp.h │ │ ├── list_value_ctocpp.cc │ │ ├── list_value_ctocpp.h │ │ ├── menu_model_ctocpp.cc │ │ ├── menu_model_ctocpp.h │ │ ├── post_data_ctocpp.cc │ │ ├── post_data_ctocpp.h │ │ ├── post_data_element_ctocpp.cc │ │ ├── post_data_element_ctocpp.h │ │ ├── process_message_ctocpp.cc │ │ ├── process_message_ctocpp.h │ │ ├── quota_callback_ctocpp.cc │ │ ├── quota_callback_ctocpp.h │ │ ├── request_context_ctocpp.cc │ │ ├── request_context_ctocpp.h │ │ ├── request_ctocpp.cc │ │ ├── request_ctocpp.h │ │ ├── response_ctocpp.cc │ │ ├── response_ctocpp.h │ │ ├── scheme_registrar_ctocpp.cc │ │ ├── scheme_registrar_ctocpp.h │ │ ├── stream_reader_ctocpp.cc │ │ ├── stream_reader_ctocpp.h │ │ ├── stream_writer_ctocpp.cc │ │ ├── stream_writer_ctocpp.h │ │ ├── task_runner_ctocpp.cc │ │ ├── task_runner_ctocpp.h │ │ ├── urlrequest_ctocpp.cc │ │ ├── urlrequest_ctocpp.h │ │ ├── v8context_ctocpp.cc │ │ ├── v8context_ctocpp.h │ │ ├── v8exception_ctocpp.cc │ │ ├── v8exception_ctocpp.h │ │ ├── v8stack_frame_ctocpp.cc │ │ ├── v8stack_frame_ctocpp.h │ │ ├── v8stack_trace_ctocpp.cc │ │ ├── v8stack_trace_ctocpp.h │ │ ├── v8value_ctocpp.cc │ │ ├── v8value_ctocpp.h │ │ ├── web_plugin_info_ctocpp.cc │ │ ├── web_plugin_info_ctocpp.h │ │ ├── xml_reader_ctocpp.cc │ │ ├── xml_reader_ctocpp.h │ │ ├── zip_reader_ctocpp.cc │ │ └── zip_reader_ctocpp.h │ ├── transfer_util.cpp │ ├── transfer_util.h │ └── wrapper │ │ ├── cef_byte_read_handler.cc │ │ ├── cef_stream_resource_handler.cc │ │ ├── cef_xml_object.cc │ │ ├── cef_zip_archive.cc │ │ ├── libcef_dll_wrapper.cc │ │ └── libcef_dll_wrapper2.cc ├── libcef_dll_wrapper.vcxproj └── libcef_dll_wrapper.vcxproj.filters ├── changelog.md ├── inc └── IPluginHTML5.h ├── project ├── HTML5.vcxproj ├── HTML5.vcxproj.filters ├── Plugin_HTML5.sln ├── resource.h └── version.rc ├── readme.md ├── src ├── CEFCryPak.hpp ├── CEFHandler.hpp ├── CEFInputHandler.hpp ├── CEFRenderHandler.hpp ├── CPluginHTML5.cpp ├── CPluginHTML5.h ├── CPluginHTML5Module.cpp ├── FullscreenTriangleDrawer.cpp ├── FullscreenTriangleDrawer.h ├── StdAfx.cpp └── StdAfx.h └── tools ├── AStyle ├── license.html └── styles.css ├── HTML5_Installer.nsi ├── build.bat ├── build_installer.bat ├── codestyle.astylerc └── stylecode.bat /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | 4 | # Custom for Visual Studio 5 | *.cs diff=csharp 6 | *.sln merge=union 7 | *.csproj merge=union 8 | *.vbproj merge=union 9 | *.fsproj merge=union 10 | *.dbproj merge=union 11 | 12 | # Standard to msysgit 13 | *.doc diff=astextplain 14 | *.DOC diff=astextplain 15 | *.docx diff=astextplain 16 | *.DOCX diff=astextplain 17 | *.dot diff=astextplain 18 | *.DOT diff=astextplain 19 | *.pdf diff=astextplain 20 | *.PDF diff=astextplain 21 | *.rtf diff=astextplain 22 | *.RTF diff=astextplain 23 | -------------------------------------------------------------------------------- /authors.txt: -------------------------------------------------------------------------------- 1 | Hendrik Polczynski 2 | Richard Marcoux III -------------------------------------------------------------------------------- /cef/LICENSE.txt: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2008-2013 Marshall A. Greenblatt. Portions Copyright (c) 2 | // 2006-2009 Google Inc. All rights reserved. 3 | // 4 | // Redistribution and use in source and binary forms, with or without 5 | // modification, are permitted provided that the following conditions are 6 | // met: 7 | // 8 | // * Redistributions of source code must retain the above copyright 9 | // notice, this list of conditions and the following disclaimer. 10 | // * Redistributions in binary form must reproduce the above 11 | // copyright notice, this list of conditions and the following disclaimer 12 | // in the documentation and/or other materials provided with the 13 | // distribution. 14 | // * Neither the name of Google Inc. nor the name Chromium Embedded 15 | // Framework nor the names of its contributors may be used to endorse 16 | // or promote products derived from this software without specific prior 17 | // written permission. 18 | // 19 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 20 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 21 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 22 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 23 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 24 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 25 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 26 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 27 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 28 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 29 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 30 | -------------------------------------------------------------------------------- /cef/Resources/cef.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hendrikp/CryHTML5/bb6752d0881140abcaf6891cc4434b16887f007b/cef/Resources/cef.pak -------------------------------------------------------------------------------- /cef/Resources/devtools_resources.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hendrikp/CryHTML5/bb6752d0881140abcaf6891cc4434b16887f007b/cef/Resources/devtools_resources.pak -------------------------------------------------------------------------------- /cef/Resources/locales/am.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hendrikp/CryHTML5/bb6752d0881140abcaf6891cc4434b16887f007b/cef/Resources/locales/am.pak -------------------------------------------------------------------------------- /cef/Resources/locales/ar.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hendrikp/CryHTML5/bb6752d0881140abcaf6891cc4434b16887f007b/cef/Resources/locales/ar.pak -------------------------------------------------------------------------------- /cef/Resources/locales/bg.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hendrikp/CryHTML5/bb6752d0881140abcaf6891cc4434b16887f007b/cef/Resources/locales/bg.pak -------------------------------------------------------------------------------- /cef/Resources/locales/bn.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hendrikp/CryHTML5/bb6752d0881140abcaf6891cc4434b16887f007b/cef/Resources/locales/bn.pak -------------------------------------------------------------------------------- /cef/Resources/locales/ca.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hendrikp/CryHTML5/bb6752d0881140abcaf6891cc4434b16887f007b/cef/Resources/locales/ca.pak -------------------------------------------------------------------------------- /cef/Resources/locales/cs.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hendrikp/CryHTML5/bb6752d0881140abcaf6891cc4434b16887f007b/cef/Resources/locales/cs.pak -------------------------------------------------------------------------------- /cef/Resources/locales/da.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hendrikp/CryHTML5/bb6752d0881140abcaf6891cc4434b16887f007b/cef/Resources/locales/da.pak -------------------------------------------------------------------------------- /cef/Resources/locales/de.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hendrikp/CryHTML5/bb6752d0881140abcaf6891cc4434b16887f007b/cef/Resources/locales/de.pak -------------------------------------------------------------------------------- /cef/Resources/locales/el.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hendrikp/CryHTML5/bb6752d0881140abcaf6891cc4434b16887f007b/cef/Resources/locales/el.pak -------------------------------------------------------------------------------- /cef/Resources/locales/en-GB.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hendrikp/CryHTML5/bb6752d0881140abcaf6891cc4434b16887f007b/cef/Resources/locales/en-GB.pak -------------------------------------------------------------------------------- /cef/Resources/locales/en-US.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hendrikp/CryHTML5/bb6752d0881140abcaf6891cc4434b16887f007b/cef/Resources/locales/en-US.pak -------------------------------------------------------------------------------- /cef/Resources/locales/es-419.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hendrikp/CryHTML5/bb6752d0881140abcaf6891cc4434b16887f007b/cef/Resources/locales/es-419.pak -------------------------------------------------------------------------------- /cef/Resources/locales/es.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hendrikp/CryHTML5/bb6752d0881140abcaf6891cc4434b16887f007b/cef/Resources/locales/es.pak -------------------------------------------------------------------------------- /cef/Resources/locales/et.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hendrikp/CryHTML5/bb6752d0881140abcaf6891cc4434b16887f007b/cef/Resources/locales/et.pak -------------------------------------------------------------------------------- /cef/Resources/locales/fa.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hendrikp/CryHTML5/bb6752d0881140abcaf6891cc4434b16887f007b/cef/Resources/locales/fa.pak -------------------------------------------------------------------------------- /cef/Resources/locales/fi.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hendrikp/CryHTML5/bb6752d0881140abcaf6891cc4434b16887f007b/cef/Resources/locales/fi.pak -------------------------------------------------------------------------------- /cef/Resources/locales/fil.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hendrikp/CryHTML5/bb6752d0881140abcaf6891cc4434b16887f007b/cef/Resources/locales/fil.pak -------------------------------------------------------------------------------- /cef/Resources/locales/fr.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hendrikp/CryHTML5/bb6752d0881140abcaf6891cc4434b16887f007b/cef/Resources/locales/fr.pak -------------------------------------------------------------------------------- /cef/Resources/locales/gu.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hendrikp/CryHTML5/bb6752d0881140abcaf6891cc4434b16887f007b/cef/Resources/locales/gu.pak -------------------------------------------------------------------------------- /cef/Resources/locales/he.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hendrikp/CryHTML5/bb6752d0881140abcaf6891cc4434b16887f007b/cef/Resources/locales/he.pak -------------------------------------------------------------------------------- /cef/Resources/locales/hi.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hendrikp/CryHTML5/bb6752d0881140abcaf6891cc4434b16887f007b/cef/Resources/locales/hi.pak -------------------------------------------------------------------------------- /cef/Resources/locales/hr.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hendrikp/CryHTML5/bb6752d0881140abcaf6891cc4434b16887f007b/cef/Resources/locales/hr.pak -------------------------------------------------------------------------------- /cef/Resources/locales/hu.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hendrikp/CryHTML5/bb6752d0881140abcaf6891cc4434b16887f007b/cef/Resources/locales/hu.pak -------------------------------------------------------------------------------- /cef/Resources/locales/id.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hendrikp/CryHTML5/bb6752d0881140abcaf6891cc4434b16887f007b/cef/Resources/locales/id.pak -------------------------------------------------------------------------------- /cef/Resources/locales/it.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hendrikp/CryHTML5/bb6752d0881140abcaf6891cc4434b16887f007b/cef/Resources/locales/it.pak -------------------------------------------------------------------------------- /cef/Resources/locales/ja.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hendrikp/CryHTML5/bb6752d0881140abcaf6891cc4434b16887f007b/cef/Resources/locales/ja.pak -------------------------------------------------------------------------------- /cef/Resources/locales/kn.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hendrikp/CryHTML5/bb6752d0881140abcaf6891cc4434b16887f007b/cef/Resources/locales/kn.pak -------------------------------------------------------------------------------- /cef/Resources/locales/ko.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hendrikp/CryHTML5/bb6752d0881140abcaf6891cc4434b16887f007b/cef/Resources/locales/ko.pak -------------------------------------------------------------------------------- /cef/Resources/locales/lt.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hendrikp/CryHTML5/bb6752d0881140abcaf6891cc4434b16887f007b/cef/Resources/locales/lt.pak -------------------------------------------------------------------------------- /cef/Resources/locales/lv.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hendrikp/CryHTML5/bb6752d0881140abcaf6891cc4434b16887f007b/cef/Resources/locales/lv.pak -------------------------------------------------------------------------------- /cef/Resources/locales/ml.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hendrikp/CryHTML5/bb6752d0881140abcaf6891cc4434b16887f007b/cef/Resources/locales/ml.pak -------------------------------------------------------------------------------- /cef/Resources/locales/mr.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hendrikp/CryHTML5/bb6752d0881140abcaf6891cc4434b16887f007b/cef/Resources/locales/mr.pak -------------------------------------------------------------------------------- /cef/Resources/locales/ms.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hendrikp/CryHTML5/bb6752d0881140abcaf6891cc4434b16887f007b/cef/Resources/locales/ms.pak -------------------------------------------------------------------------------- /cef/Resources/locales/nb.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hendrikp/CryHTML5/bb6752d0881140abcaf6891cc4434b16887f007b/cef/Resources/locales/nb.pak -------------------------------------------------------------------------------- /cef/Resources/locales/nl.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hendrikp/CryHTML5/bb6752d0881140abcaf6891cc4434b16887f007b/cef/Resources/locales/nl.pak -------------------------------------------------------------------------------- /cef/Resources/locales/pl.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hendrikp/CryHTML5/bb6752d0881140abcaf6891cc4434b16887f007b/cef/Resources/locales/pl.pak -------------------------------------------------------------------------------- /cef/Resources/locales/pt-BR.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hendrikp/CryHTML5/bb6752d0881140abcaf6891cc4434b16887f007b/cef/Resources/locales/pt-BR.pak -------------------------------------------------------------------------------- /cef/Resources/locales/pt-PT.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hendrikp/CryHTML5/bb6752d0881140abcaf6891cc4434b16887f007b/cef/Resources/locales/pt-PT.pak -------------------------------------------------------------------------------- /cef/Resources/locales/ro.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hendrikp/CryHTML5/bb6752d0881140abcaf6891cc4434b16887f007b/cef/Resources/locales/ro.pak -------------------------------------------------------------------------------- /cef/Resources/locales/ru.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hendrikp/CryHTML5/bb6752d0881140abcaf6891cc4434b16887f007b/cef/Resources/locales/ru.pak -------------------------------------------------------------------------------- /cef/Resources/locales/sk.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hendrikp/CryHTML5/bb6752d0881140abcaf6891cc4434b16887f007b/cef/Resources/locales/sk.pak -------------------------------------------------------------------------------- /cef/Resources/locales/sl.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hendrikp/CryHTML5/bb6752d0881140abcaf6891cc4434b16887f007b/cef/Resources/locales/sl.pak -------------------------------------------------------------------------------- /cef/Resources/locales/sr.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hendrikp/CryHTML5/bb6752d0881140abcaf6891cc4434b16887f007b/cef/Resources/locales/sr.pak -------------------------------------------------------------------------------- /cef/Resources/locales/sv.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hendrikp/CryHTML5/bb6752d0881140abcaf6891cc4434b16887f007b/cef/Resources/locales/sv.pak -------------------------------------------------------------------------------- /cef/Resources/locales/sw.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hendrikp/CryHTML5/bb6752d0881140abcaf6891cc4434b16887f007b/cef/Resources/locales/sw.pak -------------------------------------------------------------------------------- /cef/Resources/locales/ta.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hendrikp/CryHTML5/bb6752d0881140abcaf6891cc4434b16887f007b/cef/Resources/locales/ta.pak -------------------------------------------------------------------------------- /cef/Resources/locales/te.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hendrikp/CryHTML5/bb6752d0881140abcaf6891cc4434b16887f007b/cef/Resources/locales/te.pak -------------------------------------------------------------------------------- /cef/Resources/locales/th.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hendrikp/CryHTML5/bb6752d0881140abcaf6891cc4434b16887f007b/cef/Resources/locales/th.pak -------------------------------------------------------------------------------- /cef/Resources/locales/tr.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hendrikp/CryHTML5/bb6752d0881140abcaf6891cc4434b16887f007b/cef/Resources/locales/tr.pak -------------------------------------------------------------------------------- /cef/Resources/locales/uk.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hendrikp/CryHTML5/bb6752d0881140abcaf6891cc4434b16887f007b/cef/Resources/locales/uk.pak -------------------------------------------------------------------------------- /cef/Resources/locales/vi.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hendrikp/CryHTML5/bb6752d0881140abcaf6891cc4434b16887f007b/cef/Resources/locales/vi.pak -------------------------------------------------------------------------------- /cef/Resources/locales/zh-CN.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hendrikp/CryHTML5/bb6752d0881140abcaf6891cc4434b16887f007b/cef/Resources/locales/zh-CN.pak -------------------------------------------------------------------------------- /cef/Resources/locales/zh-TW.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hendrikp/CryHTML5/bb6752d0881140abcaf6891cc4434b16887f007b/cef/Resources/locales/zh-TW.pak -------------------------------------------------------------------------------- /cef/cefclient/README-TRANSFER.txt: -------------------------------------------------------------------------------- 1 | Files in this directory have been copied from other locations in the Chromium 2 | source tree. They have been modified only to the extent necessary to work in 3 | the CEF Binary Distribution directory structure. Below is a listing of the 4 | original file locations. 5 | 6 | ../build/win/compatibility.manifest 7 | -------------------------------------------------------------------------------- /cef/cefclient/binding_test.cpp: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012 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 | #include "cefclient/binding_test.h" 6 | 7 | #include 8 | #include 9 | 10 | #include "include/wrapper/cef_stream_resource_handler.h" 11 | 12 | namespace binding_test { 13 | 14 | namespace { 15 | 16 | const char* kMessageName = "binding_test"; 17 | 18 | // Handle messages in the browser process. 19 | class ProcessMessageDelegate : public ClientHandler::ProcessMessageDelegate { 20 | public: 21 | ProcessMessageDelegate() { 22 | } 23 | 24 | // From ClientHandler::ProcessMessageDelegate. 25 | virtual bool OnProcessMessageReceived( 26 | CefRefPtr handler, 27 | CefRefPtr browser, 28 | CefProcessId source_process, 29 | CefRefPtr message) OVERRIDE { 30 | std::string message_name = message->GetName(); 31 | if (message_name == kMessageName) { 32 | // Handle the message. 33 | std::string result; 34 | 35 | CefRefPtr args = message->GetArgumentList(); 36 | if (args->GetSize() > 0 && args->GetType(0) == VTYPE_STRING) { 37 | // Our result is a reverse of the original message. 38 | result = args->GetString(0); 39 | std::reverse(result.begin(), result.end()); 40 | } else { 41 | result = "Invalid request"; 42 | } 43 | 44 | // Send the result back to the render process. 45 | CefRefPtr response = 46 | CefProcessMessage::Create(kMessageName); 47 | response->GetArgumentList()->SetString(0, result); 48 | browser->SendProcessMessage(PID_RENDERER, response); 49 | 50 | return true; 51 | } 52 | 53 | return false; 54 | } 55 | 56 | IMPLEMENT_REFCOUNTING(ProcessMessageDelegate); 57 | }; 58 | 59 | } // namespace 60 | 61 | void CreateProcessMessageDelegates( 62 | ClientHandler::ProcessMessageDelegateSet& delegates) { 63 | delegates.insert(new ProcessMessageDelegate); 64 | } 65 | 66 | } // namespace binding_test 67 | -------------------------------------------------------------------------------- /cef/cefclient/binding_test.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012 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 | #ifndef CEF_TESTS_CEFCLIENT_BINDING_TEST_H_ 6 | #define CEF_TESTS_CEFCLIENT_BINDING_TEST_H_ 7 | #pragma once 8 | 9 | #include "cefclient/client_handler.h" 10 | 11 | namespace binding_test { 12 | 13 | // Delegate creation. Called from ClientHandler. 14 | void CreateProcessMessageDelegates( 15 | ClientHandler::ProcessMessageDelegateSet& delegates); 16 | 17 | } // namespace binding_test 18 | 19 | #endif // CEF_TESTS_CEFCLIENT_BINDING_TEST_H_ 20 | -------------------------------------------------------------------------------- /cef/cefclient/cefclient.exe.manifest: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /cef/cefclient/cefclient.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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 | #ifndef CEF_TESTS_CEFCLIENT_CEFCLIENT_H_ 6 | #define CEF_TESTS_CEFCLIENT_CEFCLIENT_H_ 7 | #pragma once 8 | 9 | #include 10 | #include "include/cef_base.h" 11 | #include "cefclient/client_app.h" 12 | 13 | class CefApp; 14 | class CefBrowser; 15 | class CefCommandLine; 16 | 17 | // Returns the main browser window instance. 18 | CefRefPtr AppGetBrowser(); 19 | 20 | // Returns the main application window handle. 21 | CefWindowHandle AppGetMainHwnd(); 22 | 23 | // Returns the application working directory. 24 | std::string AppGetWorkingDirectory(); 25 | 26 | // Initialize the application command line. 27 | void AppInitCommandLine(int argc, const char* const* argv); 28 | 29 | // Returns the application command line object. 30 | CefRefPtr AppGetCommandLine(); 31 | 32 | // Returns the application settings based on command line arguments. 33 | void AppGetSettings(CefSettings& settings); 34 | 35 | // Returns true if off-screen rendering is enabled via the command line 36 | // argument. 37 | bool AppIsOffScreenRenderingEnabled(); 38 | 39 | // Quit the application message loop. 40 | void AppQuitMessageLoop(); 41 | 42 | // Implementations for various tests. 43 | void RunGetSourceTest(CefRefPtr browser); 44 | void RunGetTextTest(CefRefPtr browser); 45 | void RunRequestTest(CefRefPtr browser); 46 | void RunPopupTest(CefRefPtr browser); 47 | void RunPluginInfoTest(CefRefPtr browser); 48 | void RunOtherTests(CefRefPtr browser); 49 | 50 | #if defined(OS_WIN) 51 | void RunTransparentPopupTest(CefRefPtr browser); 52 | #endif 53 | 54 | #endif // CEF_TESTS_CEFCLIENT_CEFCLIENT_H_ 55 | -------------------------------------------------------------------------------- /cef/cefclient/client_app_delegates.cpp: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012 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 | #include "cefclient/client_app.h" 6 | #include "cefclient/client_renderer.h" 7 | #include "cefclient/dom_test.h" 8 | #include "cefclient/performance_test.h" 9 | #include "cefclient/scheme_test.h" 10 | 11 | // static 12 | void ClientApp::CreateBrowserDelegates(BrowserDelegateSet& delegates) { 13 | } 14 | 15 | // static 16 | void ClientApp::CreateRenderDelegates(RenderDelegateSet& delegates) { 17 | client_renderer::CreateRenderDelegates(delegates); 18 | dom_test::CreateRenderDelegates(delegates); 19 | performance_test::CreateRenderDelegates(delegates); 20 | } 21 | 22 | // static 23 | void ClientApp::RegisterCustomSchemes( 24 | CefRefPtr registrar, 25 | std::vector& cookiable_schemes) { 26 | scheme_test::RegisterCustomSchemes(registrar, cookiable_schemes); 27 | } 28 | -------------------------------------------------------------------------------- /cef/cefclient/client_renderer.cpp: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012 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 | #include "cefclient/client_renderer.h" 6 | 7 | #include 8 | #include 9 | 10 | #include "include/cef_dom.h" 11 | #include "cefclient/util.h" 12 | 13 | namespace client_renderer { 14 | 15 | const char kFocusedNodeChangedMessage[] = "ClientRenderer.FocusedNodeChanged"; 16 | 17 | namespace { 18 | 19 | class ClientRenderDelegate : public ClientApp::RenderDelegate { 20 | public: 21 | ClientRenderDelegate() 22 | : last_node_is_editable_(false) { 23 | } 24 | 25 | virtual void OnFocusedNodeChanged(CefRefPtr app, 26 | CefRefPtr browser, 27 | CefRefPtr frame, 28 | CefRefPtr node) OVERRIDE { 29 | bool is_editable = (node.get() && node->IsEditable()); 30 | if (is_editable != last_node_is_editable_) { 31 | // Notify the browser of the change in focused element type. 32 | last_node_is_editable_ = is_editable; 33 | CefRefPtr message = 34 | CefProcessMessage::Create(kFocusedNodeChangedMessage); 35 | message->GetArgumentList()->SetBool(0, is_editable); 36 | browser->SendProcessMessage(PID_BROWSER, message); 37 | } 38 | } 39 | 40 | private: 41 | bool last_node_is_editable_; 42 | 43 | IMPLEMENT_REFCOUNTING(ClientRenderDelegate); 44 | }; 45 | 46 | } // namespace 47 | 48 | void CreateRenderDelegates(ClientApp::RenderDelegateSet& delegates) { 49 | delegates.insert(new ClientRenderDelegate); 50 | } 51 | 52 | } // namespace client_renderer 53 | -------------------------------------------------------------------------------- /cef/cefclient/client_renderer.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012 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 | #ifndef CEF_TESTS_CEFCLIENT_CLIENT_RENDERER_H_ 6 | #define CEF_TESTS_CEFCLIENT_CLIENT_RENDERER_H_ 7 | #pragma once 8 | 9 | #include "include/cef_base.h" 10 | #include "cefclient/client_app.h" 11 | 12 | namespace client_renderer { 13 | 14 | // Message sent when the focused node changes. 15 | extern const char kFocusedNodeChangedMessage[]; 16 | 17 | // Create the render delegate. 18 | void CreateRenderDelegates(ClientApp::RenderDelegateSet& delegates); 19 | 20 | } // namespace client_renderer 21 | 22 | #endif // CEF_TESTS_CEFCLIENT_CLIENT_RENDERER_H_ 23 | -------------------------------------------------------------------------------- /cef/cefclient/client_switches.cpp: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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 | // This file is shared by cefclient and cef_unittests so don't include using 6 | // a qualified path. 7 | #include "client_switches.h" // NOLINT(build/include) 8 | 9 | namespace cefclient { 10 | 11 | // CEF and Chromium support a wide range of command-line switches. This file 12 | // only contains command-line switches specific to the cefclient application. 13 | // View CEF/Chromium documentation or search for *_switches.cc files in the 14 | // Chromium source code to identify other existing command-line switches. 15 | // Below is a partial listing of relevant *_switches.cc files: 16 | // base/base_switches.cc 17 | // cef/libcef/common/cef_switches.cc 18 | // chrome/common/chrome_switches.cc (not all apply) 19 | // content/public/common/content_switches.cc 20 | 21 | const char kMultiThreadedMessageLoop[] = "multi-threaded-message-loop"; 22 | const char kCachePath[] = "cache-path"; 23 | const char kUrl[] = "url"; 24 | const char kExternalDevTools[] = "external-devtools"; 25 | const char kOffScreenRenderingEnabled[] = "off-screen-rendering-enabled"; 26 | const char kTransparentPaintingEnabled[] = "transparent-painting-enabled"; 27 | const char kMouseCursorChangeDisabled[] = "mouse-cursor-change-disabled"; 28 | 29 | } // namespace cefclient 30 | -------------------------------------------------------------------------------- /cef/cefclient/client_switches.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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 | // Defines all of the command line switches used by cefclient. 6 | 7 | #ifndef CEF_TESTS_CEFCLIENT_CEFCLIENT_SWITCHES_H_ 8 | #define CEF_TESTS_CEFCLIENT_CEFCLIENT_SWITCHES_H_ 9 | #pragma once 10 | 11 | namespace cefclient { 12 | 13 | extern const char kMultiThreadedMessageLoop[]; 14 | extern const char kCachePath[]; 15 | extern const char kUrl[]; 16 | extern const char kExternalDevTools[]; 17 | extern const char kOffScreenRenderingEnabled[]; 18 | extern const char kTransparentPaintingEnabled[]; 19 | extern const char kMouseCursorChangeDisabled[]; 20 | 21 | } // namespace cefclient 22 | 23 | #endif // CEF_TESTS_CEFCLIENT_CEFCLIENT_SWITCHES_H_ 24 | -------------------------------------------------------------------------------- /cef/cefclient/compatibility.manifest: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /cef/cefclient/dialog_test.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012 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 | #ifndef CEF_TESTS_CEFCLIENT_DIALOG_TEST_H_ 6 | #define CEF_TESTS_CEFCLIENT_DIALOG_TEST_H_ 7 | #pragma once 8 | 9 | #include "cefclient/client_handler.h" 10 | 11 | namespace dialog_test { 12 | 13 | // Delegate creation. Called from ClientHandler. 14 | void CreateProcessMessageDelegates( 15 | ClientHandler::ProcessMessageDelegateSet& delegates); 16 | 17 | } // namespace dialog_test 18 | 19 | #endif // CEF_TESTS_CEFCLIENT_DIALOG_TEST_H_ 20 | -------------------------------------------------------------------------------- /cef/cefclient/dom_test.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012 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 | #ifndef CEF_TESTS_CEFCLIENT_DOM_TEST_H_ 6 | #define CEF_TESTS_CEFCLIENT_DOM_TEST_H_ 7 | #pragma once 8 | 9 | #include "include/cef_base.h" 10 | #include "cefclient/client_app.h" 11 | 12 | namespace dom_test { 13 | 14 | // The DOM test URL. 15 | extern const char kTestUrl[]; 16 | 17 | // Create the render delegate. 18 | void CreateRenderDelegates(ClientApp::RenderDelegateSet& delegates); 19 | 20 | // Continue the test after the page has loaded. 21 | void OnLoadEnd(CefRefPtr browser); 22 | 23 | } // namespace dom_test 24 | 25 | #endif // CEF_TESTS_CEFCLIENT_DOM_TEST_H_ 26 | -------------------------------------------------------------------------------- /cef/cefclient/osrenderer.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights 2 | // reserved. Use of this source code is governed by a BSD-style license 3 | // that can be found in the LICENSE file. 4 | 5 | #ifndef CEF_TESTS_CEFCLIENT_OSRENDERER_H_ 6 | #define CEF_TESTS_CEFCLIENT_OSRENDERER_H_ 7 | #pragma once 8 | 9 | #include "include/cef_browser.h" 10 | #include "include/cef_render_handler.h" 11 | 12 | class ClientOSRenderer { 13 | public: 14 | // The context must outlive this object. 15 | explicit ClientOSRenderer(bool transparent); 16 | virtual ~ClientOSRenderer(); 17 | 18 | // Initialize the OpenGL environment. 19 | void Initialize(); 20 | 21 | // Clean up the OpenGL environment. 22 | void Cleanup(); 23 | 24 | // Render to the screen. 25 | void Render(); 26 | 27 | // Forwarded from CefRenderHandler callbacks. 28 | void OnPopupShow(CefRefPtr browser, 29 | bool show); 30 | void OnPopupSize(CefRefPtr browser, 31 | const CefRect& rect); 32 | void OnPaint(CefRefPtr browser, 33 | CefRenderHandler::PaintElementType type, 34 | const CefRenderHandler::RectList& dirtyRects, 35 | const void* buffer, int width, int height); 36 | 37 | // Apply spin. 38 | void SetSpin(float spinX, float spinY); 39 | void IncrementSpin(float spinDX, float spinDY); 40 | 41 | bool IsTransparent() { return transparent_; } 42 | 43 | int GetViewWidth() { return view_width_; } 44 | int GetViewHeight() { return view_height_; } 45 | 46 | const CefRect& popup_rect() const { return popup_rect_; } 47 | const CefRect& original_popup_rect() const { return original_popup_rect_; } 48 | 49 | CefRect GetPopupRectInWebView(const CefRect& original_rect); 50 | void ClearPopupRects(); 51 | 52 | private: 53 | bool transparent_; 54 | bool initialized_; 55 | unsigned int texture_id_; 56 | int view_width_; 57 | int view_height_; 58 | CefRect popup_rect_; 59 | CefRect original_popup_rect_; 60 | float spin_x_; 61 | float spin_y_; 62 | }; 63 | 64 | #endif // CEF_TESTS_CEFCLIENT_OSRENDERER_H_ 65 | 66 | -------------------------------------------------------------------------------- /cef/cefclient/performance_test.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012 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 | #ifndef CEF_TESTS_CEFCLIENT_PERFORMANCE_TEST_H_ 6 | #define CEF_TESTS_CEFCLIENT_PERFORMANCE_TEST_H_ 7 | #pragma once 8 | 9 | #include "cefclient/client_app.h" 10 | 11 | namespace performance_test { 12 | 13 | // Render delegate creation. Called from client_app_delegates.cpp. 14 | void CreateRenderDelegates(ClientApp::RenderDelegateSet& delegates); 15 | 16 | } // namespace performance_test 17 | 18 | #endif // CEF_TESTS_CEFCLIENT_PERFORMANCE_TEST_H_ 19 | -------------------------------------------------------------------------------- /cef/cefclient/res/binding.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | Binding Test 4 | 17 | 18 | 19 | 20 |
21 | Message: 22 |
23 |
You should see the reverse of your message below: 24 |
25 |
26 | 27 | 28 | -------------------------------------------------------------------------------- /cef/cefclient/res/cefclient.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hendrikp/CryHTML5/bb6752d0881140abcaf6891cc4434b16887f007b/cef/cefclient/res/cefclient.ico -------------------------------------------------------------------------------- /cef/cefclient/res/domaccess.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |

Select some portion of the below page content and click the "Describe Selection" button. The selected region will then be described below.

4 |

This is p1

5 |

This is p2

6 |

This is p3

7 |

This is p4

8 |
9 | 10 |

The description will appear here.

11 |
12 | 13 | 14 | -------------------------------------------------------------------------------- /cef/cefclient/res/localstorage.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 14 | Click the "Add Line" button to add a line or the "Clear" button to clear.
15 | This data will persist across sessions if a cache path was specified.
16 | 17 | 18 |
19 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /cef/cefclient/res/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hendrikp/CryHTML5/bb6752d0881140abcaf6891cc4434b16887f007b/cef/cefclient/res/logo.png -------------------------------------------------------------------------------- /cef/cefclient/res/other_tests.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | Other Tests 4 | 5 | 6 |

Various other internal and external tests.

7 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /cef/cefclient/res/small.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hendrikp/CryHTML5/bb6752d0881140abcaf6891cc4434b16887f007b/cef/cefclient/res/small.ico -------------------------------------------------------------------------------- /cef/cefclient/res/transparency.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Transparency Examples 5 | 49 | 50 | 51 | 52 |

Image Transparency

53 | Hover over an image to make it fully opaque.
54 | klematis 55 | klematis 56 | 57 |

Block Transparency

58 | White 0% White 25% White 50% White 75% White 100% 59 |
60 | Black 0% Black 25% Black 50% Black 75% Black 100% 61 | 62 | 63 | 64 | -------------------------------------------------------------------------------- /cef/cefclient/res/window.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | Window Test 4 | 34 | 35 | 36 |
37 | Click a button to perform the associated window action. 38 |
39 |
40 |
(minimizes and then restores the window as topmost) 41 |
X: Y: Width: Height: 42 |
43 | 44 | 45 | -------------------------------------------------------------------------------- /cef/cefclient/res/xmlhttprequest.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 13 |
14 | URL: 15 |
16 |
17 |
18 | 19 | 20 | -------------------------------------------------------------------------------- /cef/cefclient/resource_util.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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 | #ifndef CEF_TESTS_CEFCLIENT_RESOURCE_UTIL_H_ 6 | #define CEF_TESTS_CEFCLIENT_RESOURCE_UTIL_H_ 7 | #pragma once 8 | 9 | #include 10 | #include "include/cef_stream.h" 11 | 12 | #if defined(OS_POSIX) 13 | // Returns the directory containing resource files. 14 | bool GetResourceDir(std::string& dir); 15 | #endif 16 | 17 | // Retrieve a resource as a string. 18 | bool LoadBinaryResource(const char* resource_name, std::string& resource_data); 19 | 20 | // Retrieve a resource as a steam reader. 21 | CefRefPtr GetBinaryResourceReader(const char* resource_name); 22 | 23 | #endif // CEF_TESTS_CEFCLIENT_RESOURCE_UTIL_H_ 24 | -------------------------------------------------------------------------------- /cef/cefclient/scheme_test.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2009 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 | #ifndef CEF_TESTS_CEFCLIENT_SCHEME_TEST_H_ 6 | #define CEF_TESTS_CEFCLIENT_SCHEME_TEST_H_ 7 | #pragma once 8 | 9 | #include 10 | #include "include/cef_base.h" 11 | 12 | class CefBrowser; 13 | class CefSchemeRegistrar; 14 | 15 | namespace scheme_test { 16 | 17 | // Register the scheme. 18 | void RegisterCustomSchemes(CefRefPtr registrar, 19 | std::vector& cookiable_schemes); 20 | 21 | // Create the scheme handler. 22 | void InitTest(); 23 | 24 | } // namespace scheme_test 25 | 26 | #endif // CEF_TESTS_CEFCLIENT_SCHEME_TEST_H_ 27 | -------------------------------------------------------------------------------- /cef/cefclient/string_util.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2010 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 | #ifndef CEF_TESTS_CEFCLIENT_STRING_UTIL_H_ 6 | #define CEF_TESTS_CEFCLIENT_STRING_UTIL_H_ 7 | #pragma once 8 | 9 | #include 10 | #include "include/cef_base.h" 11 | 12 | class CefRequest; 13 | 14 | // Dump the contents of the request into a string. 15 | void DumpRequestContents(CefRefPtr request, std::string& str); 16 | 17 | // Replace all instances of |from| with |to| in |str|. 18 | std::string StringReplace(const std::string& str, const std::string& from, 19 | const std::string& to); 20 | 21 | #endif // CEF_TESTS_CEFCLIENT_STRING_UTIL_H_ 22 | -------------------------------------------------------------------------------- /cef/cefclient/util.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011 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 | #ifndef CEF_TESTS_CEFCLIENT_UTIL_H_ 6 | #define CEF_TESTS_CEFCLIENT_UTIL_H_ 7 | #pragma once 8 | 9 | #include "include/cef_task.h" 10 | 11 | #if defined(OS_WIN) 12 | 13 | #include // NOLINT(build/include_order) 14 | 15 | #ifndef NDEBUG 16 | #define ASSERT(condition) if (!(condition)) { DebugBreak(); } 17 | #else 18 | #define ASSERT(condition) ((void)0) 19 | #endif 20 | 21 | #else // !OS_WIN 22 | 23 | #include // NOLINT(build/include_order) 24 | 25 | #ifndef NDEBUG 26 | #define ASSERT(condition) if (!(condition)) { assert(false); } 27 | #else 28 | #define ASSERT(condition) ((void)0) 29 | #endif 30 | 31 | #endif // !OS_WIN 32 | 33 | #define REQUIRE_UI_THREAD() ASSERT(CefCurrentlyOn(TID_UI)); 34 | #define REQUIRE_IO_THREAD() ASSERT(CefCurrentlyOn(TID_IO)); 35 | #define REQUIRE_FILE_THREAD() ASSERT(CefCurrentlyOn(TID_FILE)); 36 | 37 | #endif // CEF_TESTS_CEFCLIENT_UTIL_H_ 38 | -------------------------------------------------------------------------------- /cef/cefclient/window_test.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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 | #ifndef CEF_TESTS_CEFCLIENT_WINDOW_TEST_H_ 6 | #define CEF_TESTS_CEFCLIENT_WINDOW_TEST_H_ 7 | #pragma once 8 | 9 | #include "cefclient/client_handler.h" 10 | 11 | namespace window_test { 12 | 13 | // Delegate creation. Called from ClientHandler. 14 | void CreateProcessMessageDelegates( 15 | ClientHandler::ProcessMessageDelegateSet& delegates); 16 | 17 | // Fit |window| inside |display|. Coordinates are relative to the upper-left 18 | // corner of the display. 19 | void ModifyBounds(const CefRect& display, CefRect& window); 20 | 21 | // Platform implementations. 22 | void SetPos(CefWindowHandle handle, int x, int y, int width, int height); 23 | void Minimize(CefWindowHandle handle); 24 | void Maximize(CefWindowHandle handle); 25 | void Restore(CefWindowHandle handle); 26 | 27 | } // namespace window_test 28 | 29 | #endif // CEF_TESTS_CEFCLIENT_WINDOW_TEST_H_ 30 | -------------------------------------------------------------------------------- /cef/cefclient2012.sln: -------------------------------------------------------------------------------- 1 | Microsoft Visual Studio Solution File, Format Version 12.00 2 | # Visual Studio 2012 3 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "cefclient", "cefclient.vcxproj", "{6617FED9-C5D4-4907-BF55-A90062A6683F}" 4 | ProjectSection(ProjectDependencies) = postProject 5 | {A9D6DC71-C0DC-4549-AEA0-3B15B44E86A9} = {A9D6DC71-C0DC-4549-AEA0-3B15B44E86A9} 6 | EndProjectSection 7 | EndProject 8 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libcef_dll_wrapper", "libcef_dll_wrapper.vcxproj", "{A9D6DC71-C0DC-4549-AEA0-3B15B44E86A9}" 9 | EndProject 10 | Global 11 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 12 | Release|x64 = Release|x64 13 | Debug|Win32 = Debug|Win32 14 | Debug|x64 = Debug|x64 15 | Release|Win32 = Release|Win32 16 | EndGlobalSection 17 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 18 | {6617FED9-C5D4-4907-BF55-A90062A6683F}.Release|x64.ActiveCfg = Release|x64 19 | {6617FED9-C5D4-4907-BF55-A90062A6683F}.Release|x64.Build.0 = Release|x64 20 | {6617FED9-C5D4-4907-BF55-A90062A6683F}.Debug|Win32.ActiveCfg = Debug|Win32 21 | {6617FED9-C5D4-4907-BF55-A90062A6683F}.Debug|Win32.Build.0 = Debug|Win32 22 | {6617FED9-C5D4-4907-BF55-A90062A6683F}.Debug|x64.ActiveCfg = Debug|x64 23 | {6617FED9-C5D4-4907-BF55-A90062A6683F}.Debug|x64.Build.0 = Debug|x64 24 | {6617FED9-C5D4-4907-BF55-A90062A6683F}.Release|Win32.ActiveCfg = Release|Win32 25 | {6617FED9-C5D4-4907-BF55-A90062A6683F}.Release|Win32.Build.0 = Release|Win32 26 | {A9D6DC71-C0DC-4549-AEA0-3B15B44E86A9}.Release|x64.ActiveCfg = Release|x64 27 | {A9D6DC71-C0DC-4549-AEA0-3B15B44E86A9}.Release|x64.Build.0 = Release|x64 28 | {A9D6DC71-C0DC-4549-AEA0-3B15B44E86A9}.Debug|Win32.ActiveCfg = Debug|Win32 29 | {A9D6DC71-C0DC-4549-AEA0-3B15B44E86A9}.Debug|Win32.Build.0 = Debug|Win32 30 | {A9D6DC71-C0DC-4549-AEA0-3B15B44E86A9}.Debug|x64.ActiveCfg = Debug|x64 31 | {A9D6DC71-C0DC-4549-AEA0-3B15B44E86A9}.Debug|x64.Build.0 = Debug|x64 32 | {A9D6DC71-C0DC-4549-AEA0-3B15B44E86A9}.Release|Win32.ActiveCfg = Release|Win32 33 | {A9D6DC71-C0DC-4549-AEA0-3B15B44E86A9}.Release|Win32.Build.0 = Release|Win32 34 | EndGlobalSection 35 | GlobalSection(SolutionProperties) = preSolution 36 | HideSolutionNode = FALSE 37 | EndGlobalSection 38 | GlobalSection(NestedProjects) = preSolution 39 | EndGlobalSection 40 | EndGlobal 41 | -------------------------------------------------------------------------------- /cef/libcef_dll/cef_logging.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2009 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 | #ifndef CEF_LIBCEF_DLL_CEF_LOGGING_H_ 6 | #define CEF_LIBCEF_DLL_CEF_LOGGING_H_ 7 | #pragma once 8 | 9 | #ifdef BUILDING_CEF_SHARED 10 | #include "base/logging.h" 11 | #else 12 | #include // NOLINT(build/include_order) 13 | #define DCHECK(condition) assert(condition) 14 | #define DCHECK_EQ(val1, val2) DCHECK(val1 == val2) 15 | #define DCHECK_NE(val1, val2) DCHECK(val1 != val2) 16 | #define DCHECK_LE(val1, val2) DCHECK(val1 <= val2) 17 | #define DCHECK_LT(val1, val2) DCHECK(val1 < val2) 18 | #define DCHECK_GE(val1, val2) DCHECK(val1 >= val2) 19 | #define DCHECK_GT(val1, val2) DCHECK(val1 > val2) 20 | #endif 21 | 22 | #endif // CEF_LIBCEF_DLL_CEF_LOGGING_H_ 23 | -------------------------------------------------------------------------------- /cef/libcef_dll/cpptoc/app_cpptoc.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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_CPPTOC_APP_CPPTOC_H_ 14 | #define CEF_LIBCEF_DLL_CPPTOC_APP_CPPTOC_H_ 15 | #pragma once 16 | 17 | #ifndef USING_CEF_SHARED 18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only") 19 | #else // USING_CEF_SHARED 20 | 21 | #include "include/cef_app.h" 22 | #include "include/capi/cef_app_capi.h" 23 | #include "libcef_dll/cpptoc/cpptoc.h" 24 | 25 | // Wrap a C++ class with a C structure. 26 | // This class may be instantiated and accessed wrapper-side only. 27 | class CefAppCppToC 28 | : public CefCppToC { 29 | public: 30 | explicit CefAppCppToC(CefApp* cls); 31 | virtual ~CefAppCppToC() {} 32 | }; 33 | 34 | #endif // USING_CEF_SHARED 35 | #endif // CEF_LIBCEF_DLL_CPPTOC_APP_CPPTOC_H_ 36 | 37 | -------------------------------------------------------------------------------- /cef/libcef_dll/cpptoc/browser_process_handler_cpptoc.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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_CPPTOC_BROWSER_PROCESS_HANDLER_CPPTOC_H_ 14 | #define CEF_LIBCEF_DLL_CPPTOC_BROWSER_PROCESS_HANDLER_CPPTOC_H_ 15 | #pragma once 16 | 17 | #ifndef USING_CEF_SHARED 18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only") 19 | #else // USING_CEF_SHARED 20 | 21 | #include "include/cef_browser_process_handler.h" 22 | #include "include/capi/cef_browser_process_handler_capi.h" 23 | #include "libcef_dll/cpptoc/cpptoc.h" 24 | 25 | // Wrap a C++ class with a C structure. 26 | // This class may be instantiated and accessed wrapper-side only. 27 | class CefBrowserProcessHandlerCppToC 28 | : public CefCppToC { 30 | public: 31 | explicit CefBrowserProcessHandlerCppToC(CefBrowserProcessHandler* cls); 32 | virtual ~CefBrowserProcessHandlerCppToC() {} 33 | }; 34 | 35 | #endif // USING_CEF_SHARED 36 | #endif // CEF_LIBCEF_DLL_CPPTOC_BROWSER_PROCESS_HANDLER_CPPTOC_H_ 37 | 38 | -------------------------------------------------------------------------------- /cef/libcef_dll/cpptoc/client_cpptoc.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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_CPPTOC_CLIENT_CPPTOC_H_ 14 | #define CEF_LIBCEF_DLL_CPPTOC_CLIENT_CPPTOC_H_ 15 | #pragma once 16 | 17 | #ifndef USING_CEF_SHARED 18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only") 19 | #else // USING_CEF_SHARED 20 | 21 | #include "include/cef_client.h" 22 | #include "include/capi/cef_client_capi.h" 23 | #include "libcef_dll/cpptoc/cpptoc.h" 24 | 25 | // Wrap a C++ class with a C structure. 26 | // This class may be instantiated and accessed wrapper-side only. 27 | class CefClientCppToC 28 | : public CefCppToC { 29 | public: 30 | explicit CefClientCppToC(CefClient* cls); 31 | virtual ~CefClientCppToC() {} 32 | }; 33 | 34 | #endif // USING_CEF_SHARED 35 | #endif // CEF_LIBCEF_DLL_CPPTOC_CLIENT_CPPTOC_H_ 36 | 37 | -------------------------------------------------------------------------------- /cef/libcef_dll/cpptoc/completion_handler_cpptoc.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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 | #include "libcef_dll/cpptoc/completion_handler_cpptoc.h" 14 | 15 | 16 | // MEMBER FUNCTIONS - Body may be edited by hand. 17 | 18 | void CEF_CALLBACK completion_handler_on_complete( 19 | struct _cef_completion_handler_t* self) { 20 | // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING 21 | 22 | DCHECK(self); 23 | if (!self) 24 | return; 25 | 26 | // Execute 27 | CefCompletionHandlerCppToC::Get(self)->OnComplete(); 28 | } 29 | 30 | 31 | // CONSTRUCTOR - Do not edit by hand. 32 | 33 | CefCompletionHandlerCppToC::CefCompletionHandlerCppToC( 34 | CefCompletionHandler* cls) 35 | : CefCppToC(cls) { 37 | struct_.struct_.on_complete = completion_handler_on_complete; 38 | } 39 | 40 | #ifndef NDEBUG 41 | template<> long CefCppToC::DebugObjCt = 0; 43 | #endif 44 | 45 | -------------------------------------------------------------------------------- /cef/libcef_dll/cpptoc/completion_handler_cpptoc.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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_CPPTOC_COMPLETION_HANDLER_CPPTOC_H_ 14 | #define CEF_LIBCEF_DLL_CPPTOC_COMPLETION_HANDLER_CPPTOC_H_ 15 | #pragma once 16 | 17 | #ifndef USING_CEF_SHARED 18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only") 19 | #else // USING_CEF_SHARED 20 | 21 | #include "include/cef_callback.h" 22 | #include "include/capi/cef_callback_capi.h" 23 | #include "libcef_dll/cpptoc/cpptoc.h" 24 | 25 | // Wrap a C++ class with a C structure. 26 | // This class may be instantiated and accessed wrapper-side only. 27 | class CefCompletionHandlerCppToC 28 | : public CefCppToC { 30 | public: 31 | explicit CefCompletionHandlerCppToC(CefCompletionHandler* cls); 32 | virtual ~CefCompletionHandlerCppToC() {} 33 | }; 34 | 35 | #endif // USING_CEF_SHARED 36 | #endif // CEF_LIBCEF_DLL_CPPTOC_COMPLETION_HANDLER_CPPTOC_H_ 37 | 38 | -------------------------------------------------------------------------------- /cef/libcef_dll/cpptoc/context_menu_handler_cpptoc.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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_CPPTOC_CONTEXT_MENU_HANDLER_CPPTOC_H_ 14 | #define CEF_LIBCEF_DLL_CPPTOC_CONTEXT_MENU_HANDLER_CPPTOC_H_ 15 | #pragma once 16 | 17 | #ifndef USING_CEF_SHARED 18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only") 19 | #else // USING_CEF_SHARED 20 | 21 | #include "include/cef_context_menu_handler.h" 22 | #include "include/capi/cef_context_menu_handler_capi.h" 23 | #include "libcef_dll/cpptoc/cpptoc.h" 24 | 25 | // Wrap a C++ class with a C structure. 26 | // This class may be instantiated and accessed wrapper-side only. 27 | class CefContextMenuHandlerCppToC 28 | : public CefCppToC { 30 | public: 31 | explicit CefContextMenuHandlerCppToC(CefContextMenuHandler* cls); 32 | virtual ~CefContextMenuHandlerCppToC() {} 33 | }; 34 | 35 | #endif // USING_CEF_SHARED 36 | #endif // CEF_LIBCEF_DLL_CPPTOC_CONTEXT_MENU_HANDLER_CPPTOC_H_ 37 | 38 | -------------------------------------------------------------------------------- /cef/libcef_dll/cpptoc/cookie_visitor_cpptoc.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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_CPPTOC_COOKIE_VISITOR_CPPTOC_H_ 14 | #define CEF_LIBCEF_DLL_CPPTOC_COOKIE_VISITOR_CPPTOC_H_ 15 | #pragma once 16 | 17 | #ifndef USING_CEF_SHARED 18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only") 19 | #else // USING_CEF_SHARED 20 | 21 | #include "include/cef_cookie.h" 22 | #include "include/capi/cef_cookie_capi.h" 23 | #include "libcef_dll/cpptoc/cpptoc.h" 24 | 25 | // Wrap a C++ class with a C structure. 26 | // This class may be instantiated and accessed wrapper-side only. 27 | class CefCookieVisitorCppToC 28 | : public CefCppToC { 30 | public: 31 | explicit CefCookieVisitorCppToC(CefCookieVisitor* cls); 32 | virtual ~CefCookieVisitorCppToC() {} 33 | }; 34 | 35 | #endif // USING_CEF_SHARED 36 | #endif // CEF_LIBCEF_DLL_CPPTOC_COOKIE_VISITOR_CPPTOC_H_ 37 | 38 | -------------------------------------------------------------------------------- /cef/libcef_dll/cpptoc/dialog_handler_cpptoc.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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_CPPTOC_DIALOG_HANDLER_CPPTOC_H_ 14 | #define CEF_LIBCEF_DLL_CPPTOC_DIALOG_HANDLER_CPPTOC_H_ 15 | #pragma once 16 | 17 | #ifndef USING_CEF_SHARED 18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only") 19 | #else // USING_CEF_SHARED 20 | 21 | #include "include/cef_dialog_handler.h" 22 | #include "include/capi/cef_dialog_handler_capi.h" 23 | #include "libcef_dll/cpptoc/cpptoc.h" 24 | 25 | // Wrap a C++ class with a C structure. 26 | // This class may be instantiated and accessed wrapper-side only. 27 | class CefDialogHandlerCppToC 28 | : public CefCppToC { 30 | public: 31 | explicit CefDialogHandlerCppToC(CefDialogHandler* cls); 32 | virtual ~CefDialogHandlerCppToC() {} 33 | }; 34 | 35 | #endif // USING_CEF_SHARED 36 | #endif // CEF_LIBCEF_DLL_CPPTOC_DIALOG_HANDLER_CPPTOC_H_ 37 | 38 | -------------------------------------------------------------------------------- /cef/libcef_dll/cpptoc/display_handler_cpptoc.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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_CPPTOC_DISPLAY_HANDLER_CPPTOC_H_ 14 | #define CEF_LIBCEF_DLL_CPPTOC_DISPLAY_HANDLER_CPPTOC_H_ 15 | #pragma once 16 | 17 | #ifndef USING_CEF_SHARED 18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only") 19 | #else // USING_CEF_SHARED 20 | 21 | #include "include/cef_display_handler.h" 22 | #include "include/capi/cef_display_handler_capi.h" 23 | #include "libcef_dll/cpptoc/cpptoc.h" 24 | 25 | // Wrap a C++ class with a C structure. 26 | // This class may be instantiated and accessed wrapper-side only. 27 | class CefDisplayHandlerCppToC 28 | : public CefCppToC { 30 | public: 31 | explicit CefDisplayHandlerCppToC(CefDisplayHandler* cls); 32 | virtual ~CefDisplayHandlerCppToC() {} 33 | }; 34 | 35 | #endif // USING_CEF_SHARED 36 | #endif // CEF_LIBCEF_DLL_CPPTOC_DISPLAY_HANDLER_CPPTOC_H_ 37 | 38 | -------------------------------------------------------------------------------- /cef/libcef_dll/cpptoc/domevent_listener_cpptoc.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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 | #include "libcef_dll/cpptoc/domevent_listener_cpptoc.h" 14 | #include "libcef_dll/ctocpp/domevent_ctocpp.h" 15 | 16 | 17 | // MEMBER FUNCTIONS - Body may be edited by hand. 18 | 19 | void CEF_CALLBACK domevent_listener_handle_event( 20 | struct _cef_domevent_listener_t* self, cef_domevent_t* event) { 21 | // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING 22 | 23 | DCHECK(self); 24 | if (!self) 25 | return; 26 | // Verify param: event; type: refptr_diff 27 | DCHECK(event); 28 | if (!event) 29 | return; 30 | 31 | // Execute 32 | CefDOMEventListenerCppToC::Get(self)->HandleEvent( 33 | CefDOMEventCToCpp::Wrap(event)); 34 | } 35 | 36 | 37 | // CONSTRUCTOR - Do not edit by hand. 38 | 39 | CefDOMEventListenerCppToC::CefDOMEventListenerCppToC(CefDOMEventListener* cls) 40 | : CefCppToC(cls) { 42 | struct_.struct_.handle_event = domevent_listener_handle_event; 43 | } 44 | 45 | #ifndef NDEBUG 46 | template<> long CefCppToC::DebugObjCt = 0; 48 | #endif 49 | 50 | -------------------------------------------------------------------------------- /cef/libcef_dll/cpptoc/domevent_listener_cpptoc.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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_CPPTOC_DOMEVENT_LISTENER_CPPTOC_H_ 14 | #define CEF_LIBCEF_DLL_CPPTOC_DOMEVENT_LISTENER_CPPTOC_H_ 15 | #pragma once 16 | 17 | #ifndef USING_CEF_SHARED 18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only") 19 | #else // USING_CEF_SHARED 20 | 21 | #include "include/cef_dom.h" 22 | #include "include/capi/cef_dom_capi.h" 23 | #include "libcef_dll/cpptoc/cpptoc.h" 24 | 25 | // Wrap a C++ class with a C structure. 26 | // This class may be instantiated and accessed wrapper-side only. 27 | class CefDOMEventListenerCppToC 28 | : public CefCppToC { 30 | public: 31 | explicit CefDOMEventListenerCppToC(CefDOMEventListener* cls); 32 | virtual ~CefDOMEventListenerCppToC() {} 33 | }; 34 | 35 | #endif // USING_CEF_SHARED 36 | #endif // CEF_LIBCEF_DLL_CPPTOC_DOMEVENT_LISTENER_CPPTOC_H_ 37 | 38 | -------------------------------------------------------------------------------- /cef/libcef_dll/cpptoc/domvisitor_cpptoc.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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 | #include "libcef_dll/cpptoc/domvisitor_cpptoc.h" 14 | #include "libcef_dll/ctocpp/domdocument_ctocpp.h" 15 | 16 | 17 | // MEMBER FUNCTIONS - Body may be edited by hand. 18 | 19 | void CEF_CALLBACK domvisitor_visit(struct _cef_domvisitor_t* self, 20 | struct _cef_domdocument_t* document) { 21 | // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING 22 | 23 | DCHECK(self); 24 | if (!self) 25 | return; 26 | // Verify param: document; type: refptr_diff 27 | DCHECK(document); 28 | if (!document) 29 | return; 30 | 31 | // Execute 32 | CefDOMVisitorCppToC::Get(self)->Visit( 33 | CefDOMDocumentCToCpp::Wrap(document)); 34 | } 35 | 36 | 37 | // CONSTRUCTOR - Do not edit by hand. 38 | 39 | CefDOMVisitorCppToC::CefDOMVisitorCppToC(CefDOMVisitor* cls) 40 | : CefCppToC(cls) { 41 | struct_.struct_.visit = domvisitor_visit; 42 | } 43 | 44 | #ifndef NDEBUG 45 | template<> long CefCppToC::DebugObjCt = 0; 47 | #endif 48 | 49 | -------------------------------------------------------------------------------- /cef/libcef_dll/cpptoc/domvisitor_cpptoc.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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_CPPTOC_DOMVISITOR_CPPTOC_H_ 14 | #define CEF_LIBCEF_DLL_CPPTOC_DOMVISITOR_CPPTOC_H_ 15 | #pragma once 16 | 17 | #ifndef USING_CEF_SHARED 18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only") 19 | #else // USING_CEF_SHARED 20 | 21 | #include "include/cef_dom.h" 22 | #include "include/capi/cef_dom_capi.h" 23 | #include "libcef_dll/cpptoc/cpptoc.h" 24 | 25 | // Wrap a C++ class with a C structure. 26 | // This class may be instantiated and accessed wrapper-side only. 27 | class CefDOMVisitorCppToC 28 | : public CefCppToC { 29 | public: 30 | explicit CefDOMVisitorCppToC(CefDOMVisitor* cls); 31 | virtual ~CefDOMVisitorCppToC() {} 32 | }; 33 | 34 | #endif // USING_CEF_SHARED 35 | #endif // CEF_LIBCEF_DLL_CPPTOC_DOMVISITOR_CPPTOC_H_ 36 | 37 | -------------------------------------------------------------------------------- /cef/libcef_dll/cpptoc/download_handler_cpptoc.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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_CPPTOC_DOWNLOAD_HANDLER_CPPTOC_H_ 14 | #define CEF_LIBCEF_DLL_CPPTOC_DOWNLOAD_HANDLER_CPPTOC_H_ 15 | #pragma once 16 | 17 | #ifndef USING_CEF_SHARED 18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only") 19 | #else // USING_CEF_SHARED 20 | 21 | #include "include/cef_download_handler.h" 22 | #include "include/capi/cef_download_handler_capi.h" 23 | #include "libcef_dll/cpptoc/cpptoc.h" 24 | 25 | // Wrap a C++ class with a C structure. 26 | // This class may be instantiated and accessed wrapper-side only. 27 | class CefDownloadHandlerCppToC 28 | : public CefCppToC { 30 | public: 31 | explicit CefDownloadHandlerCppToC(CefDownloadHandler* cls); 32 | virtual ~CefDownloadHandlerCppToC() {} 33 | }; 34 | 35 | #endif // USING_CEF_SHARED 36 | #endif // CEF_LIBCEF_DLL_CPPTOC_DOWNLOAD_HANDLER_CPPTOC_H_ 37 | 38 | -------------------------------------------------------------------------------- /cef/libcef_dll/cpptoc/drag_handler_cpptoc.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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 | #include "libcef_dll/cpptoc/drag_handler_cpptoc.h" 14 | #include "libcef_dll/ctocpp/browser_ctocpp.h" 15 | #include "libcef_dll/ctocpp/drag_data_ctocpp.h" 16 | 17 | 18 | // MEMBER FUNCTIONS - Body may be edited by hand. 19 | 20 | int CEF_CALLBACK drag_handler_on_drag_enter(struct _cef_drag_handler_t* self, 21 | cef_browser_t* browser, cef_drag_data_t* dragData, 22 | enum cef_drag_operations_mask_t mask) { 23 | // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING 24 | 25 | DCHECK(self); 26 | if (!self) 27 | return 0; 28 | // Verify param: browser; type: refptr_diff 29 | DCHECK(browser); 30 | if (!browser) 31 | return 0; 32 | // Verify param: dragData; type: refptr_diff 33 | DCHECK(dragData); 34 | if (!dragData) 35 | return 0; 36 | 37 | // Execute 38 | bool _retval = CefDragHandlerCppToC::Get(self)->OnDragEnter( 39 | CefBrowserCToCpp::Wrap(browser), 40 | CefDragDataCToCpp::Wrap(dragData), 41 | mask); 42 | 43 | // Return type: bool 44 | return _retval; 45 | } 46 | 47 | 48 | // CONSTRUCTOR - Do not edit by hand. 49 | 50 | CefDragHandlerCppToC::CefDragHandlerCppToC(CefDragHandler* cls) 51 | : CefCppToC(cls) { 52 | struct_.struct_.on_drag_enter = drag_handler_on_drag_enter; 53 | } 54 | 55 | #ifndef NDEBUG 56 | template<> long CefCppToC::DebugObjCt = 0; 58 | #endif 59 | 60 | -------------------------------------------------------------------------------- /cef/libcef_dll/cpptoc/drag_handler_cpptoc.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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_CPPTOC_DRAG_HANDLER_CPPTOC_H_ 14 | #define CEF_LIBCEF_DLL_CPPTOC_DRAG_HANDLER_CPPTOC_H_ 15 | #pragma once 16 | 17 | #ifndef USING_CEF_SHARED 18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only") 19 | #else // USING_CEF_SHARED 20 | 21 | #include "include/cef_drag_handler.h" 22 | #include "include/capi/cef_drag_handler_capi.h" 23 | #include "libcef_dll/cpptoc/cpptoc.h" 24 | 25 | // Wrap a C++ class with a C structure. 26 | // This class may be instantiated and accessed wrapper-side only. 27 | class CefDragHandlerCppToC 28 | : public CefCppToC { 30 | public: 31 | explicit CefDragHandlerCppToC(CefDragHandler* cls); 32 | virtual ~CefDragHandlerCppToC() {} 33 | }; 34 | 35 | #endif // USING_CEF_SHARED 36 | #endif // CEF_LIBCEF_DLL_CPPTOC_DRAG_HANDLER_CPPTOC_H_ 37 | 38 | -------------------------------------------------------------------------------- /cef/libcef_dll/cpptoc/focus_handler_cpptoc.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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_CPPTOC_FOCUS_HANDLER_CPPTOC_H_ 14 | #define CEF_LIBCEF_DLL_CPPTOC_FOCUS_HANDLER_CPPTOC_H_ 15 | #pragma once 16 | 17 | #ifndef USING_CEF_SHARED 18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only") 19 | #else // USING_CEF_SHARED 20 | 21 | #include "include/cef_focus_handler.h" 22 | #include "include/capi/cef_focus_handler_capi.h" 23 | #include "libcef_dll/cpptoc/cpptoc.h" 24 | 25 | // Wrap a C++ class with a C structure. 26 | // This class may be instantiated and accessed wrapper-side only. 27 | class CefFocusHandlerCppToC 28 | : public CefCppToC { 30 | public: 31 | explicit CefFocusHandlerCppToC(CefFocusHandler* cls); 32 | virtual ~CefFocusHandlerCppToC() {} 33 | }; 34 | 35 | #endif // USING_CEF_SHARED 36 | #endif // CEF_LIBCEF_DLL_CPPTOC_FOCUS_HANDLER_CPPTOC_H_ 37 | 38 | -------------------------------------------------------------------------------- /cef/libcef_dll/cpptoc/geolocation_handler_cpptoc.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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_CPPTOC_GEOLOCATION_HANDLER_CPPTOC_H_ 14 | #define CEF_LIBCEF_DLL_CPPTOC_GEOLOCATION_HANDLER_CPPTOC_H_ 15 | #pragma once 16 | 17 | #ifndef USING_CEF_SHARED 18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only") 19 | #else // USING_CEF_SHARED 20 | 21 | #include "include/cef_geolocation_handler.h" 22 | #include "include/capi/cef_geolocation_handler_capi.h" 23 | #include "libcef_dll/cpptoc/cpptoc.h" 24 | 25 | // Wrap a C++ class with a C structure. 26 | // This class may be instantiated and accessed wrapper-side only. 27 | class CefGeolocationHandlerCppToC 28 | : public CefCppToC { 30 | public: 31 | explicit CefGeolocationHandlerCppToC(CefGeolocationHandler* cls); 32 | virtual ~CefGeolocationHandlerCppToC() {} 33 | }; 34 | 35 | #endif // USING_CEF_SHARED 36 | #endif // CEF_LIBCEF_DLL_CPPTOC_GEOLOCATION_HANDLER_CPPTOC_H_ 37 | 38 | -------------------------------------------------------------------------------- /cef/libcef_dll/cpptoc/get_geolocation_callback_cpptoc.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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 | #include "libcef_dll/cpptoc/get_geolocation_callback_cpptoc.h" 14 | 15 | 16 | // MEMBER FUNCTIONS - Body may be edited by hand. 17 | 18 | void CEF_CALLBACK get_geolocation_callback_on_location_update( 19 | struct _cef_get_geolocation_callback_t* self, 20 | const struct _cef_geoposition_t* position) { 21 | // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING 22 | 23 | DCHECK(self); 24 | if (!self) 25 | return; 26 | // Verify param: position; type: struct_byref_const 27 | DCHECK(position); 28 | if (!position) 29 | return; 30 | 31 | // Translate param: position; type: struct_byref_const 32 | CefGeoposition positionObj; 33 | if (position) 34 | positionObj.Set(*position, false); 35 | 36 | // Execute 37 | CefGetGeolocationCallbackCppToC::Get(self)->OnLocationUpdate( 38 | positionObj); 39 | } 40 | 41 | 42 | // CONSTRUCTOR - Do not edit by hand. 43 | 44 | CefGetGeolocationCallbackCppToC::CefGetGeolocationCallbackCppToC( 45 | CefGetGeolocationCallback* cls) 46 | : CefCppToC(cls) { 48 | struct_.struct_.on_location_update = 49 | get_geolocation_callback_on_location_update; 50 | } 51 | 52 | #ifndef NDEBUG 53 | template<> long CefCppToC::DebugObjCt = 55 | 0; 56 | #endif 57 | 58 | -------------------------------------------------------------------------------- /cef/libcef_dll/cpptoc/get_geolocation_callback_cpptoc.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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_CPPTOC_GET_GEOLOCATION_CALLBACK_CPPTOC_H_ 14 | #define CEF_LIBCEF_DLL_CPPTOC_GET_GEOLOCATION_CALLBACK_CPPTOC_H_ 15 | #pragma once 16 | 17 | #ifndef USING_CEF_SHARED 18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only") 19 | #else // USING_CEF_SHARED 20 | 21 | #include "include/cef_geolocation.h" 22 | #include "include/capi/cef_geolocation_capi.h" 23 | #include "libcef_dll/cpptoc/cpptoc.h" 24 | 25 | // Wrap a C++ class with a C structure. 26 | // This class may be instantiated and accessed wrapper-side only. 27 | class CefGetGeolocationCallbackCppToC 28 | : public CefCppToC { 30 | public: 31 | explicit CefGetGeolocationCallbackCppToC(CefGetGeolocationCallback* cls); 32 | virtual ~CefGetGeolocationCallbackCppToC() {} 33 | }; 34 | 35 | #endif // USING_CEF_SHARED 36 | #endif // CEF_LIBCEF_DLL_CPPTOC_GET_GEOLOCATION_CALLBACK_CPPTOC_H_ 37 | 38 | -------------------------------------------------------------------------------- /cef/libcef_dll/cpptoc/jsdialog_handler_cpptoc.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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_CPPTOC_JSDIALOG_HANDLER_CPPTOC_H_ 14 | #define CEF_LIBCEF_DLL_CPPTOC_JSDIALOG_HANDLER_CPPTOC_H_ 15 | #pragma once 16 | 17 | #ifndef USING_CEF_SHARED 18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only") 19 | #else // USING_CEF_SHARED 20 | 21 | #include "include/cef_jsdialog_handler.h" 22 | #include "include/capi/cef_jsdialog_handler_capi.h" 23 | #include "libcef_dll/cpptoc/cpptoc.h" 24 | 25 | // Wrap a C++ class with a C structure. 26 | // This class may be instantiated and accessed wrapper-side only. 27 | class CefJSDialogHandlerCppToC 28 | : public CefCppToC { 30 | public: 31 | explicit CefJSDialogHandlerCppToC(CefJSDialogHandler* cls); 32 | virtual ~CefJSDialogHandlerCppToC() {} 33 | }; 34 | 35 | #endif // USING_CEF_SHARED 36 | #endif // CEF_LIBCEF_DLL_CPPTOC_JSDIALOG_HANDLER_CPPTOC_H_ 37 | 38 | -------------------------------------------------------------------------------- /cef/libcef_dll/cpptoc/keyboard_handler_cpptoc.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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_CPPTOC_KEYBOARD_HANDLER_CPPTOC_H_ 14 | #define CEF_LIBCEF_DLL_CPPTOC_KEYBOARD_HANDLER_CPPTOC_H_ 15 | #pragma once 16 | 17 | #ifndef USING_CEF_SHARED 18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only") 19 | #else // USING_CEF_SHARED 20 | 21 | #include "include/cef_keyboard_handler.h" 22 | #include "include/capi/cef_keyboard_handler_capi.h" 23 | #include "libcef_dll/cpptoc/cpptoc.h" 24 | 25 | // Wrap a C++ class with a C structure. 26 | // This class may be instantiated and accessed wrapper-side only. 27 | class CefKeyboardHandlerCppToC 28 | : public CefCppToC { 30 | public: 31 | explicit CefKeyboardHandlerCppToC(CefKeyboardHandler* cls); 32 | virtual ~CefKeyboardHandlerCppToC() {} 33 | }; 34 | 35 | #endif // USING_CEF_SHARED 36 | #endif // CEF_LIBCEF_DLL_CPPTOC_KEYBOARD_HANDLER_CPPTOC_H_ 37 | 38 | -------------------------------------------------------------------------------- /cef/libcef_dll/cpptoc/life_span_handler_cpptoc.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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_CPPTOC_LIFE_SPAN_HANDLER_CPPTOC_H_ 14 | #define CEF_LIBCEF_DLL_CPPTOC_LIFE_SPAN_HANDLER_CPPTOC_H_ 15 | #pragma once 16 | 17 | #ifndef USING_CEF_SHARED 18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only") 19 | #else // USING_CEF_SHARED 20 | 21 | #include "include/cef_life_span_handler.h" 22 | #include "include/capi/cef_life_span_handler_capi.h" 23 | #include "include/cef_client.h" 24 | #include "include/capi/cef_client_capi.h" 25 | #include "libcef_dll/cpptoc/cpptoc.h" 26 | 27 | // Wrap a C++ class with a C structure. 28 | // This class may be instantiated and accessed wrapper-side only. 29 | class CefLifeSpanHandlerCppToC 30 | : public CefCppToC { 32 | public: 33 | explicit CefLifeSpanHandlerCppToC(CefLifeSpanHandler* cls); 34 | virtual ~CefLifeSpanHandlerCppToC() {} 35 | }; 36 | 37 | #endif // USING_CEF_SHARED 38 | #endif // CEF_LIBCEF_DLL_CPPTOC_LIFE_SPAN_HANDLER_CPPTOC_H_ 39 | 40 | -------------------------------------------------------------------------------- /cef/libcef_dll/cpptoc/load_handler_cpptoc.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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_CPPTOC_LOAD_HANDLER_CPPTOC_H_ 14 | #define CEF_LIBCEF_DLL_CPPTOC_LOAD_HANDLER_CPPTOC_H_ 15 | #pragma once 16 | 17 | #ifndef USING_CEF_SHARED 18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only") 19 | #else // USING_CEF_SHARED 20 | 21 | #include "include/cef_load_handler.h" 22 | #include "include/capi/cef_load_handler_capi.h" 23 | #include "libcef_dll/cpptoc/cpptoc.h" 24 | 25 | // Wrap a C++ class with a C structure. 26 | // This class may be instantiated and accessed wrapper-side only. 27 | class CefLoadHandlerCppToC 28 | : public CefCppToC { 30 | public: 31 | explicit CefLoadHandlerCppToC(CefLoadHandler* cls); 32 | virtual ~CefLoadHandlerCppToC() {} 33 | }; 34 | 35 | #endif // USING_CEF_SHARED 36 | #endif // CEF_LIBCEF_DLL_CPPTOC_LOAD_HANDLER_CPPTOC_H_ 37 | 38 | -------------------------------------------------------------------------------- /cef/libcef_dll/cpptoc/read_handler_cpptoc.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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_CPPTOC_READ_HANDLER_CPPTOC_H_ 14 | #define CEF_LIBCEF_DLL_CPPTOC_READ_HANDLER_CPPTOC_H_ 15 | #pragma once 16 | 17 | #ifndef USING_CEF_SHARED 18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only") 19 | #else // USING_CEF_SHARED 20 | 21 | #include "include/cef_stream.h" 22 | #include "include/capi/cef_stream_capi.h" 23 | #include "libcef_dll/cpptoc/cpptoc.h" 24 | 25 | // Wrap a C++ class with a C structure. 26 | // This class may be instantiated and accessed wrapper-side only. 27 | class CefReadHandlerCppToC 28 | : public CefCppToC { 30 | public: 31 | explicit CefReadHandlerCppToC(CefReadHandler* cls); 32 | virtual ~CefReadHandlerCppToC() {} 33 | }; 34 | 35 | #endif // USING_CEF_SHARED 36 | #endif // CEF_LIBCEF_DLL_CPPTOC_READ_HANDLER_CPPTOC_H_ 37 | 38 | -------------------------------------------------------------------------------- /cef/libcef_dll/cpptoc/render_handler_cpptoc.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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_CPPTOC_RENDER_HANDLER_CPPTOC_H_ 14 | #define CEF_LIBCEF_DLL_CPPTOC_RENDER_HANDLER_CPPTOC_H_ 15 | #pragma once 16 | 17 | #ifndef USING_CEF_SHARED 18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only") 19 | #else // USING_CEF_SHARED 20 | 21 | #include "include/cef_render_handler.h" 22 | #include "include/capi/cef_render_handler_capi.h" 23 | #include "libcef_dll/cpptoc/cpptoc.h" 24 | 25 | // Wrap a C++ class with a C structure. 26 | // This class may be instantiated and accessed wrapper-side only. 27 | class CefRenderHandlerCppToC 28 | : public CefCppToC { 30 | public: 31 | explicit CefRenderHandlerCppToC(CefRenderHandler* cls); 32 | virtual ~CefRenderHandlerCppToC() {} 33 | }; 34 | 35 | #endif // USING_CEF_SHARED 36 | #endif // CEF_LIBCEF_DLL_CPPTOC_RENDER_HANDLER_CPPTOC_H_ 37 | 38 | -------------------------------------------------------------------------------- /cef/libcef_dll/cpptoc/render_process_handler_cpptoc.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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_CPPTOC_RENDER_PROCESS_HANDLER_CPPTOC_H_ 14 | #define CEF_LIBCEF_DLL_CPPTOC_RENDER_PROCESS_HANDLER_CPPTOC_H_ 15 | #pragma once 16 | 17 | #ifndef USING_CEF_SHARED 18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only") 19 | #else // USING_CEF_SHARED 20 | 21 | #include "include/cef_render_process_handler.h" 22 | #include "include/capi/cef_render_process_handler_capi.h" 23 | #include "libcef_dll/cpptoc/cpptoc.h" 24 | 25 | // Wrap a C++ class with a C structure. 26 | // This class may be instantiated and accessed wrapper-side only. 27 | class CefRenderProcessHandlerCppToC 28 | : public CefCppToC { 30 | public: 31 | explicit CefRenderProcessHandlerCppToC(CefRenderProcessHandler* cls); 32 | virtual ~CefRenderProcessHandlerCppToC() {} 33 | }; 34 | 35 | #endif // USING_CEF_SHARED 36 | #endif // CEF_LIBCEF_DLL_CPPTOC_RENDER_PROCESS_HANDLER_CPPTOC_H_ 37 | 38 | -------------------------------------------------------------------------------- /cef/libcef_dll/cpptoc/request_context_handler_cpptoc.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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 | #include "libcef_dll/cpptoc/request_context_handler_cpptoc.h" 14 | #include "libcef_dll/ctocpp/cookie_manager_ctocpp.h" 15 | 16 | 17 | // MEMBER FUNCTIONS - Body may be edited by hand. 18 | 19 | cef_cookie_manager_t* CEF_CALLBACK request_context_handler_get_cookie_manager( 20 | struct _cef_request_context_handler_t* self) { 21 | // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING 22 | 23 | DCHECK(self); 24 | if (!self) 25 | return NULL; 26 | 27 | // Execute 28 | CefRefPtr _retval = CefRequestContextHandlerCppToC::Get( 29 | self)->GetCookieManager(); 30 | 31 | // Return type: refptr_diff 32 | return CefCookieManagerCToCpp::Unwrap(_retval); 33 | } 34 | 35 | 36 | // CONSTRUCTOR - Do not edit by hand. 37 | 38 | CefRequestContextHandlerCppToC::CefRequestContextHandlerCppToC( 39 | CefRequestContextHandler* cls) 40 | : CefCppToC(cls) { 42 | struct_.struct_.get_cookie_manager = 43 | request_context_handler_get_cookie_manager; 44 | } 45 | 46 | #ifndef NDEBUG 47 | template<> long CefCppToC::DebugObjCt = 0; 49 | #endif 50 | 51 | -------------------------------------------------------------------------------- /cef/libcef_dll/cpptoc/request_context_handler_cpptoc.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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_CPPTOC_REQUEST_CONTEXT_HANDLER_CPPTOC_H_ 14 | #define CEF_LIBCEF_DLL_CPPTOC_REQUEST_CONTEXT_HANDLER_CPPTOC_H_ 15 | #pragma once 16 | 17 | #ifndef USING_CEF_SHARED 18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only") 19 | #else // USING_CEF_SHARED 20 | 21 | #include "include/cef_request_context_handler.h" 22 | #include "include/capi/cef_request_context_handler_capi.h" 23 | #include "libcef_dll/cpptoc/cpptoc.h" 24 | 25 | // Wrap a C++ class with a C structure. 26 | // This class may be instantiated and accessed wrapper-side only. 27 | class CefRequestContextHandlerCppToC 28 | : public CefCppToC { 30 | public: 31 | explicit CefRequestContextHandlerCppToC(CefRequestContextHandler* cls); 32 | virtual ~CefRequestContextHandlerCppToC() {} 33 | }; 34 | 35 | #endif // USING_CEF_SHARED 36 | #endif // CEF_LIBCEF_DLL_CPPTOC_REQUEST_CONTEXT_HANDLER_CPPTOC_H_ 37 | 38 | -------------------------------------------------------------------------------- /cef/libcef_dll/cpptoc/request_handler_cpptoc.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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_CPPTOC_REQUEST_HANDLER_CPPTOC_H_ 14 | #define CEF_LIBCEF_DLL_CPPTOC_REQUEST_HANDLER_CPPTOC_H_ 15 | #pragma once 16 | 17 | #ifndef USING_CEF_SHARED 18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only") 19 | #else // USING_CEF_SHARED 20 | 21 | #include "include/cef_request_handler.h" 22 | #include "include/capi/cef_request_handler_capi.h" 23 | #include "libcef_dll/cpptoc/cpptoc.h" 24 | 25 | // Wrap a C++ class with a C structure. 26 | // This class may be instantiated and accessed wrapper-side only. 27 | class CefRequestHandlerCppToC 28 | : public CefCppToC { 30 | public: 31 | explicit CefRequestHandlerCppToC(CefRequestHandler* cls); 32 | virtual ~CefRequestHandlerCppToC() {} 33 | }; 34 | 35 | #endif // USING_CEF_SHARED 36 | #endif // CEF_LIBCEF_DLL_CPPTOC_REQUEST_HANDLER_CPPTOC_H_ 37 | 38 | -------------------------------------------------------------------------------- /cef/libcef_dll/cpptoc/resource_bundle_handler_cpptoc.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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_CPPTOC_RESOURCE_BUNDLE_HANDLER_CPPTOC_H_ 14 | #define CEF_LIBCEF_DLL_CPPTOC_RESOURCE_BUNDLE_HANDLER_CPPTOC_H_ 15 | #pragma once 16 | 17 | #ifndef USING_CEF_SHARED 18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only") 19 | #else // USING_CEF_SHARED 20 | 21 | #include "include/cef_resource_bundle_handler.h" 22 | #include "include/capi/cef_resource_bundle_handler_capi.h" 23 | #include "libcef_dll/cpptoc/cpptoc.h" 24 | 25 | // Wrap a C++ class with a C structure. 26 | // This class may be instantiated and accessed wrapper-side only. 27 | class CefResourceBundleHandlerCppToC 28 | : public CefCppToC { 30 | public: 31 | explicit CefResourceBundleHandlerCppToC(CefResourceBundleHandler* cls); 32 | virtual ~CefResourceBundleHandlerCppToC() {} 33 | }; 34 | 35 | #endif // USING_CEF_SHARED 36 | #endif // CEF_LIBCEF_DLL_CPPTOC_RESOURCE_BUNDLE_HANDLER_CPPTOC_H_ 37 | 38 | -------------------------------------------------------------------------------- /cef/libcef_dll/cpptoc/resource_handler_cpptoc.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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_CPPTOC_RESOURCE_HANDLER_CPPTOC_H_ 14 | #define CEF_LIBCEF_DLL_CPPTOC_RESOURCE_HANDLER_CPPTOC_H_ 15 | #pragma once 16 | 17 | #ifndef USING_CEF_SHARED 18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only") 19 | #else // USING_CEF_SHARED 20 | 21 | #include "include/cef_resource_handler.h" 22 | #include "include/capi/cef_resource_handler_capi.h" 23 | #include "libcef_dll/cpptoc/cpptoc.h" 24 | 25 | // Wrap a C++ class with a C structure. 26 | // This class may be instantiated and accessed wrapper-side only. 27 | class CefResourceHandlerCppToC 28 | : public CefCppToC { 30 | public: 31 | explicit CefResourceHandlerCppToC(CefResourceHandler* cls); 32 | virtual ~CefResourceHandlerCppToC() {} 33 | }; 34 | 35 | #endif // USING_CEF_SHARED 36 | #endif // CEF_LIBCEF_DLL_CPPTOC_RESOURCE_HANDLER_CPPTOC_H_ 37 | 38 | -------------------------------------------------------------------------------- /cef/libcef_dll/cpptoc/run_file_dialog_callback_cpptoc.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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 | #include "libcef_dll/cpptoc/run_file_dialog_callback_cpptoc.h" 14 | #include "libcef_dll/ctocpp/browser_host_ctocpp.h" 15 | #include "libcef_dll/transfer_util.h" 16 | 17 | 18 | // MEMBER FUNCTIONS - Body may be edited by hand. 19 | 20 | void CEF_CALLBACK run_file_dialog_callback_cont( 21 | struct _cef_run_file_dialog_callback_t* self, 22 | struct _cef_browser_host_t* browser_host, cef_string_list_t file_paths) { 23 | // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING 24 | 25 | DCHECK(self); 26 | if (!self) 27 | return; 28 | // Verify param: browser_host; type: refptr_diff 29 | DCHECK(browser_host); 30 | if (!browser_host) 31 | return; 32 | // Verify param: file_paths; type: string_vec_byref_const 33 | DCHECK(file_paths); 34 | if (!file_paths) 35 | return; 36 | 37 | // Translate param: file_paths; type: string_vec_byref_const 38 | std::vector file_pathsList; 39 | transfer_string_list_contents(file_paths, file_pathsList); 40 | 41 | // Execute 42 | CefRunFileDialogCallbackCppToC::Get(self)->OnFileDialogDismissed( 43 | CefBrowserHostCToCpp::Wrap(browser_host), 44 | file_pathsList); 45 | } 46 | 47 | 48 | // CONSTRUCTOR - Do not edit by hand. 49 | 50 | CefRunFileDialogCallbackCppToC::CefRunFileDialogCallbackCppToC( 51 | CefRunFileDialogCallback* cls) 52 | : CefCppToC(cls) { 54 | struct_.struct_.cont = run_file_dialog_callback_cont; 55 | } 56 | 57 | #ifndef NDEBUG 58 | template<> long CefCppToC::DebugObjCt = 0; 60 | #endif 61 | 62 | -------------------------------------------------------------------------------- /cef/libcef_dll/cpptoc/run_file_dialog_callback_cpptoc.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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_CPPTOC_RUN_FILE_DIALOG_CALLBACK_CPPTOC_H_ 14 | #define CEF_LIBCEF_DLL_CPPTOC_RUN_FILE_DIALOG_CALLBACK_CPPTOC_H_ 15 | #pragma once 16 | 17 | #ifndef USING_CEF_SHARED 18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only") 19 | #else // USING_CEF_SHARED 20 | 21 | #include "include/cef_browser.h" 22 | #include "include/capi/cef_browser_capi.h" 23 | #include "include/cef_client.h" 24 | #include "include/capi/cef_client_capi.h" 25 | #include "libcef_dll/cpptoc/cpptoc.h" 26 | 27 | // Wrap a C++ class with a C structure. 28 | // This class may be instantiated and accessed wrapper-side only. 29 | class CefRunFileDialogCallbackCppToC 30 | : public CefCppToC { 32 | public: 33 | explicit CefRunFileDialogCallbackCppToC(CefRunFileDialogCallback* cls); 34 | virtual ~CefRunFileDialogCallbackCppToC() {} 35 | }; 36 | 37 | #endif // USING_CEF_SHARED 38 | #endif // CEF_LIBCEF_DLL_CPPTOC_RUN_FILE_DIALOG_CALLBACK_CPPTOC_H_ 39 | 40 | -------------------------------------------------------------------------------- /cef/libcef_dll/cpptoc/scheme_handler_factory_cpptoc.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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_CPPTOC_SCHEME_HANDLER_FACTORY_CPPTOC_H_ 14 | #define CEF_LIBCEF_DLL_CPPTOC_SCHEME_HANDLER_FACTORY_CPPTOC_H_ 15 | #pragma once 16 | 17 | #ifndef USING_CEF_SHARED 18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only") 19 | #else // USING_CEF_SHARED 20 | 21 | #include "include/cef_scheme.h" 22 | #include "include/capi/cef_scheme_capi.h" 23 | #include "libcef_dll/cpptoc/cpptoc.h" 24 | 25 | // Wrap a C++ class with a C structure. 26 | // This class may be instantiated and accessed wrapper-side only. 27 | class CefSchemeHandlerFactoryCppToC 28 | : public CefCppToC { 30 | public: 31 | explicit CefSchemeHandlerFactoryCppToC(CefSchemeHandlerFactory* cls); 32 | virtual ~CefSchemeHandlerFactoryCppToC() {} 33 | }; 34 | 35 | #endif // USING_CEF_SHARED 36 | #endif // CEF_LIBCEF_DLL_CPPTOC_SCHEME_HANDLER_FACTORY_CPPTOC_H_ 37 | 38 | -------------------------------------------------------------------------------- /cef/libcef_dll/cpptoc/string_visitor_cpptoc.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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 | #include "libcef_dll/cpptoc/string_visitor_cpptoc.h" 14 | 15 | 16 | // MEMBER FUNCTIONS - Body may be edited by hand. 17 | 18 | void CEF_CALLBACK string_visitor_visit(struct _cef_string_visitor_t* self, 19 | const cef_string_t* string) { 20 | // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING 21 | 22 | DCHECK(self); 23 | if (!self) 24 | return; 25 | // Verify param: string; type: string_byref_const 26 | DCHECK(string); 27 | if (!string) 28 | return; 29 | 30 | // Execute 31 | CefStringVisitorCppToC::Get(self)->Visit( 32 | CefString(string)); 33 | } 34 | 35 | 36 | // CONSTRUCTOR - Do not edit by hand. 37 | 38 | CefStringVisitorCppToC::CefStringVisitorCppToC(CefStringVisitor* cls) 39 | : CefCppToC( 40 | cls) { 41 | struct_.struct_.visit = string_visitor_visit; 42 | } 43 | 44 | #ifndef NDEBUG 45 | template<> long CefCppToC::DebugObjCt = 0; 47 | #endif 48 | 49 | -------------------------------------------------------------------------------- /cef/libcef_dll/cpptoc/string_visitor_cpptoc.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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_CPPTOC_STRING_VISITOR_CPPTOC_H_ 14 | #define CEF_LIBCEF_DLL_CPPTOC_STRING_VISITOR_CPPTOC_H_ 15 | #pragma once 16 | 17 | #ifndef USING_CEF_SHARED 18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only") 19 | #else // USING_CEF_SHARED 20 | 21 | #include "include/cef_string_visitor.h" 22 | #include "include/capi/cef_string_visitor_capi.h" 23 | #include "libcef_dll/cpptoc/cpptoc.h" 24 | 25 | // Wrap a C++ class with a C structure. 26 | // This class may be instantiated and accessed wrapper-side only. 27 | class CefStringVisitorCppToC 28 | : public CefCppToC { 30 | public: 31 | explicit CefStringVisitorCppToC(CefStringVisitor* cls); 32 | virtual ~CefStringVisitorCppToC() {} 33 | }; 34 | 35 | #endif // USING_CEF_SHARED 36 | #endif // CEF_LIBCEF_DLL_CPPTOC_STRING_VISITOR_CPPTOC_H_ 37 | 38 | -------------------------------------------------------------------------------- /cef/libcef_dll/cpptoc/task_cpptoc.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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 | #include "libcef_dll/cpptoc/task_cpptoc.h" 14 | 15 | 16 | // MEMBER FUNCTIONS - Body may be edited by hand. 17 | 18 | void CEF_CALLBACK task_execute(struct _cef_task_t* self) { 19 | // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING 20 | 21 | DCHECK(self); 22 | if (!self) 23 | return; 24 | 25 | // Execute 26 | CefTaskCppToC::Get(self)->Execute(); 27 | } 28 | 29 | 30 | // CONSTRUCTOR - Do not edit by hand. 31 | 32 | CefTaskCppToC::CefTaskCppToC(CefTask* cls) 33 | : CefCppToC(cls) { 34 | struct_.struct_.execute = task_execute; 35 | } 36 | 37 | #ifndef NDEBUG 38 | template<> long CefCppToC::DebugObjCt = 0; 39 | #endif 40 | 41 | -------------------------------------------------------------------------------- /cef/libcef_dll/cpptoc/task_cpptoc.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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_CPPTOC_TASK_CPPTOC_H_ 14 | #define CEF_LIBCEF_DLL_CPPTOC_TASK_CPPTOC_H_ 15 | #pragma once 16 | 17 | #ifndef USING_CEF_SHARED 18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only") 19 | #else // USING_CEF_SHARED 20 | 21 | #include "include/cef_task.h" 22 | #include "include/capi/cef_task_capi.h" 23 | #include "libcef_dll/cpptoc/cpptoc.h" 24 | 25 | // Wrap a C++ class with a C structure. 26 | // This class may be instantiated and accessed wrapper-side only. 27 | class CefTaskCppToC 28 | : public CefCppToC { 29 | public: 30 | explicit CefTaskCppToC(CefTask* cls); 31 | virtual ~CefTaskCppToC() {} 32 | }; 33 | 34 | #endif // USING_CEF_SHARED 35 | #endif // CEF_LIBCEF_DLL_CPPTOC_TASK_CPPTOC_H_ 36 | 37 | -------------------------------------------------------------------------------- /cef/libcef_dll/cpptoc/trace_client_cpptoc.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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_CPPTOC_TRACE_CLIENT_CPPTOC_H_ 14 | #define CEF_LIBCEF_DLL_CPPTOC_TRACE_CLIENT_CPPTOC_H_ 15 | #pragma once 16 | 17 | #ifndef USING_CEF_SHARED 18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only") 19 | #else // USING_CEF_SHARED 20 | 21 | #include "include/cef_trace.h" 22 | #include "include/capi/cef_trace_capi.h" 23 | #include "libcef_dll/cpptoc/cpptoc.h" 24 | 25 | // Wrap a C++ class with a C structure. 26 | // This class may be instantiated and accessed wrapper-side only. 27 | class CefTraceClientCppToC 28 | : public CefCppToC { 30 | public: 31 | explicit CefTraceClientCppToC(CefTraceClient* cls); 32 | virtual ~CefTraceClientCppToC() {} 33 | }; 34 | 35 | #endif // USING_CEF_SHARED 36 | #endif // CEF_LIBCEF_DLL_CPPTOC_TRACE_CLIENT_CPPTOC_H_ 37 | 38 | -------------------------------------------------------------------------------- /cef/libcef_dll/cpptoc/urlrequest_client_cpptoc.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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_CPPTOC_URLREQUEST_CLIENT_CPPTOC_H_ 14 | #define CEF_LIBCEF_DLL_CPPTOC_URLREQUEST_CLIENT_CPPTOC_H_ 15 | #pragma once 16 | 17 | #ifndef USING_CEF_SHARED 18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only") 19 | #else // USING_CEF_SHARED 20 | 21 | #include "include/cef_urlrequest.h" 22 | #include "include/capi/cef_urlrequest_capi.h" 23 | #include "libcef_dll/cpptoc/cpptoc.h" 24 | 25 | // Wrap a C++ class with a C structure. 26 | // This class may be instantiated and accessed wrapper-side only. 27 | class CefURLRequestClientCppToC 28 | : public CefCppToC { 30 | public: 31 | explicit CefURLRequestClientCppToC(CefURLRequestClient* cls); 32 | virtual ~CefURLRequestClientCppToC() {} 33 | }; 34 | 35 | #endif // USING_CEF_SHARED 36 | #endif // CEF_LIBCEF_DLL_CPPTOC_URLREQUEST_CLIENT_CPPTOC_H_ 37 | 38 | -------------------------------------------------------------------------------- /cef/libcef_dll/cpptoc/v8accessor_cpptoc.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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_CPPTOC_V8ACCESSOR_CPPTOC_H_ 14 | #define CEF_LIBCEF_DLL_CPPTOC_V8ACCESSOR_CPPTOC_H_ 15 | #pragma once 16 | 17 | #ifndef USING_CEF_SHARED 18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only") 19 | #else // USING_CEF_SHARED 20 | 21 | #include "include/cef_v8.h" 22 | #include "include/capi/cef_v8_capi.h" 23 | #include "libcef_dll/cpptoc/cpptoc.h" 24 | 25 | // Wrap a C++ class with a C structure. 26 | // This class may be instantiated and accessed wrapper-side only. 27 | class CefV8AccessorCppToC 28 | : public CefCppToC { 29 | public: 30 | explicit CefV8AccessorCppToC(CefV8Accessor* cls); 31 | virtual ~CefV8AccessorCppToC() {} 32 | }; 33 | 34 | #endif // USING_CEF_SHARED 35 | #endif // CEF_LIBCEF_DLL_CPPTOC_V8ACCESSOR_CPPTOC_H_ 36 | 37 | -------------------------------------------------------------------------------- /cef/libcef_dll/cpptoc/v8handler_cpptoc.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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_CPPTOC_V8HANDLER_CPPTOC_H_ 14 | #define CEF_LIBCEF_DLL_CPPTOC_V8HANDLER_CPPTOC_H_ 15 | #pragma once 16 | 17 | #ifndef USING_CEF_SHARED 18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only") 19 | #else // USING_CEF_SHARED 20 | 21 | #include "include/cef_v8.h" 22 | #include "include/capi/cef_v8_capi.h" 23 | #include "libcef_dll/cpptoc/cpptoc.h" 24 | 25 | // Wrap a C++ class with a C structure. 26 | // This class may be instantiated and accessed wrapper-side only. 27 | class CefV8HandlerCppToC 28 | : public CefCppToC { 29 | public: 30 | explicit CefV8HandlerCppToC(CefV8Handler* cls); 31 | virtual ~CefV8HandlerCppToC() {} 32 | }; 33 | 34 | #endif // USING_CEF_SHARED 35 | #endif // CEF_LIBCEF_DLL_CPPTOC_V8HANDLER_CPPTOC_H_ 36 | 37 | -------------------------------------------------------------------------------- /cef/libcef_dll/cpptoc/web_plugin_info_visitor_cpptoc.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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 | #include "libcef_dll/cpptoc/web_plugin_info_visitor_cpptoc.h" 14 | #include "libcef_dll/ctocpp/web_plugin_info_ctocpp.h" 15 | 16 | 17 | // MEMBER FUNCTIONS - Body may be edited by hand. 18 | 19 | int CEF_CALLBACK web_plugin_info_visitor_visit( 20 | struct _cef_web_plugin_info_visitor_t* self, cef_web_plugin_info_t* info, 21 | int count, int total) { 22 | // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING 23 | 24 | DCHECK(self); 25 | if (!self) 26 | return 0; 27 | // Verify param: info; type: refptr_diff 28 | DCHECK(info); 29 | if (!info) 30 | return 0; 31 | 32 | // Execute 33 | bool _retval = CefWebPluginInfoVisitorCppToC::Get(self)->Visit( 34 | CefWebPluginInfoCToCpp::Wrap(info), 35 | count, 36 | total); 37 | 38 | // Return type: bool 39 | return _retval; 40 | } 41 | 42 | 43 | // CONSTRUCTOR - Do not edit by hand. 44 | 45 | CefWebPluginInfoVisitorCppToC::CefWebPluginInfoVisitorCppToC( 46 | CefWebPluginInfoVisitor* cls) 47 | : CefCppToC(cls) { 49 | struct_.struct_.visit = web_plugin_info_visitor_visit; 50 | } 51 | 52 | #ifndef NDEBUG 53 | template<> long CefCppToC::DebugObjCt = 0; 55 | #endif 56 | 57 | -------------------------------------------------------------------------------- /cef/libcef_dll/cpptoc/web_plugin_info_visitor_cpptoc.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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_CPPTOC_WEB_PLUGIN_INFO_VISITOR_CPPTOC_H_ 14 | #define CEF_LIBCEF_DLL_CPPTOC_WEB_PLUGIN_INFO_VISITOR_CPPTOC_H_ 15 | #pragma once 16 | 17 | #ifndef USING_CEF_SHARED 18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only") 19 | #else // USING_CEF_SHARED 20 | 21 | #include "include/cef_web_plugin.h" 22 | #include "include/capi/cef_web_plugin_capi.h" 23 | #include "libcef_dll/cpptoc/cpptoc.h" 24 | 25 | // Wrap a C++ class with a C structure. 26 | // This class may be instantiated and accessed wrapper-side only. 27 | class CefWebPluginInfoVisitorCppToC 28 | : public CefCppToC { 30 | public: 31 | explicit CefWebPluginInfoVisitorCppToC(CefWebPluginInfoVisitor* cls); 32 | virtual ~CefWebPluginInfoVisitorCppToC() {} 33 | }; 34 | 35 | #endif // USING_CEF_SHARED 36 | #endif // CEF_LIBCEF_DLL_CPPTOC_WEB_PLUGIN_INFO_VISITOR_CPPTOC_H_ 37 | 38 | -------------------------------------------------------------------------------- /cef/libcef_dll/cpptoc/web_plugin_unstable_callback_cpptoc.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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 | #include "libcef_dll/cpptoc/web_plugin_unstable_callback_cpptoc.h" 14 | 15 | 16 | // MEMBER FUNCTIONS - Body may be edited by hand. 17 | 18 | void CEF_CALLBACK web_plugin_unstable_callback_is_unstable( 19 | struct _cef_web_plugin_unstable_callback_t* self, const cef_string_t* path, 20 | int unstable) { 21 | // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING 22 | 23 | DCHECK(self); 24 | if (!self) 25 | return; 26 | // Verify param: path; type: string_byref_const 27 | DCHECK(path); 28 | if (!path) 29 | return; 30 | 31 | // Execute 32 | CefWebPluginUnstableCallbackCppToC::Get(self)->IsUnstable( 33 | CefString(path), 34 | unstable?true:false); 35 | } 36 | 37 | 38 | // CONSTRUCTOR - Do not edit by hand. 39 | 40 | CefWebPluginUnstableCallbackCppToC::CefWebPluginUnstableCallbackCppToC( 41 | CefWebPluginUnstableCallback* cls) 42 | : CefCppToC( 44 | cls) { 45 | struct_.struct_.is_unstable = web_plugin_unstable_callback_is_unstable; 46 | } 47 | 48 | #ifndef NDEBUG 49 | template<> long CefCppToC::DebugObjCt = 0; 52 | #endif 53 | 54 | -------------------------------------------------------------------------------- /cef/libcef_dll/cpptoc/web_plugin_unstable_callback_cpptoc.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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_CPPTOC_WEB_PLUGIN_UNSTABLE_CALLBACK_CPPTOC_H_ 14 | #define CEF_LIBCEF_DLL_CPPTOC_WEB_PLUGIN_UNSTABLE_CALLBACK_CPPTOC_H_ 15 | #pragma once 16 | 17 | #ifndef USING_CEF_SHARED 18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only") 19 | #else // USING_CEF_SHARED 20 | 21 | #include "include/cef_web_plugin.h" 22 | #include "include/capi/cef_web_plugin_capi.h" 23 | #include "libcef_dll/cpptoc/cpptoc.h" 24 | 25 | // Wrap a C++ class with a C structure. 26 | // This class may be instantiated and accessed wrapper-side only. 27 | class CefWebPluginUnstableCallbackCppToC 28 | : public CefCppToC { 30 | public: 31 | explicit CefWebPluginUnstableCallbackCppToC( 32 | CefWebPluginUnstableCallback* cls); 33 | virtual ~CefWebPluginUnstableCallbackCppToC() {} 34 | }; 35 | 36 | #endif // USING_CEF_SHARED 37 | #endif // CEF_LIBCEF_DLL_CPPTOC_WEB_PLUGIN_UNSTABLE_CALLBACK_CPPTOC_H_ 38 | 39 | -------------------------------------------------------------------------------- /cef/libcef_dll/cpptoc/write_handler_cpptoc.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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_CPPTOC_WRITE_HANDLER_CPPTOC_H_ 14 | #define CEF_LIBCEF_DLL_CPPTOC_WRITE_HANDLER_CPPTOC_H_ 15 | #pragma once 16 | 17 | #ifndef USING_CEF_SHARED 18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only") 19 | #else // USING_CEF_SHARED 20 | 21 | #include "include/cef_stream.h" 22 | #include "include/capi/cef_stream_capi.h" 23 | #include "libcef_dll/cpptoc/cpptoc.h" 24 | 25 | // Wrap a C++ class with a C structure. 26 | // This class may be instantiated and accessed wrapper-side only. 27 | class CefWriteHandlerCppToC 28 | : public CefCppToC { 30 | public: 31 | explicit CefWriteHandlerCppToC(CefWriteHandler* cls); 32 | virtual ~CefWriteHandlerCppToC() {} 33 | }; 34 | 35 | #endif // USING_CEF_SHARED 36 | #endif // CEF_LIBCEF_DLL_CPPTOC_WRITE_HANDLER_CPPTOC_H_ 37 | 38 | -------------------------------------------------------------------------------- /cef/libcef_dll/ctocpp/allow_certificate_error_callback_ctocpp.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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 | #include "libcef_dll/ctocpp/allow_certificate_error_callback_ctocpp.h" 14 | 15 | 16 | // VIRTUAL METHODS - Body may be edited by hand. 17 | 18 | void CefAllowCertificateErrorCallbackCToCpp::Continue(bool allow) { 19 | if (CEF_MEMBER_MISSING(struct_, cont)) 20 | return; 21 | 22 | // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING 23 | 24 | // Execute 25 | struct_->cont(struct_, 26 | allow); 27 | } 28 | 29 | 30 | #ifndef NDEBUG 31 | template<> long CefCToCpp::DebugObjCt = 0; 34 | #endif 35 | 36 | -------------------------------------------------------------------------------- /cef/libcef_dll/ctocpp/allow_certificate_error_callback_ctocpp.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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_ALLOW_CERTIFICATE_ERROR_CALLBACK_CTOCPP_H_ 14 | #define CEF_LIBCEF_DLL_CTOCPP_ALLOW_CERTIFICATE_ERROR_CALLBACK_CTOCPP_H_ 15 | #pragma once 16 | 17 | #ifndef USING_CEF_SHARED 18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only") 19 | #else // USING_CEF_SHARED 20 | 21 | #include "include/cef_request_handler.h" 22 | #include "include/capi/cef_request_handler_capi.h" 23 | #include "libcef_dll/ctocpp/ctocpp.h" 24 | 25 | // Wrap a C structure with a C++ class. 26 | // This class may be instantiated and accessed wrapper-side only. 27 | class CefAllowCertificateErrorCallbackCToCpp 28 | : public CefCToCpp { 31 | public: 32 | explicit CefAllowCertificateErrorCallbackCToCpp( 33 | cef_allow_certificate_error_callback_t* str) 34 | : CefCToCpp(str) {} 37 | virtual ~CefAllowCertificateErrorCallbackCToCpp() {} 38 | 39 | // CefAllowCertificateErrorCallback methods 40 | virtual void Continue(bool allow) OVERRIDE; 41 | }; 42 | 43 | #endif // USING_CEF_SHARED 44 | #endif // CEF_LIBCEF_DLL_CTOCPP_ALLOW_CERTIFICATE_ERROR_CALLBACK_CTOCPP_H_ 45 | 46 | -------------------------------------------------------------------------------- /cef/libcef_dll/ctocpp/auth_callback_ctocpp.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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 | #include "libcef_dll/ctocpp/auth_callback_ctocpp.h" 14 | 15 | 16 | // VIRTUAL METHODS - Body may be edited by hand. 17 | 18 | void CefAuthCallbackCToCpp::Continue(const CefString& username, 19 | const CefString& password) { 20 | if (CEF_MEMBER_MISSING(struct_, cont)) 21 | return; 22 | 23 | // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING 24 | 25 | // Verify param: username; type: string_byref_const 26 | DCHECK(!username.empty()); 27 | if (username.empty()) 28 | return; 29 | // Verify param: password; type: string_byref_const 30 | DCHECK(!password.empty()); 31 | if (password.empty()) 32 | return; 33 | 34 | // Execute 35 | struct_->cont(struct_, 36 | username.GetStruct(), 37 | password.GetStruct()); 38 | } 39 | 40 | void CefAuthCallbackCToCpp::Cancel() { 41 | if (CEF_MEMBER_MISSING(struct_, cancel)) 42 | return; 43 | 44 | // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING 45 | 46 | // Execute 47 | struct_->cancel(struct_); 48 | } 49 | 50 | 51 | #ifndef NDEBUG 52 | template<> long CefCToCpp::DebugObjCt = 0; 54 | #endif 55 | 56 | -------------------------------------------------------------------------------- /cef/libcef_dll/ctocpp/auth_callback_ctocpp.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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_AUTH_CALLBACK_CTOCPP_H_ 14 | #define CEF_LIBCEF_DLL_CTOCPP_AUTH_CALLBACK_CTOCPP_H_ 15 | #pragma once 16 | 17 | #ifndef USING_CEF_SHARED 18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only") 19 | #else // USING_CEF_SHARED 20 | 21 | #include "include/cef_auth_callback.h" 22 | #include "include/capi/cef_auth_callback_capi.h" 23 | #include "libcef_dll/ctocpp/ctocpp.h" 24 | 25 | // Wrap a C structure with a C++ class. 26 | // This class may be instantiated and accessed wrapper-side only. 27 | class CefAuthCallbackCToCpp 28 | : public CefCToCpp { 30 | public: 31 | explicit CefAuthCallbackCToCpp(cef_auth_callback_t* str) 32 | : CefCToCpp( 33 | str) {} 34 | virtual ~CefAuthCallbackCToCpp() {} 35 | 36 | // CefAuthCallback methods 37 | virtual void Continue(const CefString& username, 38 | const CefString& password) OVERRIDE; 39 | virtual void Cancel() OVERRIDE; 40 | }; 41 | 42 | #endif // USING_CEF_SHARED 43 | #endif // CEF_LIBCEF_DLL_CTOCPP_AUTH_CALLBACK_CTOCPP_H_ 44 | 45 | -------------------------------------------------------------------------------- /cef/libcef_dll/ctocpp/before_download_callback_ctocpp.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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 | #include "libcef_dll/ctocpp/before_download_callback_ctocpp.h" 14 | 15 | 16 | // VIRTUAL METHODS - Body may be edited by hand. 17 | 18 | void CefBeforeDownloadCallbackCToCpp::Continue(const CefString& download_path, 19 | bool show_dialog) { 20 | if (CEF_MEMBER_MISSING(struct_, cont)) 21 | return; 22 | 23 | // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING 24 | 25 | // Unverified params: download_path 26 | 27 | // Execute 28 | struct_->cont(struct_, 29 | download_path.GetStruct(), 30 | show_dialog); 31 | } 32 | 33 | 34 | #ifndef NDEBUG 35 | template<> long CefCToCpp::DebugObjCt = 37 | 0; 38 | #endif 39 | 40 | -------------------------------------------------------------------------------- /cef/libcef_dll/ctocpp/before_download_callback_ctocpp.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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_BEFORE_DOWNLOAD_CALLBACK_CTOCPP_H_ 14 | #define CEF_LIBCEF_DLL_CTOCPP_BEFORE_DOWNLOAD_CALLBACK_CTOCPP_H_ 15 | #pragma once 16 | 17 | #ifndef USING_CEF_SHARED 18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only") 19 | #else // USING_CEF_SHARED 20 | 21 | #include "include/cef_download_handler.h" 22 | #include "include/capi/cef_download_handler_capi.h" 23 | #include "libcef_dll/ctocpp/ctocpp.h" 24 | 25 | // Wrap a C structure with a C++ class. 26 | // This class may be instantiated and accessed wrapper-side only. 27 | class CefBeforeDownloadCallbackCToCpp 28 | : public CefCToCpp { 30 | public: 31 | explicit CefBeforeDownloadCallbackCToCpp(cef_before_download_callback_t* str) 32 | : CefCToCpp(str) {} 34 | virtual ~CefBeforeDownloadCallbackCToCpp() {} 35 | 36 | // CefBeforeDownloadCallback methods 37 | virtual void Continue(const CefString& download_path, 38 | bool show_dialog) OVERRIDE; 39 | }; 40 | 41 | #endif // USING_CEF_SHARED 42 | #endif // CEF_LIBCEF_DLL_CTOCPP_BEFORE_DOWNLOAD_CALLBACK_CTOCPP_H_ 43 | 44 | -------------------------------------------------------------------------------- /cef/libcef_dll/ctocpp/binary_value_ctocpp.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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_BINARY_VALUE_CTOCPP_H_ 14 | #define CEF_LIBCEF_DLL_CTOCPP_BINARY_VALUE_CTOCPP_H_ 15 | #pragma once 16 | 17 | #ifndef USING_CEF_SHARED 18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only") 19 | #else // USING_CEF_SHARED 20 | 21 | #include "include/cef_values.h" 22 | #include "include/capi/cef_values_capi.h" 23 | #include "libcef_dll/ctocpp/ctocpp.h" 24 | 25 | // Wrap a C structure with a C++ class. 26 | // This class may be instantiated and accessed wrapper-side only. 27 | class CefBinaryValueCToCpp 28 | : public CefCToCpp { 30 | public: 31 | explicit CefBinaryValueCToCpp(cef_binary_value_t* str) 32 | : CefCToCpp( 33 | str) {} 34 | virtual ~CefBinaryValueCToCpp() {} 35 | 36 | // CefBinaryValue methods 37 | virtual bool IsValid() OVERRIDE; 38 | virtual bool IsOwned() OVERRIDE; 39 | virtual CefRefPtr Copy() OVERRIDE; 40 | virtual size_t GetSize() OVERRIDE; 41 | virtual size_t GetData(void* buffer, size_t buffer_size, 42 | size_t data_offset) OVERRIDE; 43 | }; 44 | 45 | #endif // USING_CEF_SHARED 46 | #endif // CEF_LIBCEF_DLL_CTOCPP_BINARY_VALUE_CTOCPP_H_ 47 | 48 | -------------------------------------------------------------------------------- /cef/libcef_dll/ctocpp/callback_ctocpp.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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 | #include "libcef_dll/ctocpp/callback_ctocpp.h" 14 | 15 | 16 | // VIRTUAL METHODS - Body may be edited by hand. 17 | 18 | void CefCallbackCToCpp::Continue() { 19 | if (CEF_MEMBER_MISSING(struct_, cont)) 20 | return; 21 | 22 | // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING 23 | 24 | // Execute 25 | struct_->cont(struct_); 26 | } 27 | 28 | void CefCallbackCToCpp::Cancel() { 29 | if (CEF_MEMBER_MISSING(struct_, cancel)) 30 | return; 31 | 32 | // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING 33 | 34 | // Execute 35 | struct_->cancel(struct_); 36 | } 37 | 38 | 39 | #ifndef NDEBUG 40 | template<> long CefCToCpp::DebugObjCt = 0; 42 | #endif 43 | 44 | -------------------------------------------------------------------------------- /cef/libcef_dll/ctocpp/callback_ctocpp.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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_CALLBACK_CTOCPP_H_ 14 | #define CEF_LIBCEF_DLL_CTOCPP_CALLBACK_CTOCPP_H_ 15 | #pragma once 16 | 17 | #ifndef USING_CEF_SHARED 18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only") 19 | #else // USING_CEF_SHARED 20 | 21 | #include "include/cef_callback.h" 22 | #include "include/capi/cef_callback_capi.h" 23 | #include "libcef_dll/ctocpp/ctocpp.h" 24 | 25 | // Wrap a C structure with a C++ class. 26 | // This class may be instantiated and accessed wrapper-side only. 27 | class CefCallbackCToCpp 28 | : public CefCToCpp { 29 | public: 30 | explicit CefCallbackCToCpp(cef_callback_t* str) 31 | : CefCToCpp(str) {} 32 | virtual ~CefCallbackCToCpp() {} 33 | 34 | // CefCallback methods 35 | virtual void Continue() OVERRIDE; 36 | virtual void Cancel() OVERRIDE; 37 | }; 38 | 39 | #endif // USING_CEF_SHARED 40 | #endif // CEF_LIBCEF_DLL_CTOCPP_CALLBACK_CTOCPP_H_ 41 | 42 | -------------------------------------------------------------------------------- /cef/libcef_dll/ctocpp/domevent_ctocpp.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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_DOMEVENT_CTOCPP_H_ 14 | #define CEF_LIBCEF_DLL_CTOCPP_DOMEVENT_CTOCPP_H_ 15 | #pragma once 16 | 17 | #ifndef USING_CEF_SHARED 18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only") 19 | #else // USING_CEF_SHARED 20 | 21 | #include "include/cef_dom.h" 22 | #include "include/capi/cef_dom_capi.h" 23 | #include "libcef_dll/ctocpp/ctocpp.h" 24 | 25 | // Wrap a C structure with a C++ class. 26 | // This class may be instantiated and accessed wrapper-side only. 27 | class CefDOMEventCToCpp 28 | : public CefCToCpp { 29 | public: 30 | explicit CefDOMEventCToCpp(cef_domevent_t* str) 31 | : CefCToCpp(str) {} 32 | virtual ~CefDOMEventCToCpp() {} 33 | 34 | // CefDOMEvent methods 35 | virtual CefString GetType() OVERRIDE; 36 | virtual Category GetCategory() OVERRIDE; 37 | virtual Phase GetPhase() OVERRIDE; 38 | virtual bool CanBubble() OVERRIDE; 39 | virtual bool CanCancel() OVERRIDE; 40 | virtual CefRefPtr GetDocument() OVERRIDE; 41 | virtual CefRefPtr GetTarget() OVERRIDE; 42 | virtual CefRefPtr GetCurrentTarget() OVERRIDE; 43 | }; 44 | 45 | #endif // USING_CEF_SHARED 46 | #endif // CEF_LIBCEF_DLL_CTOCPP_DOMEVENT_CTOCPP_H_ 47 | 48 | -------------------------------------------------------------------------------- /cef/libcef_dll/ctocpp/download_item_callback_ctocpp.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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 | #include "libcef_dll/ctocpp/download_item_callback_ctocpp.h" 14 | 15 | 16 | // VIRTUAL METHODS - Body may be edited by hand. 17 | 18 | void CefDownloadItemCallbackCToCpp::Cancel() { 19 | if (CEF_MEMBER_MISSING(struct_, cancel)) 20 | return; 21 | 22 | // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING 23 | 24 | // Execute 25 | struct_->cancel(struct_); 26 | } 27 | 28 | 29 | #ifndef NDEBUG 30 | template<> long CefCToCpp::DebugObjCt = 0; 32 | #endif 33 | 34 | -------------------------------------------------------------------------------- /cef/libcef_dll/ctocpp/download_item_callback_ctocpp.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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_DOWNLOAD_ITEM_CALLBACK_CTOCPP_H_ 14 | #define CEF_LIBCEF_DLL_CTOCPP_DOWNLOAD_ITEM_CALLBACK_CTOCPP_H_ 15 | #pragma once 16 | 17 | #ifndef USING_CEF_SHARED 18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only") 19 | #else // USING_CEF_SHARED 20 | 21 | #include "include/cef_download_handler.h" 22 | #include "include/capi/cef_download_handler_capi.h" 23 | #include "libcef_dll/ctocpp/ctocpp.h" 24 | 25 | // Wrap a C structure with a C++ class. 26 | // This class may be instantiated and accessed wrapper-side only. 27 | class CefDownloadItemCallbackCToCpp 28 | : public CefCToCpp { 30 | public: 31 | explicit CefDownloadItemCallbackCToCpp(cef_download_item_callback_t* str) 32 | : CefCToCpp(str) {} 34 | virtual ~CefDownloadItemCallbackCToCpp() {} 35 | 36 | // CefDownloadItemCallback methods 37 | virtual void Cancel() OVERRIDE; 38 | }; 39 | 40 | #endif // USING_CEF_SHARED 41 | #endif // CEF_LIBCEF_DLL_CTOCPP_DOWNLOAD_ITEM_CALLBACK_CTOCPP_H_ 42 | 43 | -------------------------------------------------------------------------------- /cef/libcef_dll/ctocpp/drag_data_ctocpp.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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_DRAG_DATA_CTOCPP_H_ 14 | #define CEF_LIBCEF_DLL_CTOCPP_DRAG_DATA_CTOCPP_H_ 15 | #pragma once 16 | 17 | #ifndef USING_CEF_SHARED 18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only") 19 | #else // USING_CEF_SHARED 20 | 21 | #include 22 | #include "include/cef_drag_data.h" 23 | #include "include/capi/cef_drag_data_capi.h" 24 | #include "libcef_dll/ctocpp/ctocpp.h" 25 | 26 | // Wrap a C structure with a C++ class. 27 | // This class may be instantiated and accessed wrapper-side only. 28 | class CefDragDataCToCpp 29 | : public CefCToCpp { 30 | public: 31 | explicit CefDragDataCToCpp(cef_drag_data_t* str) 32 | : CefCToCpp(str) {} 33 | virtual ~CefDragDataCToCpp() {} 34 | 35 | // CefDragData methods 36 | virtual bool IsLink() OVERRIDE; 37 | virtual bool IsFragment() OVERRIDE; 38 | virtual bool IsFile() OVERRIDE; 39 | virtual CefString GetLinkURL() OVERRIDE; 40 | virtual CefString GetLinkTitle() OVERRIDE; 41 | virtual CefString GetLinkMetadata() OVERRIDE; 42 | virtual CefString GetFragmentText() OVERRIDE; 43 | virtual CefString GetFragmentHtml() OVERRIDE; 44 | virtual CefString GetFragmentBaseURL() OVERRIDE; 45 | virtual CefString GetFileName() OVERRIDE; 46 | virtual bool GetFileNames(std::vector& names) OVERRIDE; 47 | }; 48 | 49 | #endif // USING_CEF_SHARED 50 | #endif // CEF_LIBCEF_DLL_CTOCPP_DRAG_DATA_CTOCPP_H_ 51 | 52 | -------------------------------------------------------------------------------- /cef/libcef_dll/ctocpp/file_dialog_callback_ctocpp.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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 | #include "libcef_dll/ctocpp/file_dialog_callback_ctocpp.h" 14 | #include "libcef_dll/transfer_util.h" 15 | 16 | 17 | // VIRTUAL METHODS - Body may be edited by hand. 18 | 19 | void CefFileDialogCallbackCToCpp::Continue( 20 | const std::vector& file_paths) { 21 | if (CEF_MEMBER_MISSING(struct_, cont)) 22 | return; 23 | 24 | // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING 25 | 26 | // Translate param: file_paths; type: string_vec_byref_const 27 | cef_string_list_t file_pathsList = cef_string_list_alloc(); 28 | DCHECK(file_pathsList); 29 | if (file_pathsList) 30 | transfer_string_list_contents(file_paths, file_pathsList); 31 | 32 | // Execute 33 | struct_->cont(struct_, 34 | file_pathsList); 35 | 36 | // Restore param:file_paths; type: string_vec_byref_const 37 | if (file_pathsList) 38 | cef_string_list_free(file_pathsList); 39 | } 40 | 41 | void CefFileDialogCallbackCToCpp::Cancel() { 42 | if (CEF_MEMBER_MISSING(struct_, cancel)) 43 | return; 44 | 45 | // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING 46 | 47 | // Execute 48 | struct_->cancel(struct_); 49 | } 50 | 51 | 52 | #ifndef NDEBUG 53 | template<> long CefCToCpp::DebugObjCt = 0; 55 | #endif 56 | 57 | -------------------------------------------------------------------------------- /cef/libcef_dll/ctocpp/file_dialog_callback_ctocpp.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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_FILE_DIALOG_CALLBACK_CTOCPP_H_ 14 | #define CEF_LIBCEF_DLL_CTOCPP_FILE_DIALOG_CALLBACK_CTOCPP_H_ 15 | #pragma once 16 | 17 | #ifndef USING_CEF_SHARED 18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only") 19 | #else // USING_CEF_SHARED 20 | 21 | #include 22 | #include "include/cef_dialog_handler.h" 23 | #include "include/capi/cef_dialog_handler_capi.h" 24 | #include "libcef_dll/ctocpp/ctocpp.h" 25 | 26 | // Wrap a C structure with a C++ class. 27 | // This class may be instantiated and accessed wrapper-side only. 28 | class CefFileDialogCallbackCToCpp 29 | : public CefCToCpp { 31 | public: 32 | explicit CefFileDialogCallbackCToCpp(cef_file_dialog_callback_t* str) 33 | : CefCToCpp(str) {} 35 | virtual ~CefFileDialogCallbackCToCpp() {} 36 | 37 | // CefFileDialogCallback methods 38 | virtual void Continue(const std::vector& file_paths) OVERRIDE; 39 | virtual void Cancel() OVERRIDE; 40 | }; 41 | 42 | #endif // USING_CEF_SHARED 43 | #endif // CEF_LIBCEF_DLL_CTOCPP_FILE_DIALOG_CALLBACK_CTOCPP_H_ 44 | 45 | -------------------------------------------------------------------------------- /cef/libcef_dll/ctocpp/geolocation_callback_ctocpp.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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 | #include "libcef_dll/ctocpp/geolocation_callback_ctocpp.h" 14 | 15 | 16 | // VIRTUAL METHODS - Body may be edited by hand. 17 | 18 | void CefGeolocationCallbackCToCpp::Continue(bool allow) { 19 | if (CEF_MEMBER_MISSING(struct_, cont)) 20 | return; 21 | 22 | // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING 23 | 24 | // Execute 25 | struct_->cont(struct_, 26 | allow); 27 | } 28 | 29 | 30 | #ifndef NDEBUG 31 | template<> long CefCToCpp::DebugObjCt = 0; 33 | #endif 34 | 35 | -------------------------------------------------------------------------------- /cef/libcef_dll/ctocpp/geolocation_callback_ctocpp.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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_GEOLOCATION_CALLBACK_CTOCPP_H_ 14 | #define CEF_LIBCEF_DLL_CTOCPP_GEOLOCATION_CALLBACK_CTOCPP_H_ 15 | #pragma once 16 | 17 | #ifndef USING_CEF_SHARED 18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only") 19 | #else // USING_CEF_SHARED 20 | 21 | #include "include/cef_geolocation_handler.h" 22 | #include "include/capi/cef_geolocation_handler_capi.h" 23 | #include "libcef_dll/ctocpp/ctocpp.h" 24 | 25 | // Wrap a C structure with a C++ class. 26 | // This class may be instantiated and accessed wrapper-side only. 27 | class CefGeolocationCallbackCToCpp 28 | : public CefCToCpp { 30 | public: 31 | explicit CefGeolocationCallbackCToCpp(cef_geolocation_callback_t* str) 32 | : CefCToCpp(str) {} 34 | virtual ~CefGeolocationCallbackCToCpp() {} 35 | 36 | // CefGeolocationCallback methods 37 | virtual void Continue(bool allow) OVERRIDE; 38 | }; 39 | 40 | #endif // USING_CEF_SHARED 41 | #endif // CEF_LIBCEF_DLL_CTOCPP_GEOLOCATION_CALLBACK_CTOCPP_H_ 42 | 43 | -------------------------------------------------------------------------------- /cef/libcef_dll/ctocpp/jsdialog_callback_ctocpp.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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 | #include "libcef_dll/ctocpp/jsdialog_callback_ctocpp.h" 14 | 15 | 16 | // VIRTUAL METHODS - Body may be edited by hand. 17 | 18 | void CefJSDialogCallbackCToCpp::Continue(bool success, 19 | const CefString& user_input) { 20 | if (CEF_MEMBER_MISSING(struct_, cont)) 21 | return; 22 | 23 | // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING 24 | 25 | // Unverified params: user_input 26 | 27 | // Execute 28 | struct_->cont(struct_, 29 | success, 30 | user_input.GetStruct()); 31 | } 32 | 33 | 34 | #ifndef NDEBUG 35 | template<> long CefCToCpp::DebugObjCt = 0; 37 | #endif 38 | 39 | -------------------------------------------------------------------------------- /cef/libcef_dll/ctocpp/jsdialog_callback_ctocpp.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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_JSDIALOG_CALLBACK_CTOCPP_H_ 14 | #define CEF_LIBCEF_DLL_CTOCPP_JSDIALOG_CALLBACK_CTOCPP_H_ 15 | #pragma once 16 | 17 | #ifndef USING_CEF_SHARED 18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only") 19 | #else // USING_CEF_SHARED 20 | 21 | #include "include/cef_jsdialog_handler.h" 22 | #include "include/capi/cef_jsdialog_handler_capi.h" 23 | #include "libcef_dll/ctocpp/ctocpp.h" 24 | 25 | // Wrap a C structure with a C++ class. 26 | // This class may be instantiated and accessed wrapper-side only. 27 | class CefJSDialogCallbackCToCpp 28 | : public CefCToCpp { 30 | public: 31 | explicit CefJSDialogCallbackCToCpp(cef_jsdialog_callback_t* str) 32 | : CefCToCpp(str) {} 34 | virtual ~CefJSDialogCallbackCToCpp() {} 35 | 36 | // CefJSDialogCallback methods 37 | virtual void Continue(bool success, const CefString& user_input) OVERRIDE; 38 | }; 39 | 40 | #endif // USING_CEF_SHARED 41 | #endif // CEF_LIBCEF_DLL_CTOCPP_JSDIALOG_CALLBACK_CTOCPP_H_ 42 | 43 | -------------------------------------------------------------------------------- /cef/libcef_dll/ctocpp/post_data_ctocpp.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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_POST_DATA_CTOCPP_H_ 14 | #define CEF_LIBCEF_DLL_CTOCPP_POST_DATA_CTOCPP_H_ 15 | #pragma once 16 | 17 | #ifndef USING_CEF_SHARED 18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only") 19 | #else // USING_CEF_SHARED 20 | 21 | #include "include/cef_request.h" 22 | #include "include/capi/cef_request_capi.h" 23 | #include "libcef_dll/ctocpp/ctocpp.h" 24 | 25 | // Wrap a C structure with a C++ class. 26 | // This class may be instantiated and accessed wrapper-side only. 27 | class CefPostDataCToCpp 28 | : public CefCToCpp { 29 | public: 30 | explicit CefPostDataCToCpp(cef_post_data_t* str) 31 | : CefCToCpp(str) {} 32 | virtual ~CefPostDataCToCpp() {} 33 | 34 | // CefPostData methods 35 | virtual bool IsReadOnly() OVERRIDE; 36 | virtual size_t GetElementCount() OVERRIDE; 37 | virtual void GetElements(ElementVector& elements) OVERRIDE; 38 | virtual bool RemoveElement(CefRefPtr element) OVERRIDE; 39 | virtual bool AddElement(CefRefPtr element) OVERRIDE; 40 | virtual void RemoveElements() OVERRIDE; 41 | }; 42 | 43 | #endif // USING_CEF_SHARED 44 | #endif // CEF_LIBCEF_DLL_CTOCPP_POST_DATA_CTOCPP_H_ 45 | 46 | -------------------------------------------------------------------------------- /cef/libcef_dll/ctocpp/post_data_element_ctocpp.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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_POST_DATA_ELEMENT_CTOCPP_H_ 14 | #define CEF_LIBCEF_DLL_CTOCPP_POST_DATA_ELEMENT_CTOCPP_H_ 15 | #pragma once 16 | 17 | #ifndef USING_CEF_SHARED 18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only") 19 | #else // USING_CEF_SHARED 20 | 21 | #include "include/cef_request.h" 22 | #include "include/capi/cef_request_capi.h" 23 | #include "libcef_dll/ctocpp/ctocpp.h" 24 | 25 | // Wrap a C structure with a C++ class. 26 | // This class may be instantiated and accessed wrapper-side only. 27 | class CefPostDataElementCToCpp 28 | : public CefCToCpp { 30 | public: 31 | explicit CefPostDataElementCToCpp(cef_post_data_element_t* str) 32 | : CefCToCpp(str) {} 34 | virtual ~CefPostDataElementCToCpp() {} 35 | 36 | // CefPostDataElement methods 37 | virtual bool IsReadOnly() OVERRIDE; 38 | virtual void SetToEmpty() OVERRIDE; 39 | virtual void SetToFile(const CefString& fileName) OVERRIDE; 40 | virtual void SetToBytes(size_t size, const void* bytes) OVERRIDE; 41 | virtual Type GetType() OVERRIDE; 42 | virtual CefString GetFile() OVERRIDE; 43 | virtual size_t GetBytesCount() OVERRIDE; 44 | virtual size_t GetBytes(size_t size, void* bytes) OVERRIDE; 45 | }; 46 | 47 | #endif // USING_CEF_SHARED 48 | #endif // CEF_LIBCEF_DLL_CTOCPP_POST_DATA_ELEMENT_CTOCPP_H_ 49 | 50 | -------------------------------------------------------------------------------- /cef/libcef_dll/ctocpp/process_message_ctocpp.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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_PROCESS_MESSAGE_CTOCPP_H_ 14 | #define CEF_LIBCEF_DLL_CTOCPP_PROCESS_MESSAGE_CTOCPP_H_ 15 | #pragma once 16 | 17 | #ifndef USING_CEF_SHARED 18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only") 19 | #else // USING_CEF_SHARED 20 | 21 | #include "include/cef_process_message.h" 22 | #include "include/capi/cef_process_message_capi.h" 23 | #include "libcef_dll/ctocpp/ctocpp.h" 24 | 25 | // Wrap a C structure with a C++ class. 26 | // This class may be instantiated and accessed wrapper-side only. 27 | class CefProcessMessageCToCpp 28 | : public CefCToCpp { 30 | public: 31 | explicit CefProcessMessageCToCpp(cef_process_message_t* str) 32 | : CefCToCpp(str) {} 34 | virtual ~CefProcessMessageCToCpp() {} 35 | 36 | // CefProcessMessage methods 37 | virtual bool IsValid() OVERRIDE; 38 | virtual bool IsReadOnly() OVERRIDE; 39 | virtual CefRefPtr Copy() OVERRIDE; 40 | virtual CefString GetName() OVERRIDE; 41 | virtual CefRefPtr GetArgumentList() OVERRIDE; 42 | }; 43 | 44 | #endif // USING_CEF_SHARED 45 | #endif // CEF_LIBCEF_DLL_CTOCPP_PROCESS_MESSAGE_CTOCPP_H_ 46 | 47 | -------------------------------------------------------------------------------- /cef/libcef_dll/ctocpp/quota_callback_ctocpp.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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 | #include "libcef_dll/ctocpp/quota_callback_ctocpp.h" 14 | 15 | 16 | // VIRTUAL METHODS - Body may be edited by hand. 17 | 18 | void CefQuotaCallbackCToCpp::Continue(bool allow) { 19 | if (CEF_MEMBER_MISSING(struct_, cont)) 20 | return; 21 | 22 | // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING 23 | 24 | // Execute 25 | struct_->cont(struct_, 26 | allow); 27 | } 28 | 29 | void CefQuotaCallbackCToCpp::Cancel() { 30 | if (CEF_MEMBER_MISSING(struct_, cancel)) 31 | return; 32 | 33 | // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING 34 | 35 | // Execute 36 | struct_->cancel(struct_); 37 | } 38 | 39 | 40 | #ifndef NDEBUG 41 | template<> long CefCToCpp::DebugObjCt = 0; 43 | #endif 44 | 45 | -------------------------------------------------------------------------------- /cef/libcef_dll/ctocpp/quota_callback_ctocpp.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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_QUOTA_CALLBACK_CTOCPP_H_ 14 | #define CEF_LIBCEF_DLL_CTOCPP_QUOTA_CALLBACK_CTOCPP_H_ 15 | #pragma once 16 | 17 | #ifndef USING_CEF_SHARED 18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only") 19 | #else // USING_CEF_SHARED 20 | 21 | #include "include/cef_request_handler.h" 22 | #include "include/capi/cef_request_handler_capi.h" 23 | #include "libcef_dll/ctocpp/ctocpp.h" 24 | 25 | // Wrap a C structure with a C++ class. 26 | // This class may be instantiated and accessed wrapper-side only. 27 | class CefQuotaCallbackCToCpp 28 | : public CefCToCpp { 30 | public: 31 | explicit CefQuotaCallbackCToCpp(cef_quota_callback_t* str) 32 | : CefCToCpp(str) {} 34 | virtual ~CefQuotaCallbackCToCpp() {} 35 | 36 | // CefQuotaCallback methods 37 | virtual void Continue(bool allow) OVERRIDE; 38 | virtual void Cancel() OVERRIDE; 39 | }; 40 | 41 | #endif // USING_CEF_SHARED 42 | #endif // CEF_LIBCEF_DLL_CTOCPP_QUOTA_CALLBACK_CTOCPP_H_ 43 | 44 | -------------------------------------------------------------------------------- /cef/libcef_dll/ctocpp/request_context_ctocpp.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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_REQUEST_CONTEXT_CTOCPP_H_ 14 | #define CEF_LIBCEF_DLL_CTOCPP_REQUEST_CONTEXT_CTOCPP_H_ 15 | #pragma once 16 | 17 | #ifndef USING_CEF_SHARED 18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only") 19 | #else // USING_CEF_SHARED 20 | 21 | #include "include/cef_request_context.h" 22 | #include "include/capi/cef_request_context_capi.h" 23 | #include "libcef_dll/ctocpp/ctocpp.h" 24 | 25 | // Wrap a C structure with a C++ class. 26 | // This class may be instantiated and accessed wrapper-side only. 27 | class CefRequestContextCToCpp 28 | : public CefCToCpp { 30 | public: 31 | explicit CefRequestContextCToCpp(cef_request_context_t* str) 32 | : CefCToCpp(str) {} 34 | virtual ~CefRequestContextCToCpp() {} 35 | 36 | // CefRequestContext methods 37 | virtual bool IsSame(CefRefPtr other) OVERRIDE; 38 | virtual bool IsGlobal() OVERRIDE; 39 | virtual CefRefPtr GetHandler() OVERRIDE; 40 | }; 41 | 42 | #endif // USING_CEF_SHARED 43 | #endif // CEF_LIBCEF_DLL_CTOCPP_REQUEST_CONTEXT_CTOCPP_H_ 44 | 45 | -------------------------------------------------------------------------------- /cef/libcef_dll/ctocpp/response_ctocpp.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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_RESPONSE_CTOCPP_H_ 14 | #define CEF_LIBCEF_DLL_CTOCPP_RESPONSE_CTOCPP_H_ 15 | #pragma once 16 | 17 | #ifndef USING_CEF_SHARED 18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only") 19 | #else // USING_CEF_SHARED 20 | 21 | #include "include/cef_response.h" 22 | #include "include/capi/cef_response_capi.h" 23 | #include "libcef_dll/ctocpp/ctocpp.h" 24 | 25 | // Wrap a C structure with a C++ class. 26 | // This class may be instantiated and accessed wrapper-side only. 27 | class CefResponseCToCpp 28 | : public CefCToCpp { 29 | public: 30 | explicit CefResponseCToCpp(cef_response_t* str) 31 | : CefCToCpp(str) {} 32 | virtual ~CefResponseCToCpp() {} 33 | 34 | // CefResponse methods 35 | virtual bool IsReadOnly() OVERRIDE; 36 | virtual int GetStatus() OVERRIDE; 37 | virtual void SetStatus(int status) OVERRIDE; 38 | virtual CefString GetStatusText() OVERRIDE; 39 | virtual void SetStatusText(const CefString& statusText) OVERRIDE; 40 | virtual CefString GetMimeType() OVERRIDE; 41 | virtual void SetMimeType(const CefString& mimeType) OVERRIDE; 42 | virtual CefString GetHeader(const CefString& name) OVERRIDE; 43 | virtual void GetHeaderMap(HeaderMap& headerMap) OVERRIDE; 44 | virtual void SetHeaderMap(const HeaderMap& headerMap) OVERRIDE; 45 | }; 46 | 47 | #endif // USING_CEF_SHARED 48 | #endif // CEF_LIBCEF_DLL_CTOCPP_RESPONSE_CTOCPP_H_ 49 | 50 | -------------------------------------------------------------------------------- /cef/libcef_dll/ctocpp/scheme_registrar_ctocpp.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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 | #include "libcef_dll/ctocpp/scheme_registrar_ctocpp.h" 14 | 15 | 16 | // VIRTUAL METHODS - Body may be edited by hand. 17 | 18 | bool CefSchemeRegistrarCToCpp::AddCustomScheme(const CefString& scheme_name, 19 | bool is_standard, bool is_local, bool is_display_isolated) { 20 | if (CEF_MEMBER_MISSING(struct_, add_custom_scheme)) 21 | return false; 22 | 23 | // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING 24 | 25 | // Verify param: scheme_name; type: string_byref_const 26 | DCHECK(!scheme_name.empty()); 27 | if (scheme_name.empty()) 28 | return false; 29 | 30 | // Execute 31 | int _retval = struct_->add_custom_scheme(struct_, 32 | scheme_name.GetStruct(), 33 | is_standard, 34 | is_local, 35 | is_display_isolated); 36 | 37 | // Return type: bool 38 | return _retval?true:false; 39 | } 40 | 41 | 42 | #ifndef NDEBUG 43 | template<> long CefCToCpp::DebugObjCt = 0; 45 | #endif 46 | 47 | -------------------------------------------------------------------------------- /cef/libcef_dll/ctocpp/scheme_registrar_ctocpp.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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_SCHEME_REGISTRAR_CTOCPP_H_ 14 | #define CEF_LIBCEF_DLL_CTOCPP_SCHEME_REGISTRAR_CTOCPP_H_ 15 | #pragma once 16 | 17 | #ifndef USING_CEF_SHARED 18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only") 19 | #else // USING_CEF_SHARED 20 | 21 | #include "include/cef_scheme.h" 22 | #include "include/capi/cef_scheme_capi.h" 23 | #include "libcef_dll/ctocpp/ctocpp.h" 24 | 25 | // Wrap a C structure with a C++ class. 26 | // This class may be instantiated and accessed wrapper-side only. 27 | class CefSchemeRegistrarCToCpp 28 | : public CefCToCpp { 30 | public: 31 | explicit CefSchemeRegistrarCToCpp(cef_scheme_registrar_t* str) 32 | : CefCToCpp(str) {} 34 | virtual ~CefSchemeRegistrarCToCpp() {} 35 | 36 | // CefSchemeRegistrar methods 37 | virtual bool AddCustomScheme(const CefString& scheme_name, bool is_standard, 38 | bool is_local, bool is_display_isolated) OVERRIDE; 39 | }; 40 | 41 | #endif // USING_CEF_SHARED 42 | #endif // CEF_LIBCEF_DLL_CTOCPP_SCHEME_REGISTRAR_CTOCPP_H_ 43 | 44 | -------------------------------------------------------------------------------- /cef/libcef_dll/ctocpp/stream_reader_ctocpp.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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_STREAM_READER_CTOCPP_H_ 14 | #define CEF_LIBCEF_DLL_CTOCPP_STREAM_READER_CTOCPP_H_ 15 | #pragma once 16 | 17 | #ifndef USING_CEF_SHARED 18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only") 19 | #else // USING_CEF_SHARED 20 | 21 | #include "include/cef_stream.h" 22 | #include "include/capi/cef_stream_capi.h" 23 | #include "libcef_dll/ctocpp/ctocpp.h" 24 | 25 | // Wrap a C structure with a C++ class. 26 | // This class may be instantiated and accessed wrapper-side only. 27 | class CefStreamReaderCToCpp 28 | : public CefCToCpp { 30 | public: 31 | explicit CefStreamReaderCToCpp(cef_stream_reader_t* str) 32 | : CefCToCpp( 33 | str) {} 34 | virtual ~CefStreamReaderCToCpp() {} 35 | 36 | // CefStreamReader methods 37 | virtual size_t Read(void* ptr, size_t size, size_t n) OVERRIDE; 38 | virtual int Seek(int64 offset, int whence) OVERRIDE; 39 | virtual int64 Tell() OVERRIDE; 40 | virtual int Eof() OVERRIDE; 41 | }; 42 | 43 | #endif // USING_CEF_SHARED 44 | #endif // CEF_LIBCEF_DLL_CTOCPP_STREAM_READER_CTOCPP_H_ 45 | 46 | -------------------------------------------------------------------------------- /cef/libcef_dll/ctocpp/stream_writer_ctocpp.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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_STREAM_WRITER_CTOCPP_H_ 14 | #define CEF_LIBCEF_DLL_CTOCPP_STREAM_WRITER_CTOCPP_H_ 15 | #pragma once 16 | 17 | #ifndef USING_CEF_SHARED 18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only") 19 | #else // USING_CEF_SHARED 20 | 21 | #include "include/cef_stream.h" 22 | #include "include/capi/cef_stream_capi.h" 23 | #include "libcef_dll/ctocpp/ctocpp.h" 24 | 25 | // Wrap a C structure with a C++ class. 26 | // This class may be instantiated and accessed wrapper-side only. 27 | class CefStreamWriterCToCpp 28 | : public CefCToCpp { 30 | public: 31 | explicit CefStreamWriterCToCpp(cef_stream_writer_t* str) 32 | : CefCToCpp( 33 | str) {} 34 | virtual ~CefStreamWriterCToCpp() {} 35 | 36 | // CefStreamWriter methods 37 | virtual size_t Write(const void* ptr, size_t size, size_t n) OVERRIDE; 38 | virtual int Seek(int64 offset, int whence) OVERRIDE; 39 | virtual int64 Tell() OVERRIDE; 40 | virtual int Flush() OVERRIDE; 41 | }; 42 | 43 | #endif // USING_CEF_SHARED 44 | #endif // CEF_LIBCEF_DLL_CTOCPP_STREAM_WRITER_CTOCPP_H_ 45 | 46 | -------------------------------------------------------------------------------- /cef/libcef_dll/ctocpp/task_runner_ctocpp.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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_TASK_RUNNER_CTOCPP_H_ 14 | #define CEF_LIBCEF_DLL_CTOCPP_TASK_RUNNER_CTOCPP_H_ 15 | #pragma once 16 | 17 | #ifndef USING_CEF_SHARED 18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only") 19 | #else // USING_CEF_SHARED 20 | 21 | #include "include/cef_task.h" 22 | #include "include/capi/cef_task_capi.h" 23 | #include "libcef_dll/ctocpp/ctocpp.h" 24 | 25 | // Wrap a C structure with a C++ class. 26 | // This class may be instantiated and accessed wrapper-side only. 27 | class CefTaskRunnerCToCpp 28 | : public CefCToCpp { 29 | public: 30 | explicit CefTaskRunnerCToCpp(cef_task_runner_t* str) 31 | : CefCToCpp(str) {} 32 | virtual ~CefTaskRunnerCToCpp() {} 33 | 34 | // CefTaskRunner methods 35 | virtual bool IsSame(CefRefPtr that) OVERRIDE; 36 | virtual bool BelongsToCurrentThread() OVERRIDE; 37 | virtual bool BelongsToThread(CefThreadId threadId) OVERRIDE; 38 | virtual bool PostTask(CefRefPtr task) OVERRIDE; 39 | virtual bool PostDelayedTask(CefRefPtr task, 40 | int64 delay_ms) OVERRIDE; 41 | }; 42 | 43 | #endif // USING_CEF_SHARED 44 | #endif // CEF_LIBCEF_DLL_CTOCPP_TASK_RUNNER_CTOCPP_H_ 45 | 46 | -------------------------------------------------------------------------------- /cef/libcef_dll/ctocpp/urlrequest_ctocpp.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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_URLREQUEST_CTOCPP_H_ 14 | #define CEF_LIBCEF_DLL_CTOCPP_URLREQUEST_CTOCPP_H_ 15 | #pragma once 16 | 17 | #ifndef USING_CEF_SHARED 18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only") 19 | #else // USING_CEF_SHARED 20 | 21 | #include "include/cef_urlrequest.h" 22 | #include "include/capi/cef_urlrequest_capi.h" 23 | #include "libcef_dll/ctocpp/ctocpp.h" 24 | 25 | // Wrap a C structure with a C++ class. 26 | // This class may be instantiated and accessed wrapper-side only. 27 | class CefURLRequestCToCpp 28 | : public CefCToCpp { 29 | public: 30 | explicit CefURLRequestCToCpp(cef_urlrequest_t* str) 31 | : CefCToCpp(str) {} 32 | virtual ~CefURLRequestCToCpp() {} 33 | 34 | // CefURLRequest methods 35 | virtual CefRefPtr GetRequest() OVERRIDE; 36 | virtual CefRefPtr GetClient() OVERRIDE; 37 | virtual Status GetRequestStatus() OVERRIDE; 38 | virtual ErrorCode GetRequestError() OVERRIDE; 39 | virtual CefRefPtr GetResponse() OVERRIDE; 40 | virtual void Cancel() OVERRIDE; 41 | }; 42 | 43 | #endif // USING_CEF_SHARED 44 | #endif // CEF_LIBCEF_DLL_CTOCPP_URLREQUEST_CTOCPP_H_ 45 | 46 | -------------------------------------------------------------------------------- /cef/libcef_dll/ctocpp/v8context_ctocpp.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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_V8CONTEXT_CTOCPP_H_ 14 | #define CEF_LIBCEF_DLL_CTOCPP_V8CONTEXT_CTOCPP_H_ 15 | #pragma once 16 | 17 | #ifndef USING_CEF_SHARED 18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only") 19 | #else // USING_CEF_SHARED 20 | 21 | #include "include/cef_v8.h" 22 | #include "include/capi/cef_v8_capi.h" 23 | #include "libcef_dll/ctocpp/ctocpp.h" 24 | 25 | // Wrap a C structure with a C++ class. 26 | // This class may be instantiated and accessed wrapper-side only. 27 | class CefV8ContextCToCpp 28 | : public CefCToCpp { 29 | public: 30 | explicit CefV8ContextCToCpp(cef_v8context_t* str) 31 | : CefCToCpp(str) {} 32 | virtual ~CefV8ContextCToCpp() {} 33 | 34 | // CefV8Context methods 35 | virtual CefRefPtr GetTaskRunner() OVERRIDE; 36 | virtual bool IsValid() OVERRIDE; 37 | virtual CefRefPtr GetBrowser() OVERRIDE; 38 | virtual CefRefPtr GetFrame() OVERRIDE; 39 | virtual CefRefPtr GetGlobal() OVERRIDE; 40 | virtual bool Enter() OVERRIDE; 41 | virtual bool Exit() OVERRIDE; 42 | virtual bool IsSame(CefRefPtr that) OVERRIDE; 43 | virtual bool Eval(const CefString& code, CefRefPtr& retval, 44 | CefRefPtr& exception) OVERRIDE; 45 | }; 46 | 47 | #endif // USING_CEF_SHARED 48 | #endif // CEF_LIBCEF_DLL_CTOCPP_V8CONTEXT_CTOCPP_H_ 49 | 50 | -------------------------------------------------------------------------------- /cef/libcef_dll/ctocpp/v8exception_ctocpp.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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_V8EXCEPTION_CTOCPP_H_ 14 | #define CEF_LIBCEF_DLL_CTOCPP_V8EXCEPTION_CTOCPP_H_ 15 | #pragma once 16 | 17 | #ifndef USING_CEF_SHARED 18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only") 19 | #else // USING_CEF_SHARED 20 | 21 | #include "include/cef_v8.h" 22 | #include "include/capi/cef_v8_capi.h" 23 | #include "libcef_dll/ctocpp/ctocpp.h" 24 | 25 | // Wrap a C structure with a C++ class. 26 | // This class may be instantiated and accessed wrapper-side only. 27 | class CefV8ExceptionCToCpp 28 | : public CefCToCpp { 30 | public: 31 | explicit CefV8ExceptionCToCpp(cef_v8exception_t* str) 32 | : CefCToCpp( 33 | str) {} 34 | virtual ~CefV8ExceptionCToCpp() {} 35 | 36 | // CefV8Exception methods 37 | virtual CefString GetMessage() OVERRIDE; 38 | virtual CefString GetSourceLine() OVERRIDE; 39 | virtual CefString GetScriptResourceName() OVERRIDE; 40 | virtual int GetLineNumber() OVERRIDE; 41 | virtual int GetStartPosition() OVERRIDE; 42 | virtual int GetEndPosition() OVERRIDE; 43 | virtual int GetStartColumn() OVERRIDE; 44 | virtual int GetEndColumn() OVERRIDE; 45 | }; 46 | 47 | #endif // USING_CEF_SHARED 48 | #endif // CEF_LIBCEF_DLL_CTOCPP_V8EXCEPTION_CTOCPP_H_ 49 | 50 | -------------------------------------------------------------------------------- /cef/libcef_dll/ctocpp/v8stack_frame_ctocpp.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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_V8STACK_FRAME_CTOCPP_H_ 14 | #define CEF_LIBCEF_DLL_CTOCPP_V8STACK_FRAME_CTOCPP_H_ 15 | #pragma once 16 | 17 | #ifndef USING_CEF_SHARED 18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only") 19 | #else // USING_CEF_SHARED 20 | 21 | #include "include/cef_v8.h" 22 | #include "include/capi/cef_v8_capi.h" 23 | #include "libcef_dll/ctocpp/ctocpp.h" 24 | 25 | // Wrap a C structure with a C++ class. 26 | // This class may be instantiated and accessed wrapper-side only. 27 | class CefV8StackFrameCToCpp 28 | : public CefCToCpp { 30 | public: 31 | explicit CefV8StackFrameCToCpp(cef_v8stack_frame_t* str) 32 | : CefCToCpp( 33 | str) {} 34 | virtual ~CefV8StackFrameCToCpp() {} 35 | 36 | // CefV8StackFrame methods 37 | virtual bool IsValid() OVERRIDE; 38 | virtual CefString GetScriptName() OVERRIDE; 39 | virtual CefString GetScriptNameOrSourceURL() OVERRIDE; 40 | virtual CefString GetFunctionName() OVERRIDE; 41 | virtual int GetLineNumber() OVERRIDE; 42 | virtual int GetColumn() OVERRIDE; 43 | virtual bool IsEval() OVERRIDE; 44 | virtual bool IsConstructor() OVERRIDE; 45 | }; 46 | 47 | #endif // USING_CEF_SHARED 48 | #endif // CEF_LIBCEF_DLL_CTOCPP_V8STACK_FRAME_CTOCPP_H_ 49 | 50 | -------------------------------------------------------------------------------- /cef/libcef_dll/ctocpp/v8stack_trace_ctocpp.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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_V8STACK_TRACE_CTOCPP_H_ 14 | #define CEF_LIBCEF_DLL_CTOCPP_V8STACK_TRACE_CTOCPP_H_ 15 | #pragma once 16 | 17 | #ifndef USING_CEF_SHARED 18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only") 19 | #else // USING_CEF_SHARED 20 | 21 | #include "include/cef_v8.h" 22 | #include "include/capi/cef_v8_capi.h" 23 | #include "libcef_dll/ctocpp/ctocpp.h" 24 | 25 | // Wrap a C structure with a C++ class. 26 | // This class may be instantiated and accessed wrapper-side only. 27 | class CefV8StackTraceCToCpp 28 | : public CefCToCpp { 30 | public: 31 | explicit CefV8StackTraceCToCpp(cef_v8stack_trace_t* str) 32 | : CefCToCpp( 33 | str) {} 34 | virtual ~CefV8StackTraceCToCpp() {} 35 | 36 | // CefV8StackTrace methods 37 | virtual bool IsValid() OVERRIDE; 38 | virtual int GetFrameCount() OVERRIDE; 39 | virtual CefRefPtr GetFrame(int index) OVERRIDE; 40 | }; 41 | 42 | #endif // USING_CEF_SHARED 43 | #endif // CEF_LIBCEF_DLL_CTOCPP_V8STACK_TRACE_CTOCPP_H_ 44 | 45 | -------------------------------------------------------------------------------- /cef/libcef_dll/ctocpp/web_plugin_info_ctocpp.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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_WEB_PLUGIN_INFO_CTOCPP_H_ 14 | #define CEF_LIBCEF_DLL_CTOCPP_WEB_PLUGIN_INFO_CTOCPP_H_ 15 | #pragma once 16 | 17 | #ifndef USING_CEF_SHARED 18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only") 19 | #else // USING_CEF_SHARED 20 | 21 | #include "include/cef_web_plugin.h" 22 | #include "include/capi/cef_web_plugin_capi.h" 23 | #include "libcef_dll/ctocpp/ctocpp.h" 24 | 25 | // Wrap a C structure with a C++ class. 26 | // This class may be instantiated and accessed wrapper-side only. 27 | class CefWebPluginInfoCToCpp 28 | : public CefCToCpp { 30 | public: 31 | explicit CefWebPluginInfoCToCpp(cef_web_plugin_info_t* str) 32 | : CefCToCpp(str) {} 34 | virtual ~CefWebPluginInfoCToCpp() {} 35 | 36 | // CefWebPluginInfo methods 37 | virtual CefString GetName() OVERRIDE; 38 | virtual CefString GetPath() OVERRIDE; 39 | virtual CefString GetVersion() OVERRIDE; 40 | virtual CefString GetDescription() OVERRIDE; 41 | }; 42 | 43 | #endif // USING_CEF_SHARED 44 | #endif // CEF_LIBCEF_DLL_CTOCPP_WEB_PLUGIN_INFO_CTOCPP_H_ 45 | 46 | -------------------------------------------------------------------------------- /cef/libcef_dll/ctocpp/zip_reader_ctocpp.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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_ZIP_READER_CTOCPP_H_ 14 | #define CEF_LIBCEF_DLL_CTOCPP_ZIP_READER_CTOCPP_H_ 15 | #pragma once 16 | 17 | #ifndef USING_CEF_SHARED 18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only") 19 | #else // USING_CEF_SHARED 20 | 21 | #include "include/cef_zip_reader.h" 22 | #include "include/capi/cef_zip_reader_capi.h" 23 | #include "libcef_dll/ctocpp/ctocpp.h" 24 | 25 | // Wrap a C structure with a C++ class. 26 | // This class may be instantiated and accessed wrapper-side only. 27 | class CefZipReaderCToCpp 28 | : public CefCToCpp { 29 | public: 30 | explicit CefZipReaderCToCpp(cef_zip_reader_t* str) 31 | : CefCToCpp(str) {} 32 | virtual ~CefZipReaderCToCpp() {} 33 | 34 | // CefZipReader methods 35 | virtual bool MoveToFirstFile() OVERRIDE; 36 | virtual bool MoveToNextFile() OVERRIDE; 37 | virtual bool MoveToFile(const CefString& fileName, 38 | bool caseSensitive) OVERRIDE; 39 | virtual bool Close() OVERRIDE; 40 | virtual CefString GetFileName() OVERRIDE; 41 | virtual int64 GetFileSize() OVERRIDE; 42 | virtual time_t GetFileLastModified() OVERRIDE; 43 | virtual bool OpenFile(const CefString& password) OVERRIDE; 44 | virtual bool CloseFile() OVERRIDE; 45 | virtual int ReadFile(void* buffer, size_t bufferSize) OVERRIDE; 46 | virtual int64 Tell() OVERRIDE; 47 | virtual bool Eof() OVERRIDE; 48 | }; 49 | 50 | #endif // USING_CEF_SHARED 51 | #endif // CEF_LIBCEF_DLL_CTOCPP_ZIP_READER_CTOCPP_H_ 52 | 53 | -------------------------------------------------------------------------------- /cef/libcef_dll/transfer_util.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2009 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 | #ifndef CEF_LIBCEF_DLL_TRANSFER_UTIL_H_ 6 | #define CEF_LIBCEF_DLL_TRANSFER_UTIL_H_ 7 | #pragma once 8 | 9 | #include 10 | #include 11 | 12 | #include "include/internal/cef_string_list.h" 13 | #include "include/internal/cef_string_map.h" 14 | #include "include/internal/cef_string_multimap.h" 15 | 16 | // Copy contents from one list type to another. 17 | typedef std::vector StringList; 18 | void transfer_string_list_contents(cef_string_list_t fromList, 19 | StringList& toList); 20 | void transfer_string_list_contents(const StringList& fromList, 21 | cef_string_list_t toList); 22 | 23 | // Copy contents from one map type to another. 24 | typedef std::map StringMap; 25 | void transfer_string_map_contents(cef_string_map_t fromMap, 26 | StringMap& toMap); 27 | void transfer_string_map_contents(const StringMap& fromMap, 28 | cef_string_map_t toMap); 29 | 30 | // Copy contents from one map type to another. 31 | typedef std::multimap StringMultimap; 32 | void transfer_string_multimap_contents(cef_string_multimap_t fromMap, 33 | StringMultimap& toMap); 34 | void transfer_string_multimap_contents(const StringMultimap& fromMap, 35 | cef_string_multimap_t toMap); 36 | 37 | #endif // CEF_LIBCEF_DLL_TRANSFER_UTIL_H_ 38 | -------------------------------------------------------------------------------- /cef/libcef_dll/wrapper/cef_byte_read_handler.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2010 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 | #include "include/wrapper/cef_byte_read_handler.h" 6 | #include 7 | #include "libcef_dll/cef_logging.h" 8 | 9 | CefByteReadHandler::CefByteReadHandler(const unsigned char* bytes, size_t size, 10 | CefRefPtr source) 11 | : bytes_(bytes), size_(size), offset_(0), source_(source) { 12 | } 13 | 14 | size_t CefByteReadHandler::Read(void* ptr, size_t size, size_t n) { 15 | AutoLock lock_scope(this); 16 | size_t s = static_cast(size_ - offset_) / size; 17 | size_t ret = std::min(n, s); 18 | memcpy(ptr, bytes_ + offset_, ret * size); 19 | offset_ += ret * size; 20 | return ret; 21 | } 22 | 23 | int CefByteReadHandler::Seek(int64 offset, int whence) { 24 | int rv = -1L; 25 | AutoLock lock_scope(this); 26 | switch (whence) { 27 | case SEEK_CUR: 28 | if (offset_ + offset > size_ || offset_ + offset < 0) 29 | break; 30 | offset_ += offset; 31 | rv = 0; 32 | break; 33 | case SEEK_END: { 34 | #if defined(OS_WIN) 35 | int64 offset_abs = _abs64(offset); 36 | #else 37 | int64 offset_abs = abs(offset); 38 | #endif 39 | if (offset_abs > size_) 40 | break; 41 | offset_ = size_ - offset_abs; 42 | rv = 0; 43 | break; 44 | } 45 | case SEEK_SET: 46 | if (offset > size_ || offset < 0) 47 | break; 48 | offset_ = offset; 49 | rv = 0; 50 | break; 51 | } 52 | 53 | return rv; 54 | } 55 | 56 | int64 CefByteReadHandler::Tell() { 57 | AutoLock lock_scope(this); 58 | return offset_; 59 | } 60 | 61 | int CefByteReadHandler::Eof() { 62 | AutoLock lock_scope(this); 63 | return (offset_ >= size_); 64 | } 65 | -------------------------------------------------------------------------------- /cef/libcef_dll/wrapper/cef_stream_resource_handler.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012 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 | #include "include/wrapper/cef_stream_resource_handler.h" 6 | #include "include/cef_callback.h" 7 | #include "include/cef_request.h" 8 | #include "include/cef_stream.h" 9 | #include "libcef_dll/cef_logging.h" 10 | 11 | CefStreamResourceHandler::CefStreamResourceHandler( 12 | const CefString& mime_type, 13 | CefRefPtr stream) 14 | : status_code_(200), 15 | mime_type_(mime_type), 16 | stream_(stream) { 17 | DCHECK(!mime_type_.empty()); 18 | DCHECK(stream_.get()); 19 | } 20 | 21 | CefStreamResourceHandler::CefStreamResourceHandler( 22 | int status_code, 23 | const CefString& mime_type, 24 | CefResponse::HeaderMap header_map, 25 | CefRefPtr stream) 26 | : status_code_(status_code), 27 | mime_type_(mime_type), 28 | header_map_(header_map), 29 | stream_(stream) { 30 | DCHECK(!mime_type_.empty()); 31 | DCHECK(stream_.get()); 32 | } 33 | 34 | bool CefStreamResourceHandler::ProcessRequest(CefRefPtr request, 35 | CefRefPtr callback) { 36 | callback->Continue(); 37 | return true; 38 | } 39 | 40 | void CefStreamResourceHandler::GetResponseHeaders( 41 | CefRefPtr response, 42 | int64& response_length, 43 | CefString& redirectUrl) { 44 | response->SetStatus(status_code_); 45 | response->SetMimeType(mime_type_); 46 | 47 | if (!header_map_.empty()) 48 | response->SetHeaderMap(header_map_); 49 | 50 | response_length = -1; 51 | } 52 | 53 | bool CefStreamResourceHandler::ReadResponse(void* data_out, 54 | int bytes_to_read, 55 | int& bytes_read, 56 | CefRefPtr callback) { 57 | bytes_read = static_cast(stream_->Read(data_out, 1, bytes_to_read)); 58 | return (bytes_read > 0); 59 | } 60 | 61 | void CefStreamResourceHandler::Cancel() { 62 | } 63 | -------------------------------------------------------------------------------- /cef/libcef_dll/wrapper/libcef_dll_wrapper2.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011 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 | -------------------------------------------------------------------------------- /changelog.md: -------------------------------------------------------------------------------- 1 | HTML5 Plugin 1.0.0.0 (26.08.2014) 2 | --------------------------- 3 | Stable Release for CryEngine (32/64 bit) 4 | 5 | HTML5 Plugin 0.5.0.0 (2014) 6 | --------------------------- 7 | Initial Stable Release for CryEngine (32/64 bit) 8 | -------------------------------------------------------------------------------- /project/Plugin_HTML5.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2012 4 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "HTML5", "HTML5.vcxproj", "{C25798EE-4832-4BE9-BF61-8937B933348C}" 5 | EndProject 6 | Global 7 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 8 | Debug|Win32 = Debug|Win32 9 | Debug|x64 = Debug|x64 10 | Release|Win32 = Release|Win32 11 | Release|x64 = Release|x64 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {C25798EE-4832-4BE9-BF61-8937B933348C}.Debug|Win32.ActiveCfg = Debug|Win32 15 | {C25798EE-4832-4BE9-BF61-8937B933348C}.Debug|Win32.Build.0 = Debug|Win32 16 | {C25798EE-4832-4BE9-BF61-8937B933348C}.Debug|x64.ActiveCfg = Debug|x64 17 | {C25798EE-4832-4BE9-BF61-8937B933348C}.Debug|x64.Build.0 = Debug|x64 18 | {C25798EE-4832-4BE9-BF61-8937B933348C}.Release|Win32.ActiveCfg = Release|Win32 19 | {C25798EE-4832-4BE9-BF61-8937B933348C}.Release|Win32.Build.0 = Release|Win32 20 | {C25798EE-4832-4BE9-BF61-8937B933348C}.Release|x64.ActiveCfg = Release|x64 21 | {C25798EE-4832-4BE9-BF61-8937B933348C}.Release|x64.Build.0 = Release|x64 22 | EndGlobalSection 23 | GlobalSection(SolutionProperties) = preSolution 24 | HideSolutionNode = FALSE 25 | EndGlobalSection 26 | EndGlobal 27 | -------------------------------------------------------------------------------- /project/resource.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hendrikp/CryHTML5/bb6752d0881140abcaf6891cc4434b16887f007b/project/resource.h -------------------------------------------------------------------------------- /project/version.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hendrikp/CryHTML5/bb6752d0881140abcaf6891cc4434b16887f007b/project/version.rc -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- 1 | ![CryHTML5 - chromium for CryEngine 3](http://i.imgur.com/9Ird5pb.png) 2 | ===================================== 3 | **Chromium** is an open-source browser project that can be used to render web pages and dynamic graphics at lightning speed. ([see](http://www.chromium.org/developers/design-documents/displaying-a-web-page-in-chrome)). 4 | 5 | **CryHTML5** is a bridge between the [Chromium Embedded Framework](https://bitbucket.org/chromiumembedded/cef) and the CryEngine renderer, which allows developers to rapidly build UI for their games using the highly prevalent HTML5 format. Furthermore, developers can use JavaScript and the numerous open source JavaScript libraries available to browser based apps in the game engine. 6 | 7 | CryHTML5 is licensed under the terms of GNU LGPL 2.1 license. 8 | 9 | Installation / Integration 10 | ========================== 11 | Clone (or add as a submodule) this repository to the `Code` directory. This plugin depends on `Plugin_D3D` and `Plugin_SDK` which should be checked out and compiled in the same way. 12 | 13 | The plugin manager will automatically load up the plugin (from Bin32/Plugins) when the game/editor is restarted or if you directly load it. 14 | 15 | CVars / Commands 16 | ================ 17 | * ```cm5_active``` Activate 1 Deactivate 0 18 | * ```cm5_devtools``` Opens the Developer tools 19 | * ```cm5_url``` Open URL (Syntax cry://... will open files in game directories and pak files) 20 | * ```cm5_js``` Execute Javascript 21 | * ```cm5_input``` Input Mode 1 Keys only, 2 Mouse + Emulation (requires virtual cursor), 3 Hardware Mouse 22 | 23 | Flownodes 24 | ========= 25 | FlowNode control interface is planned. 26 | -------------------------------------------------------------------------------- /src/CEFCryPak.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hendrikp/CryHTML5/bb6752d0881140abcaf6891cc4434b16887f007b/src/CEFCryPak.hpp -------------------------------------------------------------------------------- /src/CPluginHTML5Module.cpp: -------------------------------------------------------------------------------- 1 | /* CryHTML5 - for licensing and copyright see license.txt */ 2 | 3 | #include 4 | #include 5 | #include "CPluginHTML5.h" 6 | #include 7 | #include 8 | 9 | extern "C" 10 | { 11 | DLL_EXPORT PluginManager::IPluginBase* GetPluginInterface( const char* sInterfaceVersion ) 12 | { 13 | // This function should not create a new interface class each call. 14 | static HTML5Plugin::CPluginHTML5 modulePlugin; 15 | HTML5Plugin::gPlugin = &modulePlugin; 16 | return modulePlugin.GetBase(); 17 | } 18 | } 19 | 20 | PluginManager::IPluginManager* gPluginManager = NULL; //!< pointer to plugin manager 21 | 22 | // Needed for module specific flow node 23 | CG2AutoRegFlowNodeBase* CG2AutoRegFlowNodeBase::m_pFirst = 0; //!< pointer to first flownode inside this plugin 24 | CG2AutoRegFlowNodeBase* CG2AutoRegFlowNodeBase::m_pLast = 0; //!< pointer to last flownode inside this plugin 25 | 26 | #define WIN32_LEAN_AND_MEAN 27 | #include 28 | 29 | /** 30 | * @brief DLL Entry point. 31 | * Has no function(yet?) in this plugin system. 32 | */ 33 | BOOL APIENTRY DllMain( HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserved ) 34 | { 35 | switch ( ul_reason_for_call ) 36 | { 37 | case DLL_PROCESS_ATTACH: 38 | break; 39 | 40 | case DLL_THREAD_ATTACH: 41 | break; 42 | 43 | case DLL_THREAD_DETACH: 44 | break; 45 | 46 | case DLL_PROCESS_DETACH: 47 | break; 48 | } 49 | 50 | return TRUE; 51 | } -------------------------------------------------------------------------------- /src/FullscreenTriangleDrawer.h: -------------------------------------------------------------------------------- 1 | /* CryHTML5 - for licensing and copyright see license.txt */ 2 | 3 | #pragma once 4 | 5 | struct IDirect3DTexture9; 6 | struct IDirect3DVertexDeclaration9; 7 | struct IDirect3DVertexBuffer9; 8 | struct IDirect3DVertexShader9; 9 | struct IDirect3DPixelShader9; 10 | struct IDirect3DStateBlock9; 11 | struct ID3D11ShaderResourceView; 12 | struct ID3D11VertexShader; 13 | struct ID3D11PixelShader; 14 | struct ID3D11BlendState; 15 | 16 | namespace HTML5Plugin 17 | { 18 | 19 | class CFullscreenTriangleDrawer 20 | { 21 | public: 22 | CFullscreenTriangleDrawer(); 23 | ~CFullscreenTriangleDrawer(); 24 | 25 | void Draw( void* pTexture ); 26 | 27 | private: 28 | void CreateDX9Resources(); 29 | void CreateDX11Resources(); 30 | 31 | void DrawDX9( IDirect3DTexture9* pTexture ); 32 | void DrawDX11( ID3D11ShaderResourceView* pTexture ); 33 | 34 | private: 35 | // DX9 36 | IDirect3DVertexDeclaration9* m_pVertexDeclaration; 37 | IDirect3DVertexBuffer9* m_pVertexBuffer; 38 | IDirect3DVertexShader9* m_pVertexShader9; 39 | IDirect3DPixelShader9* m_pPixelShader9; 40 | IDirect3DStateBlock9* m_pStateBlock; 41 | 42 | // DX11 43 | ID3D11VertexShader* m_pVertexShader11; 44 | ID3D11PixelShader* m_pPixelShader11; 45 | ID3D11BlendState* m_pBlendState11; 46 | }; 47 | 48 | } 49 | -------------------------------------------------------------------------------- /src/StdAfx.cpp: -------------------------------------------------------------------------------- 1 | /* HTML5_Plugin - for licensing and copyright see license.txt */ 2 | 3 | #include "StdAfx.h" 4 | -------------------------------------------------------------------------------- /src/StdAfx.h: -------------------------------------------------------------------------------- 1 | /* CryHTML5 - for licensing and copyright see license.txt */ 2 | 3 | #pragma once 4 | 5 | // Insert your headers here 6 | #include 7 | #include 8 | #include 9 | #include 10 | #include 11 | #include 12 | #include 13 | #include 14 | #include 15 | #include 16 | #include 17 | #include 18 | #include 19 | #include 20 | #include 21 | #include 22 | #include 23 | #include 24 | 25 | #ifndef _FORCEDLL 26 | #define _FORCEDLL 27 | #endif 28 | 29 | #ifndef HTML5PLUGIN_EXPORTS 30 | #define HTML5PLUGIN_EXPORTS 31 | #endif 32 | 33 | #pragma warning(disable: 4018) // conditional expression is constant 34 | 35 | //{{AFX_INSERT_LOCATION}} 36 | // Microsoft Visual C++ will insert additional declarations immediately before the previous line. 37 | -------------------------------------------------------------------------------- /tools/AStyle/styles.css: -------------------------------------------------------------------------------- 1 |  2 | /* h1 is a title 3 | * h2 is a subtitle 4 | * h3 is a hanging text title 5 | * h4 is a non-hanging text title 6 | * p.noindent is non-hanging text (text without a title) 7 | * div.code is a light-blue backgroung color for preformatted code 8 | * pre is preformatted source code 9 | * p.contents entries are for the table of contents 10 | * a.contents are table of contents links (not underlined) 11 | * a.links are links (underlined) 12 | * .footer is the image table at the bottom of the page 13 | * img does not have a border 14 | */ 15 | 16 | 17 | body { background-color:white; margin-top:0.5in; margin-right:0.8in; margin-bottom:0.5in; margin-left:1.3in; } 18 | 19 | h1 { color:#0000A0; text-align:center; font-style:italic; margin-top:18pt; margin-left:-0.5in; } 20 | h2.large { color:#0000A0; text-align:center; font-size:x-large; margin-top:0.4in; margin-left:-0.5in; } 21 | h2 { color:#0000A0; text-align:center; font-size:larger; margin-top:0.4in; margin-left:-0.5in; } 22 | h3 { color:#0000A0; margin-top:0.4in; margin-left:-0.4in; } 23 | h4 { color:#0000A0; } 24 | 25 | p.noindent { margin-left:-0.4in; } 26 | 27 | div.code { background:#E0E8FF; } 28 | pre { margin-left:0.3in; } 29 | /* pre.em { background:#FDFCFF; margin-right:0.3in;} */ 30 | 31 | p.contents1 { font-size:105%; margin-top:0in; margin-left:0in; margin-bottom:0in; margin-right:0in; } 32 | p.contents2 { margin-top:0in; margin-left:.4in; margin-bottom:0in; margin-right:.4in; } 33 | /* p.contents3 { margin-top:0in; margin-left:.8in; margin-bottom:0in; margin-right:.8in; } */ 34 | a.contents:link, a.contents:visited { color:#0000A0; text-decoration:none; } 35 | a.contents:hover { color:#F00000; text-decoration:none; } 36 | 37 | a:link, a:visited { color:#0000A0; text-decoration:underline; } 38 | a:hover { color:#F00000; text-decoration:underline; } 39 | 40 | center.footer { margin-left:-0.4in; margin-top:0.25in; } 41 | h2.footer { font-size:x-large; margin-top:0; margin-left:0; } 42 | 43 | img { border:none; } 44 | -------------------------------------------------------------------------------- /tools/build.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | 3 | :: Set project relevant settings 4 | set VCPROJECT="..\project\HTML5.vcxproj" 5 | set VCTOOLS="%VS110COMNTOOLS%..\..\VC\vcvarsall.bat" 6 | 7 | IF EXIST %VCTOOLS% ( 8 | :: Compile x86 9 | call %VCTOOLS% x86 10 | 11 | MSBuild %VCPROJECT% /t:Rebuild /p:Configuration=Release 12 | IF ERRORLEVEL 1 GOTO COMPILERROR 13 | 14 | 15 | :: Compile x64 16 | call %VCTOOLS% x64 17 | 18 | MSBuild %VCPROJECT% /t:Rebuild /p:Configuration=Release 19 | IF ERRORLEVEL 1 GOTO COMPILERROR 20 | ) 21 | 22 | :: End 23 | GOTO ENDOK 24 | 25 | :COMPILERROR 26 | 27 | ::Trigger a Syntax error 28 | --ERROR_DETECTED-- 29 | 30 | :ENDOK 31 | -------------------------------------------------------------------------------- /tools/build_installer.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | 3 | :: Detection code from https://github.com/SublimeText/NSIS 4 | 5 | set nsis_compiler= 6 | 7 | if defined NSIS_HOME ( 8 | if exist "%NSIS_HOME%\makensis.exe" ( 9 | set "nsis_compiler=%NSIS_HOME%" 10 | ) 11 | ) 12 | 13 | if %PROCESSOR_ARCHITECTURE%==x86 ( 14 | Set RegQry=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\NSIS 15 | ) else ( 16 | Set RegQry=HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\NSIS 17 | ) 18 | 19 | if not defined nsis_compiler ( 20 | for /F "tokens=2*" %%a in ('reg query %RegQry% /v InstallLocation ^|findstr InstallLocation') do set nsis_compiler=%%b 21 | ) 22 | 23 | if not defined nsis_compiler ( 24 | for %%X in (makensis.exe) do (set nsis_compiler=%%~dp$PATH:X) 25 | ) 26 | 27 | if defined nsis_compiler ( 28 | "%nsis_compiler%\makensis.exe" "HTML5_Installer.nsi" 29 | ) else ( 30 | echo "Error, build system cannot find NSIS! Please reinstall it, add makensis.exe to your PATH, or define the NSIS_HOME environment variable." 31 | ) 32 | -------------------------------------------------------------------------------- /tools/codestyle.astylerc: -------------------------------------------------------------------------------- 1 | --style=bsd 2 | --indent-switches 3 | --indent-cases 4 | --indent-namespaces 5 | --indent-classes 6 | --indent-preproc-define 7 | --indent-col1-comments 8 | --indent-modifiers 9 | --max-instatement-indent=40 10 | --break-blocks=all 11 | --pad-oper 12 | --pad-header 13 | --unpad-paren 14 | --pad-paren-in 15 | --add-brackets 16 | --align-pointer=type 17 | --align-reference=type 18 | --indent=spaces=4 19 | --convert-tabs 20 | --lineend=windows 21 | --mode=c 22 | --suffix=none 23 | --close-templates 24 | -------------------------------------------------------------------------------- /tools/stylecode.bat: -------------------------------------------------------------------------------- 1 | @echo OFF 2 | 3 | set "ASTYLE=%~dp0AStyle\AStyle.exe" 4 | set "APROFILE=%~dp0codestyle.astylerc" 5 | set "SOURCEDIR=%~dp0.." 6 | 7 | :: sourcecode path to indent 8 | if not ("%~1")==("") ( 9 | set "SOURCEDIR=%~1" 10 | ) 11 | 12 | :: use a personal style or a style suitable for source control / team? 13 | if not ("%~2")==("") ( 14 | if exist "%~2" ( 15 | set "APROFILE=%~2" 16 | ) 17 | ) 18 | 19 | :: Now indent the files 20 | 21 | set EXTENSIONS=h hpp c cc cpp 22 | 23 | echo Indenting the files '%EXTENSIONS%' in '%SOURCEDIR%' with profile '%APROFILE%' 24 | 25 | for %%i in (%EXTENSIONS%) do ( 26 | "%ASTYLE%" --options="%APROFILE%" -RnqZ "%SOURCEDIR%\src\*.%%i" 2> nul 27 | "%ASTYLE%" --options="%APROFILE%" -RnqZ "%SOURCEDIR%\inc\*.%%i" 2> nul 28 | ) 29 | 30 | exit /B 0 --------------------------------------------------------------------------------