├── .gitignore ├── Makefile ├── README.md ├── cef └── linux │ ├── 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 │ ├── include │ ├── internal │ │ ├── cef_build.h │ │ ├── cef_export.h │ │ ├── cef_linux.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_linux.h │ │ ├── cef_types_wrappers.h │ │ └── include │ └── wrapper │ │ ├── cef_byte_read_handler.h │ │ ├── cef_message_router.h │ │ ├── cef_stream_resource_handler.h │ │ ├── cef_xml_object.h │ │ └── cef_zip_archive.h │ └── lib │ ├── libcef_dll_wrapper.a │ ├── libcef_dll_wrapper │ └── libcef_dll │ │ ├── cpptoc │ │ ├── app_cpptoc.o │ │ ├── browser_process_handler_cpptoc.o │ │ ├── client_cpptoc.o │ │ ├── completion_handler_cpptoc.o │ │ ├── context_menu_handler_cpptoc.o │ │ ├── cookie_visitor_cpptoc.o │ │ ├── dialog_handler_cpptoc.o │ │ ├── display_handler_cpptoc.o │ │ ├── domevent_listener_cpptoc.o │ │ ├── domvisitor_cpptoc.o │ │ ├── download_handler_cpptoc.o │ │ ├── drag_handler_cpptoc.o │ │ ├── end_tracing_callback_cpptoc.o │ │ ├── focus_handler_cpptoc.o │ │ ├── geolocation_handler_cpptoc.o │ │ ├── get_geolocation_callback_cpptoc.o │ │ ├── jsdialog_handler_cpptoc.o │ │ ├── keyboard_handler_cpptoc.o │ │ ├── life_span_handler_cpptoc.o │ │ ├── load_handler_cpptoc.o │ │ ├── read_handler_cpptoc.o │ │ ├── render_handler_cpptoc.o │ │ ├── render_process_handler_cpptoc.o │ │ ├── request_context_handler_cpptoc.o │ │ ├── request_handler_cpptoc.o │ │ ├── resource_bundle_handler_cpptoc.o │ │ ├── resource_handler_cpptoc.o │ │ ├── run_file_dialog_callback_cpptoc.o │ │ ├── scheme_handler_factory_cpptoc.o │ │ ├── string_visitor_cpptoc.o │ │ ├── task_cpptoc.o │ │ ├── urlrequest_client_cpptoc.o │ │ ├── v8accessor_cpptoc.o │ │ ├── v8handler_cpptoc.o │ │ ├── web_plugin_info_visitor_cpptoc.o │ │ ├── web_plugin_unstable_callback_cpptoc.o │ │ └── write_handler_cpptoc.o │ │ ├── ctocpp │ │ ├── allow_certificate_error_callback_ctocpp.o │ │ ├── auth_callback_ctocpp.o │ │ ├── before_download_callback_ctocpp.o │ │ ├── binary_value_ctocpp.o │ │ ├── browser_ctocpp.o │ │ ├── browser_host_ctocpp.o │ │ ├── callback_ctocpp.o │ │ ├── command_line_ctocpp.o │ │ ├── context_menu_params_ctocpp.o │ │ ├── cookie_manager_ctocpp.o │ │ ├── dictionary_value_ctocpp.o │ │ ├── domdocument_ctocpp.o │ │ ├── domevent_ctocpp.o │ │ ├── domnode_ctocpp.o │ │ ├── download_item_callback_ctocpp.o │ │ ├── download_item_ctocpp.o │ │ ├── drag_data_ctocpp.o │ │ ├── file_dialog_callback_ctocpp.o │ │ ├── frame_ctocpp.o │ │ ├── geolocation_callback_ctocpp.o │ │ ├── jsdialog_callback_ctocpp.o │ │ ├── list_value_ctocpp.o │ │ ├── menu_model_ctocpp.o │ │ ├── post_data_ctocpp.o │ │ ├── post_data_element_ctocpp.o │ │ ├── process_message_ctocpp.o │ │ ├── quota_callback_ctocpp.o │ │ ├── request_context_ctocpp.o │ │ ├── request_ctocpp.o │ │ ├── response_ctocpp.o │ │ ├── scheme_registrar_ctocpp.o │ │ ├── stream_reader_ctocpp.o │ │ ├── stream_writer_ctocpp.o │ │ ├── task_runner_ctocpp.o │ │ ├── urlrequest_ctocpp.o │ │ ├── v8context_ctocpp.o │ │ ├── v8exception_ctocpp.o │ │ ├── v8stack_frame_ctocpp.o │ │ ├── v8stack_trace_ctocpp.o │ │ ├── v8value_ctocpp.o │ │ ├── web_plugin_info_ctocpp.o │ │ ├── xml_reader_ctocpp.o │ │ └── zip_reader_ctocpp.o │ │ ├── transfer_util.o │ │ └── wrapper │ │ ├── cef_byte_read_handler.o │ │ ├── cef_message_router.o │ │ ├── cef_stream_resource_handler.o │ │ ├── cef_xml_object.o │ │ ├── cef_zip_archive.o │ │ ├── libcef_dll_wrapper.o │ │ └── libcef_dll_wrapper2.o │ └── 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 │ ├── libffmpegsumo.so │ ├── linker.lock │ ├── 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 ├── examples ├── simple_example └── simple_example.cpp ├── include ├── browser_client.h ├── cefgui.h └── render_handler.h ├── shaders ├── gui.frag └── gui.vert └── src ├── browser_client.cpp ├── cefgui.cpp └── render_handler.cpp /.gitignore: -------------------------------------------------------------------------------- 1 | *.out 2 | cef/linux/lib/libcef.so 3 | bin/ 4 | -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | CC = g++ -g -std=c++11 2 | 3 | OGL_LINUX = -lGL -lGLEW -lglfw 4 | CEF = -Lcef/linux/lib -lcef -lcef_dll_wrapper -Wl,-R. -Wl,-Rcef/linux/lib 5 | CEFGUI = -Lbin -lcefgui -Wl,-Rbin 6 | 7 | GTK = $$(pkg-config gtk+-2.0 --cflags) $$(pkg-config gtk+-2.0 --libs) 8 | 9 | simple_example_linux: 10 | $(CC) $(GTK) -o examples/simple_example examples/simple_example.cpp $(CEFGUI) $(CEF) $(OGL_LINUX) 11 | 12 | cefgui_linux: 13 | $(CC) $(GTK) -shared -fPIC -o bin/libcefgui.so src/*.cpp $(CEF) $(OGL_LINUX) 14 | cp -a cef/linux/lib/. bin/ 15 | 16 | linux: 17 | make cefgui_linux 18 | make simple_example_linux 19 | examples/simple_example 20 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # cefgui 2 | 3 | Note: This project was originally intended to decouple the GUI code from a game 4 | I am developing but eventually opted for tighter integration with the game 5 | engine due to [the file directory requirements for OS 6 | X](https://bitbucket.org/chromiumembedded/cef/wiki/GeneralUsage.md#markdown-header-mac-os-x) and a few 7 | other reasons that became apparent while working on this. This is a very early version of my current CEF usage so use at 8 | your own risk! 9 | 10 | OpenGL GUI implementation using Chromium Embedded Framework (CEF). 11 | 12 | ## To Do 13 | 14 | - ~~better handling of resizing window~~ 15 | - ~~send mouse and keyboard events to browser~~ 16 | - implement javascript callbacks 17 | 18 | ## Notes 19 | 20 | - libcef.so exceeds Github's file size limit so not included in repo. 21 | - current example made for Arch Linux with OpenGL version 3.3 22 | - write usage instructions 23 | - add cegui_path setting rather than using hardcoded paths 24 | 25 | ## License 26 | 27 | [Creative Commons Attribution 4.0 International](http://creativecommons.org/licenses/by/4.0/) 28 | 29 | -------------------------------------------------------------------------------- /cef/linux/include/capi/cef_auth_callback_capi.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2014 Marshall A. Greenblatt. All rights reserved. 2 | // 3 | // Redistribution and use in source and binary forms, with or without 4 | // modification, are permitted provided that the following conditions are 5 | // met: 6 | // 7 | // * Redistributions of source code must retain the above copyright 8 | // notice, this list of conditions and the following disclaimer. 9 | // * Redistributions in binary form must reproduce the above 10 | // copyright notice, this list of conditions and the following disclaimer 11 | // in the documentation and/or other materials provided with the 12 | // distribution. 13 | // * Neither the name of Google Inc. nor the name Chromium Embedded 14 | // Framework nor the names of its contributors may be used to endorse 15 | // or promote products derived from this software without specific prior 16 | // written permission. 17 | // 18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 19 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 20 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 21 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 22 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 23 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 24 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | // 30 | // --------------------------------------------------------------------------- 31 | // 32 | // This file was generated by the CEF translator tool and should not edited 33 | // by hand. See the translator.README.txt file in the tools directory for 34 | // more information. 35 | // 36 | 37 | #ifndef CEF_INCLUDE_CAPI_CEF_AUTH_CALLBACK_CAPI_H_ 38 | #define CEF_INCLUDE_CAPI_CEF_AUTH_CALLBACK_CAPI_H_ 39 | #pragma once 40 | 41 | #include "include/capi/cef_base_capi.h" 42 | 43 | #ifdef __cplusplus 44 | extern "C" { 45 | #endif 46 | 47 | 48 | /// 49 | // Callback structure used for asynchronous continuation of authentication 50 | // requests. 51 | /// 52 | typedef struct _cef_auth_callback_t { 53 | /// 54 | // Base structure. 55 | /// 56 | cef_base_t base; 57 | 58 | /// 59 | // Continue the authentication request. 60 | /// 61 | void (CEF_CALLBACK *cont)(struct _cef_auth_callback_t* self, 62 | const cef_string_t* username, const cef_string_t* password); 63 | 64 | /// 65 | // Cancel the authentication request. 66 | /// 67 | void (CEF_CALLBACK *cancel)(struct _cef_auth_callback_t* self); 68 | } cef_auth_callback_t; 69 | 70 | 71 | #ifdef __cplusplus 72 | } 73 | #endif 74 | 75 | #endif // CEF_INCLUDE_CAPI_CEF_AUTH_CALLBACK_CAPI_H_ 76 | -------------------------------------------------------------------------------- /cef/linux/include/capi/cef_base_capi.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2014 Marshall A. Greenblatt. All rights reserved. 2 | // 3 | // Redistribution and use in source and binary forms, with or without 4 | // modification, are permitted provided that the following conditions are 5 | // met: 6 | // 7 | // * Redistributions of source code must retain the above copyright 8 | // notice, this list of conditions and the following disclaimer. 9 | // * Redistributions in binary form must reproduce the above 10 | // copyright notice, this list of conditions and the following disclaimer 11 | // in the documentation and/or other materials provided with the 12 | // distribution. 13 | // * Neither the name of Google Inc. nor the name Chromium Embedded 14 | // Framework nor the names of its contributors may be used to endorse 15 | // or promote products derived from this software without specific prior 16 | // written permission. 17 | // 18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 19 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 20 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 21 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 22 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 23 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 24 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | 30 | 31 | #ifndef CEF_INCLUDE_CAPI_CEF_BASE_CAPI_H_ 32 | #define CEF_INCLUDE_CAPI_CEF_BASE_CAPI_H_ 33 | 34 | #include "include/internal/cef_export.h" 35 | #include "include/internal/cef_string.h" 36 | #include "include/internal/cef_string_list.h" 37 | #include "include/internal/cef_string_map.h" 38 | #include "include/internal/cef_string_multimap.h" 39 | #include "include/internal/cef_types.h" 40 | 41 | #ifdef __cplusplus 42 | extern "C" { 43 | #endif 44 | 45 | /// 46 | // Structure defining the reference count implementation functions. All 47 | // framework structures must include the cef_base_t structure first. 48 | /// 49 | typedef struct _cef_base_t { 50 | /// 51 | // Size of the data structure. 52 | /// 53 | size_t size; 54 | 55 | /// 56 | // Increment the reference count. 57 | /// 58 | int (CEF_CALLBACK *add_ref)(struct _cef_base_t* self); 59 | 60 | /// 61 | // Decrement the reference count. Delete this object when no references 62 | // remain. 63 | /// 64 | int (CEF_CALLBACK *release)(struct _cef_base_t* self); 65 | 66 | /// 67 | // Returns the current number of references. 68 | /// 69 | int (CEF_CALLBACK *get_refct)(struct _cef_base_t* self); 70 | } cef_base_t; 71 | 72 | 73 | // Check that the structure |s|, which is defined with a cef_base_t member named 74 | // |base|, is large enough to contain the specified member |f|. 75 | #define CEF_MEMBER_EXISTS(s, f) \ 76 | ((intptr_t)&((s)->f) - (intptr_t)(s) + sizeof((s)->f) <= (s)->base.size) 77 | 78 | #define CEF_MEMBER_MISSING(s, f) (!CEF_MEMBER_EXISTS(s, f) || !((s)->f)) 79 | 80 | 81 | #ifdef __cplusplus 82 | } 83 | #endif 84 | 85 | #endif // CEF_INCLUDE_CAPI_CEF_BASE_CAPI_H_ 86 | -------------------------------------------------------------------------------- /cef/linux/include/capi/cef_browser_process_handler_capi.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2014 Marshall A. Greenblatt. All rights reserved. 2 | // 3 | // Redistribution and use in source and binary forms, with or without 4 | // modification, are permitted provided that the following conditions are 5 | // met: 6 | // 7 | // * Redistributions of source code must retain the above copyright 8 | // notice, this list of conditions and the following disclaimer. 9 | // * Redistributions in binary form must reproduce the above 10 | // copyright notice, this list of conditions and the following disclaimer 11 | // in the documentation and/or other materials provided with the 12 | // distribution. 13 | // * Neither the name of Google Inc. nor the name Chromium Embedded 14 | // Framework nor the names of its contributors may be used to endorse 15 | // or promote products derived from this software without specific prior 16 | // written permission. 17 | // 18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 19 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 20 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 21 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 22 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 23 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 24 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | // 30 | // --------------------------------------------------------------------------- 31 | // 32 | // This file was generated by the CEF translator tool and should not edited 33 | // by hand. See the translator.README.txt file in the tools directory for 34 | // more information. 35 | // 36 | 37 | #ifndef CEF_INCLUDE_CAPI_CEF_BROWSER_PROCESS_HANDLER_CAPI_H_ 38 | #define CEF_INCLUDE_CAPI_CEF_BROWSER_PROCESS_HANDLER_CAPI_H_ 39 | #pragma once 40 | 41 | #include "include/capi/cef_base_capi.h" 42 | #include "include/capi/cef_command_line_capi.h" 43 | #include "include/capi/cef_values_capi.h" 44 | 45 | #ifdef __cplusplus 46 | extern "C" { 47 | #endif 48 | 49 | 50 | /// 51 | // Structure used to implement browser process callbacks. The functions of this 52 | // structure will be called on the browser process main thread unless otherwise 53 | // indicated. 54 | /// 55 | typedef struct _cef_browser_process_handler_t { 56 | /// 57 | // Base structure. 58 | /// 59 | cef_base_t base; 60 | 61 | /// 62 | // Called on the browser process UI thread immediately after the CEF context 63 | // has been initialized. 64 | /// 65 | void (CEF_CALLBACK *on_context_initialized)( 66 | struct _cef_browser_process_handler_t* self); 67 | 68 | /// 69 | // Called before a child process is launched. Will be called on the browser 70 | // process UI thread when launching a render process and on the browser 71 | // process IO thread when launching a GPU or plugin process. Provides an 72 | // opportunity to modify the child process command line. Do not keep a 73 | // reference to |command_line| outside of this function. 74 | /// 75 | void (CEF_CALLBACK *on_before_child_process_launch)( 76 | struct _cef_browser_process_handler_t* self, 77 | struct _cef_command_line_t* command_line); 78 | 79 | /// 80 | // Called on the browser process IO thread after the main thread has been 81 | // created for a new render process. Provides an opportunity to specify extra 82 | // information that will be passed to 83 | // cef_render_process_handler_t::on_render_thread_created() in the render 84 | // process. Do not keep a reference to |extra_info| outside of this function. 85 | /// 86 | void (CEF_CALLBACK *on_render_process_thread_created)( 87 | struct _cef_browser_process_handler_t* self, 88 | struct _cef_list_value_t* extra_info); 89 | } cef_browser_process_handler_t; 90 | 91 | 92 | #ifdef __cplusplus 93 | } 94 | #endif 95 | 96 | #endif // CEF_INCLUDE_CAPI_CEF_BROWSER_PROCESS_HANDLER_CAPI_H_ 97 | -------------------------------------------------------------------------------- /cef/linux/include/capi/cef_callback_capi.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2014 Marshall A. Greenblatt. All rights reserved. 2 | // 3 | // Redistribution and use in source and binary forms, with or without 4 | // modification, are permitted provided that the following conditions are 5 | // met: 6 | // 7 | // * Redistributions of source code must retain the above copyright 8 | // notice, this list of conditions and the following disclaimer. 9 | // * Redistributions in binary form must reproduce the above 10 | // copyright notice, this list of conditions and the following disclaimer 11 | // in the documentation and/or other materials provided with the 12 | // distribution. 13 | // * Neither the name of Google Inc. nor the name Chromium Embedded 14 | // Framework nor the names of its contributors may be used to endorse 15 | // or promote products derived from this software without specific prior 16 | // written permission. 17 | // 18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 19 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 20 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 21 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 22 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 23 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 24 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | // 30 | // --------------------------------------------------------------------------- 31 | // 32 | // This file was generated by the CEF translator tool and should not edited 33 | // by hand. See the translator.README.txt file in the tools directory for 34 | // more information. 35 | // 36 | 37 | #ifndef CEF_INCLUDE_CAPI_CEF_CALLBACK_CAPI_H_ 38 | #define CEF_INCLUDE_CAPI_CEF_CALLBACK_CAPI_H_ 39 | #pragma once 40 | 41 | #include "include/capi/cef_base_capi.h" 42 | 43 | #ifdef __cplusplus 44 | extern "C" { 45 | #endif 46 | 47 | 48 | /// 49 | // Generic callback structure used for asynchronous continuation. 50 | /// 51 | typedef struct _cef_callback_t { 52 | /// 53 | // Base structure. 54 | /// 55 | cef_base_t base; 56 | 57 | /// 58 | // Continue processing. 59 | /// 60 | void (CEF_CALLBACK *cont)(struct _cef_callback_t* self); 61 | 62 | /// 63 | // Cancel processing. 64 | /// 65 | void (CEF_CALLBACK *cancel)(struct _cef_callback_t* self); 66 | } cef_callback_t; 67 | 68 | 69 | /// 70 | // Generic callback structure used for asynchronous completion. 71 | /// 72 | typedef struct _cef_completion_handler_t { 73 | /// 74 | // Base structure. 75 | /// 76 | cef_base_t base; 77 | 78 | /// 79 | // Method that will be called once the task is complete. 80 | /// 81 | void (CEF_CALLBACK *on_complete)(struct _cef_completion_handler_t* self); 82 | } cef_completion_handler_t; 83 | 84 | 85 | #ifdef __cplusplus 86 | } 87 | #endif 88 | 89 | #endif // CEF_INCLUDE_CAPI_CEF_CALLBACK_CAPI_H_ 90 | -------------------------------------------------------------------------------- /cef/linux/include/capi/cef_dialog_handler_capi.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2014 Marshall A. Greenblatt. All rights reserved. 2 | // 3 | // Redistribution and use in source and binary forms, with or without 4 | // modification, are permitted provided that the following conditions are 5 | // met: 6 | // 7 | // * Redistributions of source code must retain the above copyright 8 | // notice, this list of conditions and the following disclaimer. 9 | // * Redistributions in binary form must reproduce the above 10 | // copyright notice, this list of conditions and the following disclaimer 11 | // in the documentation and/or other materials provided with the 12 | // distribution. 13 | // * Neither the name of Google Inc. nor the name Chromium Embedded 14 | // Framework nor the names of its contributors may be used to endorse 15 | // or promote products derived from this software without specific prior 16 | // written permission. 17 | // 18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 19 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 20 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 21 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 22 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 23 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 24 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | // 30 | // --------------------------------------------------------------------------- 31 | // 32 | // This file was generated by the CEF translator tool and should not edited 33 | // by hand. See the translator.README.txt file in the tools directory for 34 | // more information. 35 | // 36 | 37 | #ifndef CEF_INCLUDE_CAPI_CEF_DIALOG_HANDLER_CAPI_H_ 38 | #define CEF_INCLUDE_CAPI_CEF_DIALOG_HANDLER_CAPI_H_ 39 | #pragma once 40 | 41 | #include "include/capi/cef_base_capi.h" 42 | #include "include/capi/cef_browser_capi.h" 43 | 44 | #ifdef __cplusplus 45 | extern "C" { 46 | #endif 47 | 48 | 49 | /// 50 | // Callback structure for asynchronous continuation of file dialog requests. 51 | /// 52 | typedef struct _cef_file_dialog_callback_t { 53 | /// 54 | // Base structure. 55 | /// 56 | cef_base_t base; 57 | 58 | /// 59 | // Continue the file selection with the specified |file_paths|. This may be a 60 | // single value or a list of values depending on the dialog mode. An NULL 61 | // value is treated the same as calling cancel(). 62 | /// 63 | void (CEF_CALLBACK *cont)(struct _cef_file_dialog_callback_t* self, 64 | cef_string_list_t file_paths); 65 | 66 | /// 67 | // Cancel the file selection. 68 | /// 69 | void (CEF_CALLBACK *cancel)(struct _cef_file_dialog_callback_t* self); 70 | } cef_file_dialog_callback_t; 71 | 72 | 73 | /// 74 | // Implement this structure to handle dialog events. The functions of this 75 | // structure will be called on the browser process UI thread. 76 | /// 77 | typedef struct _cef_dialog_handler_t { 78 | /// 79 | // Base structure. 80 | /// 81 | cef_base_t base; 82 | 83 | /// 84 | // Called to run a file chooser dialog. |mode| represents the type of dialog 85 | // to display. |title| to the title to be used for the dialog and may be NULL 86 | // to show the default title ("Open" or "Save" depending on the mode). 87 | // |default_file_name| is the default file name to select in the dialog. 88 | // |accept_types| is a list of valid lower-cased MIME types or file extensions 89 | // specified in an input element and is used to restrict selectable files to 90 | // such types. To display a custom dialog return true (1) and execute 91 | // |callback| either inline or at a later time. To display the default dialog 92 | // return false (0). 93 | /// 94 | int (CEF_CALLBACK *on_file_dialog)(struct _cef_dialog_handler_t* self, 95 | struct _cef_browser_t* browser, cef_file_dialog_mode_t mode, 96 | const cef_string_t* title, const cef_string_t* default_file_name, 97 | cef_string_list_t accept_types, 98 | struct _cef_file_dialog_callback_t* callback); 99 | } cef_dialog_handler_t; 100 | 101 | 102 | #ifdef __cplusplus 103 | } 104 | #endif 105 | 106 | #endif // CEF_INCLUDE_CAPI_CEF_DIALOG_HANDLER_CAPI_H_ 107 | -------------------------------------------------------------------------------- /cef/linux/include/capi/cef_drag_handler_capi.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2014 Marshall A. Greenblatt. All rights reserved. 2 | // 3 | // Redistribution and use in source and binary forms, with or without 4 | // modification, are permitted provided that the following conditions are 5 | // met: 6 | // 7 | // * Redistributions of source code must retain the above copyright 8 | // notice, this list of conditions and the following disclaimer. 9 | // * Redistributions in binary form must reproduce the above 10 | // copyright notice, this list of conditions and the following disclaimer 11 | // in the documentation and/or other materials provided with the 12 | // distribution. 13 | // * Neither the name of Google Inc. nor the name Chromium Embedded 14 | // Framework nor the names of its contributors may be used to endorse 15 | // or promote products derived from this software without specific prior 16 | // written permission. 17 | // 18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 19 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 20 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 21 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 22 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 23 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 24 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | // 30 | // --------------------------------------------------------------------------- 31 | // 32 | // This file was generated by the CEF translator tool and should not edited 33 | // by hand. See the translator.README.txt file in the tools directory for 34 | // more information. 35 | // 36 | 37 | #ifndef CEF_INCLUDE_CAPI_CEF_DRAG_HANDLER_CAPI_H_ 38 | #define CEF_INCLUDE_CAPI_CEF_DRAG_HANDLER_CAPI_H_ 39 | #pragma once 40 | 41 | #include "include/capi/cef_base_capi.h" 42 | #include "include/capi/cef_browser_capi.h" 43 | #include "include/capi/cef_drag_data_capi.h" 44 | 45 | #ifdef __cplusplus 46 | extern "C" { 47 | #endif 48 | 49 | 50 | /// 51 | // Implement this structure to handle events related to dragging. The functions 52 | // of this structure will be called on the UI thread. 53 | /// 54 | typedef struct _cef_drag_handler_t { 55 | /// 56 | // Base structure. 57 | /// 58 | cef_base_t base; 59 | 60 | /// 61 | // Called when an external drag event enters the browser window. |dragData| 62 | // contains the drag event data and |mask| represents the type of drag 63 | // operation. Return false (0) for default drag handling behavior or true (1) 64 | // to cancel the drag event. 65 | /// 66 | int (CEF_CALLBACK *on_drag_enter)(struct _cef_drag_handler_t* self, 67 | struct _cef_browser_t* browser, struct _cef_drag_data_t* dragData, 68 | cef_drag_operations_mask_t mask); 69 | } cef_drag_handler_t; 70 | 71 | 72 | #ifdef __cplusplus 73 | } 74 | #endif 75 | 76 | #endif // CEF_INCLUDE_CAPI_CEF_DRAG_HANDLER_CAPI_H_ 77 | -------------------------------------------------------------------------------- /cef/linux/include/capi/cef_focus_handler_capi.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2014 Marshall A. Greenblatt. All rights reserved. 2 | // 3 | // Redistribution and use in source and binary forms, with or without 4 | // modification, are permitted provided that the following conditions are 5 | // met: 6 | // 7 | // * Redistributions of source code must retain the above copyright 8 | // notice, this list of conditions and the following disclaimer. 9 | // * Redistributions in binary form must reproduce the above 10 | // copyright notice, this list of conditions and the following disclaimer 11 | // in the documentation and/or other materials provided with the 12 | // distribution. 13 | // * Neither the name of Google Inc. nor the name Chromium Embedded 14 | // Framework nor the names of its contributors may be used to endorse 15 | // or promote products derived from this software without specific prior 16 | // written permission. 17 | // 18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 19 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 20 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 21 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 22 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 23 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 24 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | // 30 | // --------------------------------------------------------------------------- 31 | // 32 | // This file was generated by the CEF translator tool and should not edited 33 | // by hand. See the translator.README.txt file in the tools directory for 34 | // more information. 35 | // 36 | 37 | #ifndef CEF_INCLUDE_CAPI_CEF_FOCUS_HANDLER_CAPI_H_ 38 | #define CEF_INCLUDE_CAPI_CEF_FOCUS_HANDLER_CAPI_H_ 39 | #pragma once 40 | 41 | #include "include/capi/cef_base_capi.h" 42 | #include "include/capi/cef_browser_capi.h" 43 | #include "include/capi/cef_dom_capi.h" 44 | #include "include/capi/cef_frame_capi.h" 45 | 46 | #ifdef __cplusplus 47 | extern "C" { 48 | #endif 49 | 50 | 51 | /// 52 | // Implement this structure to handle events related to focus. The functions of 53 | // this structure will be called on the UI thread. 54 | /// 55 | typedef struct _cef_focus_handler_t { 56 | /// 57 | // Base structure. 58 | /// 59 | cef_base_t base; 60 | 61 | /// 62 | // Called when the browser component is about to loose focus. For instance, if 63 | // focus was on the last HTML element and the user pressed the TAB key. |next| 64 | // will be true (1) if the browser is giving focus to the next component and 65 | // false (0) if the browser is giving focus to the previous component. 66 | /// 67 | void (CEF_CALLBACK *on_take_focus)(struct _cef_focus_handler_t* self, 68 | struct _cef_browser_t* browser, int next); 69 | 70 | /// 71 | // Called when the browser component is requesting focus. |source| indicates 72 | // where the focus request is originating from. Return false (0) to allow the 73 | // focus to be set or true (1) to cancel setting the focus. 74 | /// 75 | int (CEF_CALLBACK *on_set_focus)(struct _cef_focus_handler_t* self, 76 | struct _cef_browser_t* browser, cef_focus_source_t source); 77 | 78 | /// 79 | // Called when the browser component has received focus. 80 | /// 81 | void (CEF_CALLBACK *on_got_focus)(struct _cef_focus_handler_t* self, 82 | struct _cef_browser_t* browser); 83 | } cef_focus_handler_t; 84 | 85 | 86 | #ifdef __cplusplus 87 | } 88 | #endif 89 | 90 | #endif // CEF_INCLUDE_CAPI_CEF_FOCUS_HANDLER_CAPI_H_ 91 | -------------------------------------------------------------------------------- /cef/linux/include/capi/cef_geolocation_capi.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2014 Marshall A. Greenblatt. All rights reserved. 2 | // 3 | // Redistribution and use in source and binary forms, with or without 4 | // modification, are permitted provided that the following conditions are 5 | // met: 6 | // 7 | // * Redistributions of source code must retain the above copyright 8 | // notice, this list of conditions and the following disclaimer. 9 | // * Redistributions in binary form must reproduce the above 10 | // copyright notice, this list of conditions and the following disclaimer 11 | // in the documentation and/or other materials provided with the 12 | // distribution. 13 | // * Neither the name of Google Inc. nor the name Chromium Embedded 14 | // Framework nor the names of its contributors may be used to endorse 15 | // or promote products derived from this software without specific prior 16 | // written permission. 17 | // 18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 19 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 20 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 21 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 22 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 23 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 24 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | // 30 | // --------------------------------------------------------------------------- 31 | // 32 | // This file was generated by the CEF translator tool and should not edited 33 | // by hand. See the translator.README.txt file in the tools directory for 34 | // more information. 35 | // 36 | 37 | #ifndef CEF_INCLUDE_CAPI_CEF_GEOLOCATION_CAPI_H_ 38 | #define CEF_INCLUDE_CAPI_CEF_GEOLOCATION_CAPI_H_ 39 | #pragma once 40 | 41 | #include "include/capi/cef_base_capi.h" 42 | 43 | #ifdef __cplusplus 44 | extern "C" { 45 | #endif 46 | 47 | 48 | /// 49 | // Implement this structure to receive geolocation updates. The functions of 50 | // this structure will be called on the browser process UI thread. 51 | /// 52 | typedef struct _cef_get_geolocation_callback_t { 53 | /// 54 | // Base structure. 55 | /// 56 | cef_base_t base; 57 | 58 | /// 59 | // Called with the 'best available' location information or, if the location 60 | // update failed, with error information. 61 | /// 62 | void (CEF_CALLBACK *on_location_update)( 63 | struct _cef_get_geolocation_callback_t* self, 64 | const struct _cef_geoposition_t* position); 65 | } cef_get_geolocation_callback_t; 66 | 67 | 68 | /// 69 | // Request a one-time geolocation update. This function bypasses any user 70 | // permission checks so should only be used by code that is allowed to access 71 | // location information. 72 | /// 73 | CEF_EXPORT int cef_get_geolocation(cef_get_geolocation_callback_t* callback); 74 | 75 | #ifdef __cplusplus 76 | } 77 | #endif 78 | 79 | #endif // CEF_INCLUDE_CAPI_CEF_GEOLOCATION_CAPI_H_ 80 | -------------------------------------------------------------------------------- /cef/linux/include/capi/cef_geolocation_handler_capi.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2014 Marshall A. Greenblatt. All rights reserved. 2 | // 3 | // Redistribution and use in source and binary forms, with or without 4 | // modification, are permitted provided that the following conditions are 5 | // met: 6 | // 7 | // * Redistributions of source code must retain the above copyright 8 | // notice, this list of conditions and the following disclaimer. 9 | // * Redistributions in binary form must reproduce the above 10 | // copyright notice, this list of conditions and the following disclaimer 11 | // in the documentation and/or other materials provided with the 12 | // distribution. 13 | // * Neither the name of Google Inc. nor the name Chromium Embedded 14 | // Framework nor the names of its contributors may be used to endorse 15 | // or promote products derived from this software without specific prior 16 | // written permission. 17 | // 18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 19 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 20 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 21 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 22 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 23 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 24 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | // 30 | // --------------------------------------------------------------------------- 31 | // 32 | // This file was generated by the CEF translator tool and should not edited 33 | // by hand. See the translator.README.txt file in the tools directory for 34 | // more information. 35 | // 36 | 37 | #ifndef CEF_INCLUDE_CAPI_CEF_GEOLOCATION_HANDLER_CAPI_H_ 38 | #define CEF_INCLUDE_CAPI_CEF_GEOLOCATION_HANDLER_CAPI_H_ 39 | #pragma once 40 | 41 | #include "include/capi/cef_base_capi.h" 42 | #include "include/capi/cef_browser_capi.h" 43 | 44 | #ifdef __cplusplus 45 | extern "C" { 46 | #endif 47 | 48 | 49 | /// 50 | // Callback structure used for asynchronous continuation of geolocation 51 | // permission requests. 52 | /// 53 | typedef struct _cef_geolocation_callback_t { 54 | /// 55 | // Base structure. 56 | /// 57 | cef_base_t base; 58 | 59 | /// 60 | // Call to allow or deny geolocation access. 61 | /// 62 | void (CEF_CALLBACK *cont)(struct _cef_geolocation_callback_t* self, 63 | int allow); 64 | } cef_geolocation_callback_t; 65 | 66 | 67 | /// 68 | // Implement this structure to handle events related to geolocation permission 69 | // requests. The functions of this structure will be called on the browser 70 | // process IO thread. 71 | /// 72 | typedef struct _cef_geolocation_handler_t { 73 | /// 74 | // Base structure. 75 | /// 76 | cef_base_t base; 77 | 78 | /// 79 | // Called when a page requests permission to access geolocation information. 80 | // |requesting_url| is the URL requesting permission and |request_id| is the 81 | // unique ID for the permission request. Call 82 | // cef_geolocation_callback_t::Continue to allow or deny the permission 83 | // request. 84 | /// 85 | void (CEF_CALLBACK *on_request_geolocation_permission)( 86 | struct _cef_geolocation_handler_t* self, struct _cef_browser_t* browser, 87 | const cef_string_t* requesting_url, int request_id, 88 | struct _cef_geolocation_callback_t* callback); 89 | 90 | /// 91 | // Called when a geolocation access request is canceled. |requesting_url| is 92 | // the URL that originally requested permission and |request_id| is the unique 93 | // ID for the permission request. 94 | /// 95 | void (CEF_CALLBACK *on_cancel_geolocation_permission)( 96 | struct _cef_geolocation_handler_t* self, struct _cef_browser_t* browser, 97 | const cef_string_t* requesting_url, int request_id); 98 | } cef_geolocation_handler_t; 99 | 100 | 101 | #ifdef __cplusplus 102 | } 103 | #endif 104 | 105 | #endif // CEF_INCLUDE_CAPI_CEF_GEOLOCATION_HANDLER_CAPI_H_ 106 | -------------------------------------------------------------------------------- /cef/linux/include/capi/cef_keyboard_handler_capi.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2014 Marshall A. Greenblatt. All rights reserved. 2 | // 3 | // Redistribution and use in source and binary forms, with or without 4 | // modification, are permitted provided that the following conditions are 5 | // met: 6 | // 7 | // * Redistributions of source code must retain the above copyright 8 | // notice, this list of conditions and the following disclaimer. 9 | // * Redistributions in binary form must reproduce the above 10 | // copyright notice, this list of conditions and the following disclaimer 11 | // in the documentation and/or other materials provided with the 12 | // distribution. 13 | // * Neither the name of Google Inc. nor the name Chromium Embedded 14 | // Framework nor the names of its contributors may be used to endorse 15 | // or promote products derived from this software without specific prior 16 | // written permission. 17 | // 18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 19 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 20 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 21 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 22 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 23 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 24 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | // 30 | // --------------------------------------------------------------------------- 31 | // 32 | // This file was generated by the CEF translator tool and should not edited 33 | // by hand. See the translator.README.txt file in the tools directory for 34 | // more information. 35 | // 36 | 37 | #ifndef CEF_INCLUDE_CAPI_CEF_KEYBOARD_HANDLER_CAPI_H_ 38 | #define CEF_INCLUDE_CAPI_CEF_KEYBOARD_HANDLER_CAPI_H_ 39 | #pragma once 40 | 41 | #include "include/capi/cef_base_capi.h" 42 | #include "include/capi/cef_browser_capi.h" 43 | 44 | #ifdef __cplusplus 45 | extern "C" { 46 | #endif 47 | 48 | 49 | /// 50 | // Implement this structure to handle events related to keyboard input. The 51 | // functions of this structure will be called on the UI thread. 52 | /// 53 | typedef struct _cef_keyboard_handler_t { 54 | /// 55 | // Base structure. 56 | /// 57 | cef_base_t base; 58 | 59 | // Called before a keyboard event is sent to the renderer. |event| contains 60 | // information about the keyboard event. |os_event| is the operating system 61 | // event message, if any. Return true (1) if the event was handled or false 62 | // (0) otherwise. If the event will be handled in on_key_event() as a keyboard 63 | // shortcut set |is_keyboard_shortcut| to true (1) and return false (0). 64 | int (CEF_CALLBACK *on_pre_key_event)(struct _cef_keyboard_handler_t* self, 65 | struct _cef_browser_t* browser, const struct _cef_key_event_t* event, 66 | cef_event_handle_t os_event, int* is_keyboard_shortcut); 67 | 68 | /// 69 | // Called after the renderer and JavaScript in the page has had a chance to 70 | // handle the event. |event| contains information about the keyboard event. 71 | // |os_event| is the operating system event message, if any. Return true (1) 72 | // if the keyboard event was handled or false (0) otherwise. 73 | /// 74 | int (CEF_CALLBACK *on_key_event)(struct _cef_keyboard_handler_t* self, 75 | struct _cef_browser_t* browser, const struct _cef_key_event_t* event, 76 | cef_event_handle_t os_event); 77 | } cef_keyboard_handler_t; 78 | 79 | 80 | #ifdef __cplusplus 81 | } 82 | #endif 83 | 84 | #endif // CEF_INCLUDE_CAPI_CEF_KEYBOARD_HANDLER_CAPI_H_ 85 | -------------------------------------------------------------------------------- /cef/linux/include/capi/cef_path_util_capi.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2014 Marshall A. Greenblatt. All rights reserved. 2 | // 3 | // Redistribution and use in source and binary forms, with or without 4 | // modification, are permitted provided that the following conditions are 5 | // met: 6 | // 7 | // * Redistributions of source code must retain the above copyright 8 | // notice, this list of conditions and the following disclaimer. 9 | // * Redistributions in binary form must reproduce the above 10 | // copyright notice, this list of conditions and the following disclaimer 11 | // in the documentation and/or other materials provided with the 12 | // distribution. 13 | // * Neither the name of Google Inc. nor the name Chromium Embedded 14 | // Framework nor the names of its contributors may be used to endorse 15 | // or promote products derived from this software without specific prior 16 | // written permission. 17 | // 18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 19 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 20 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 21 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 22 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 23 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 24 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | // 30 | // --------------------------------------------------------------------------- 31 | // 32 | // This file was generated by the CEF translator tool and should not edited 33 | // by hand. See the translator.README.txt file in the tools directory for 34 | // more information. 35 | // 36 | 37 | #ifndef CEF_INCLUDE_CAPI_CEF_PATH_UTIL_CAPI_H_ 38 | #define CEF_INCLUDE_CAPI_CEF_PATH_UTIL_CAPI_H_ 39 | #pragma once 40 | 41 | #include "include/capi/cef_base_capi.h" 42 | 43 | #ifdef __cplusplus 44 | extern "C" { 45 | #endif 46 | 47 | 48 | /// 49 | // Retrieve the path associated with the specified |key|. Returns true (1) on 50 | // success. Can be called on any thread in the browser process. 51 | /// 52 | CEF_EXPORT int cef_get_path(cef_path_key_t key, cef_string_t* path); 53 | 54 | #ifdef __cplusplus 55 | } 56 | #endif 57 | 58 | #endif // CEF_INCLUDE_CAPI_CEF_PATH_UTIL_CAPI_H_ 59 | -------------------------------------------------------------------------------- /cef/linux/include/capi/cef_process_message_capi.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2014 Marshall A. Greenblatt. All rights reserved. 2 | // 3 | // Redistribution and use in source and binary forms, with or without 4 | // modification, are permitted provided that the following conditions are 5 | // met: 6 | // 7 | // * Redistributions of source code must retain the above copyright 8 | // notice, this list of conditions and the following disclaimer. 9 | // * Redistributions in binary form must reproduce the above 10 | // copyright notice, this list of conditions and the following disclaimer 11 | // in the documentation and/or other materials provided with the 12 | // distribution. 13 | // * Neither the name of Google Inc. nor the name Chromium Embedded 14 | // Framework nor the names of its contributors may be used to endorse 15 | // or promote products derived from this software without specific prior 16 | // written permission. 17 | // 18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 19 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 20 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 21 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 22 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 23 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 24 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | // 30 | // --------------------------------------------------------------------------- 31 | // 32 | // This file was generated by the CEF translator tool and should not edited 33 | // by hand. See the translator.README.txt file in the tools directory for 34 | // more information. 35 | // 36 | 37 | #ifndef CEF_INCLUDE_CAPI_CEF_PROCESS_MESSAGE_CAPI_H_ 38 | #define CEF_INCLUDE_CAPI_CEF_PROCESS_MESSAGE_CAPI_H_ 39 | #pragma once 40 | 41 | #include "include/capi/cef_base_capi.h" 42 | #include "include/capi/cef_values_capi.h" 43 | 44 | #ifdef __cplusplus 45 | extern "C" { 46 | #endif 47 | 48 | 49 | /// 50 | // Structure representing a message. Can be used on any process and thread. 51 | /// 52 | typedef struct _cef_process_message_t { 53 | /// 54 | // Base structure. 55 | /// 56 | cef_base_t base; 57 | 58 | /// 59 | // Returns true (1) if this object is valid. Do not call any other functions 60 | // if this function returns false (0). 61 | /// 62 | int (CEF_CALLBACK *is_valid)(struct _cef_process_message_t* self); 63 | 64 | /// 65 | // Returns true (1) if the values of this object are read-only. Some APIs may 66 | // expose read-only objects. 67 | /// 68 | int (CEF_CALLBACK *is_read_only)(struct _cef_process_message_t* self); 69 | 70 | /// 71 | // Returns a writable copy of this object. 72 | /// 73 | struct _cef_process_message_t* (CEF_CALLBACK *copy)( 74 | struct _cef_process_message_t* self); 75 | 76 | /// 77 | // Returns the message name. 78 | /// 79 | // The resulting string must be freed by calling cef_string_userfree_free(). 80 | cef_string_userfree_t (CEF_CALLBACK *get_name)( 81 | struct _cef_process_message_t* self); 82 | 83 | /// 84 | // Returns the list of arguments. 85 | /// 86 | struct _cef_list_value_t* (CEF_CALLBACK *get_argument_list)( 87 | struct _cef_process_message_t* self); 88 | } cef_process_message_t; 89 | 90 | 91 | /// 92 | // Create a new cef_process_message_t object with the specified name. 93 | /// 94 | CEF_EXPORT cef_process_message_t* cef_process_message_create( 95 | const cef_string_t* name); 96 | 97 | 98 | #ifdef __cplusplus 99 | } 100 | #endif 101 | 102 | #endif // CEF_INCLUDE_CAPI_CEF_PROCESS_MESSAGE_CAPI_H_ 103 | -------------------------------------------------------------------------------- /cef/linux/include/capi/cef_process_util_capi.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2014 Marshall A. Greenblatt. All rights reserved. 2 | // 3 | // Redistribution and use in source and binary forms, with or without 4 | // modification, are permitted provided that the following conditions are 5 | // met: 6 | // 7 | // * Redistributions of source code must retain the above copyright 8 | // notice, this list of conditions and the following disclaimer. 9 | // * Redistributions in binary form must reproduce the above 10 | // copyright notice, this list of conditions and the following disclaimer 11 | // in the documentation and/or other materials provided with the 12 | // distribution. 13 | // * Neither the name of Google Inc. nor the name Chromium Embedded 14 | // Framework nor the names of its contributors may be used to endorse 15 | // or promote products derived from this software without specific prior 16 | // written permission. 17 | // 18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 19 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 20 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 21 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 22 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 23 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 24 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | // 30 | // --------------------------------------------------------------------------- 31 | // 32 | // This file was generated by the CEF translator tool and should not edited 33 | // by hand. See the translator.README.txt file in the tools directory for 34 | // more information. 35 | // 36 | 37 | #ifndef CEF_INCLUDE_CAPI_CEF_PROCESS_UTIL_CAPI_H_ 38 | #define CEF_INCLUDE_CAPI_CEF_PROCESS_UTIL_CAPI_H_ 39 | #pragma once 40 | 41 | #include "include/capi/cef_base_capi.h" 42 | 43 | #ifdef __cplusplus 44 | extern "C" { 45 | #endif 46 | 47 | 48 | /// 49 | // Launches the process specified via |command_line|. Returns true (1) upon 50 | // success. Must be called on the browser process TID_PROCESS_LAUNCHER thread. 51 | // 52 | // Unix-specific notes: - All file descriptors open in the parent process will 53 | // be closed in the 54 | // child process except for stdin, stdout, and stderr. 55 | // - If the first argument on the command line does not contain a slash, 56 | // PATH will be searched. (See man execvp.) 57 | /// 58 | CEF_EXPORT int cef_launch_process(struct _cef_command_line_t* command_line); 59 | 60 | #ifdef __cplusplus 61 | } 62 | #endif 63 | 64 | #endif // CEF_INCLUDE_CAPI_CEF_PROCESS_UTIL_CAPI_H_ 65 | -------------------------------------------------------------------------------- /cef/linux/include/capi/cef_request_context_capi.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2014 Marshall A. Greenblatt. All rights reserved. 2 | // 3 | // Redistribution and use in source and binary forms, with or without 4 | // modification, are permitted provided that the following conditions are 5 | // met: 6 | // 7 | // * Redistributions of source code must retain the above copyright 8 | // notice, this list of conditions and the following disclaimer. 9 | // * Redistributions in binary form must reproduce the above 10 | // copyright notice, this list of conditions and the following disclaimer 11 | // in the documentation and/or other materials provided with the 12 | // distribution. 13 | // * Neither the name of Google Inc. nor the name Chromium Embedded 14 | // Framework nor the names of its contributors may be used to endorse 15 | // or promote products derived from this software without specific prior 16 | // written permission. 17 | // 18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 19 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 20 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 21 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 22 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 23 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 24 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | // 30 | // --------------------------------------------------------------------------- 31 | // 32 | // This file was generated by the CEF translator tool and should not edited 33 | // by hand. See the translator.README.txt file in the tools directory for 34 | // more information. 35 | // 36 | 37 | #ifndef CEF_INCLUDE_CAPI_CEF_REQUEST_CONTEXT_CAPI_H_ 38 | #define CEF_INCLUDE_CAPI_CEF_REQUEST_CONTEXT_CAPI_H_ 39 | #pragma once 40 | 41 | #include "include/capi/cef_request_context_handler_capi.h" 42 | 43 | #ifdef __cplusplus 44 | extern "C" { 45 | #endif 46 | 47 | 48 | /// 49 | // A request context provides request handling for a set of related browser 50 | // objects. A request context is specified when creating a new browser object 51 | // via the cef_browser_host_t static factory functions. Browser objects with 52 | // different request contexts will never be hosted in the same render process. 53 | // Browser objects with the same request context may or may not be hosted in the 54 | // same render process depending on the process model. Browser objects created 55 | // indirectly via the JavaScript window.open function or targeted links will 56 | // share the same render process and the same request context as the source 57 | // browser. When running in single-process mode there is only a single render 58 | // process (the main process) and so all browsers created in single-process mode 59 | // will share the same request context. This will be the first request context 60 | // passed into a cef_browser_host_t static factory function and all other 61 | // request context objects will be ignored. 62 | /// 63 | typedef struct _cef_request_context_t { 64 | /// 65 | // Base structure. 66 | /// 67 | cef_base_t base; 68 | 69 | /// 70 | // Returns true (1) if this object is pointing to the same context as |that| 71 | // object. 72 | /// 73 | int (CEF_CALLBACK *is_same)(struct _cef_request_context_t* self, 74 | struct _cef_request_context_t* other); 75 | 76 | /// 77 | // Returns true (1) if this object is the global context. 78 | /// 79 | int (CEF_CALLBACK *is_global)(struct _cef_request_context_t* self); 80 | 81 | /// 82 | // Returns the handler for this context if any. 83 | /// 84 | struct _cef_request_context_handler_t* (CEF_CALLBACK *get_handler)( 85 | struct _cef_request_context_t* self); 86 | } cef_request_context_t; 87 | 88 | 89 | /// 90 | // Returns the global context object. 91 | /// 92 | CEF_EXPORT cef_request_context_t* cef_request_context_get_global_context(); 93 | 94 | /// 95 | // Creates a new context object with the specified handler. 96 | /// 97 | CEF_EXPORT cef_request_context_t* cef_request_context_create_context( 98 | struct _cef_request_context_handler_t* handler); 99 | 100 | 101 | #ifdef __cplusplus 102 | } 103 | #endif 104 | 105 | #endif // CEF_INCLUDE_CAPI_CEF_REQUEST_CONTEXT_CAPI_H_ 106 | -------------------------------------------------------------------------------- /cef/linux/include/capi/cef_request_context_handler_capi.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2014 Marshall A. Greenblatt. All rights reserved. 2 | // 3 | // Redistribution and use in source and binary forms, with or without 4 | // modification, are permitted provided that the following conditions are 5 | // met: 6 | // 7 | // * Redistributions of source code must retain the above copyright 8 | // notice, this list of conditions and the following disclaimer. 9 | // * Redistributions in binary form must reproduce the above 10 | // copyright notice, this list of conditions and the following disclaimer 11 | // in the documentation and/or other materials provided with the 12 | // distribution. 13 | // * Neither the name of Google Inc. nor the name Chromium Embedded 14 | // Framework nor the names of its contributors may be used to endorse 15 | // or promote products derived from this software without specific prior 16 | // written permission. 17 | // 18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 19 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 20 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 21 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 22 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 23 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 24 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | // 30 | // --------------------------------------------------------------------------- 31 | // 32 | // This file was generated by the CEF translator tool and should not edited 33 | // by hand. See the translator.README.txt file in the tools directory for 34 | // more information. 35 | // 36 | 37 | #ifndef CEF_INCLUDE_CAPI_CEF_REQUEST_CONTEXT_HANDLER_CAPI_H_ 38 | #define CEF_INCLUDE_CAPI_CEF_REQUEST_CONTEXT_HANDLER_CAPI_H_ 39 | #pragma once 40 | 41 | #include "include/capi/cef_base_capi.h" 42 | #include "include/capi/cef_cookie_capi.h" 43 | 44 | #ifdef __cplusplus 45 | extern "C" { 46 | #endif 47 | 48 | 49 | /// 50 | // Implement this structure to provide handler implementations. 51 | /// 52 | typedef struct _cef_request_context_handler_t { 53 | /// 54 | // Base structure. 55 | /// 56 | cef_base_t base; 57 | 58 | /// 59 | // Called on the IO thread to retrieve the cookie manager. The global cookie 60 | // manager will be used if this function returns NULL. 61 | /// 62 | struct _cef_cookie_manager_t* (CEF_CALLBACK *get_cookie_manager)( 63 | struct _cef_request_context_handler_t* self); 64 | } cef_request_context_handler_t; 65 | 66 | 67 | #ifdef __cplusplus 68 | } 69 | #endif 70 | 71 | #endif // CEF_INCLUDE_CAPI_CEF_REQUEST_CONTEXT_HANDLER_CAPI_H_ 72 | -------------------------------------------------------------------------------- /cef/linux/include/capi/cef_resource_bundle_handler_capi.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2014 Marshall A. Greenblatt. All rights reserved. 2 | // 3 | // Redistribution and use in source and binary forms, with or without 4 | // modification, are permitted provided that the following conditions are 5 | // met: 6 | // 7 | // * Redistributions of source code must retain the above copyright 8 | // notice, this list of conditions and the following disclaimer. 9 | // * Redistributions in binary form must reproduce the above 10 | // copyright notice, this list of conditions and the following disclaimer 11 | // in the documentation and/or other materials provided with the 12 | // distribution. 13 | // * Neither the name of Google Inc. nor the name Chromium Embedded 14 | // Framework nor the names of its contributors may be used to endorse 15 | // or promote products derived from this software without specific prior 16 | // written permission. 17 | // 18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 19 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 20 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 21 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 22 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 23 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 24 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | // 30 | // --------------------------------------------------------------------------- 31 | // 32 | // This file was generated by the CEF translator tool and should not edited 33 | // by hand. See the translator.README.txt file in the tools directory for 34 | // more information. 35 | // 36 | 37 | #ifndef CEF_INCLUDE_CAPI_CEF_RESOURCE_BUNDLE_HANDLER_CAPI_H_ 38 | #define CEF_INCLUDE_CAPI_CEF_RESOURCE_BUNDLE_HANDLER_CAPI_H_ 39 | #pragma once 40 | 41 | #include "include/capi/cef_base_capi.h" 42 | 43 | #ifdef __cplusplus 44 | extern "C" { 45 | #endif 46 | 47 | 48 | /// 49 | // Structure used to implement a custom resource bundle structure. The functions 50 | // of this structure may be called on multiple threads. 51 | /// 52 | typedef struct _cef_resource_bundle_handler_t { 53 | /// 54 | // Base structure. 55 | /// 56 | cef_base_t base; 57 | 58 | /// 59 | // Called to retrieve a localized translation for the string specified by 60 | // |message_id|. To provide the translation set |string| to the translation 61 | // string and return true (1). To use the default translation return false 62 | // (0). Supported message IDs are listed in cef_pack_strings.h. 63 | /// 64 | int (CEF_CALLBACK *get_localized_string)( 65 | struct _cef_resource_bundle_handler_t* self, int message_id, 66 | cef_string_t* string); 67 | 68 | /// 69 | // Called to retrieve data for the resource specified by |resource_id|. To 70 | // provide the resource data set |data| and |data_size| to the data pointer 71 | // and size respectively and return true (1). To use the default resource data 72 | // return false (0). The resource data will not be copied and must remain 73 | // resident in memory. Supported resource IDs are listed in 74 | // cef_pack_resources.h. 75 | /// 76 | int (CEF_CALLBACK *get_data_resource)( 77 | struct _cef_resource_bundle_handler_t* self, int resource_id, void** data, 78 | size_t* data_size); 79 | } cef_resource_bundle_handler_t; 80 | 81 | 82 | #ifdef __cplusplus 83 | } 84 | #endif 85 | 86 | #endif // CEF_INCLUDE_CAPI_CEF_RESOURCE_BUNDLE_HANDLER_CAPI_H_ 87 | -------------------------------------------------------------------------------- /cef/linux/include/capi/cef_string_visitor_capi.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2014 Marshall A. Greenblatt. All rights reserved. 2 | // 3 | // Redistribution and use in source and binary forms, with or without 4 | // modification, are permitted provided that the following conditions are 5 | // met: 6 | // 7 | // * Redistributions of source code must retain the above copyright 8 | // notice, this list of conditions and the following disclaimer. 9 | // * Redistributions in binary form must reproduce the above 10 | // copyright notice, this list of conditions and the following disclaimer 11 | // in the documentation and/or other materials provided with the 12 | // distribution. 13 | // * Neither the name of Google Inc. nor the name Chromium Embedded 14 | // Framework nor the names of its contributors may be used to endorse 15 | // or promote products derived from this software without specific prior 16 | // written permission. 17 | // 18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 19 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 20 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 21 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 22 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 23 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 24 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | // 30 | // --------------------------------------------------------------------------- 31 | // 32 | // This file was generated by the CEF translator tool and should not edited 33 | // by hand. See the translator.README.txt file in the tools directory for 34 | // more information. 35 | // 36 | 37 | #ifndef CEF_INCLUDE_CAPI_CEF_STRING_VISITOR_CAPI_H_ 38 | #define CEF_INCLUDE_CAPI_CEF_STRING_VISITOR_CAPI_H_ 39 | #pragma once 40 | 41 | #include "include/capi/cef_base_capi.h" 42 | 43 | #ifdef __cplusplus 44 | extern "C" { 45 | #endif 46 | 47 | 48 | /// 49 | // Implement this structure to receive string values asynchronously. 50 | /// 51 | typedef struct _cef_string_visitor_t { 52 | /// 53 | // Base structure. 54 | /// 55 | cef_base_t base; 56 | 57 | /// 58 | // Method that will be executed. 59 | /// 60 | void (CEF_CALLBACK *visit)(struct _cef_string_visitor_t* self, 61 | const cef_string_t* string); 62 | } cef_string_visitor_t; 63 | 64 | 65 | #ifdef __cplusplus 66 | } 67 | #endif 68 | 69 | #endif // CEF_INCLUDE_CAPI_CEF_STRING_VISITOR_CAPI_H_ 70 | -------------------------------------------------------------------------------- /cef/linux/include/capi/cef_url_capi.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2014 Marshall A. Greenblatt. All rights reserved. 2 | // 3 | // Redistribution and use in source and binary forms, with or without 4 | // modification, are permitted provided that the following conditions are 5 | // met: 6 | // 7 | // * Redistributions of source code must retain the above copyright 8 | // notice, this list of conditions and the following disclaimer. 9 | // * Redistributions in binary form must reproduce the above 10 | // copyright notice, this list of conditions and the following disclaimer 11 | // in the documentation and/or other materials provided with the 12 | // distribution. 13 | // * Neither the name of Google Inc. nor the name Chromium Embedded 14 | // Framework nor the names of its contributors may be used to endorse 15 | // or promote products derived from this software without specific prior 16 | // written permission. 17 | // 18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 19 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 20 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 21 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 22 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 23 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 24 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | // 30 | // --------------------------------------------------------------------------- 31 | // 32 | // This file was generated by the CEF translator tool and should not edited 33 | // by hand. See the translator.README.txt file in the tools directory for 34 | // more information. 35 | // 36 | 37 | #ifndef CEF_INCLUDE_CAPI_CEF_URL_CAPI_H_ 38 | #define CEF_INCLUDE_CAPI_CEF_URL_CAPI_H_ 39 | #pragma once 40 | 41 | #include "include/capi/cef_base_capi.h" 42 | 43 | #ifdef __cplusplus 44 | extern "C" { 45 | #endif 46 | 47 | 48 | /// 49 | // Parse the specified |url| into its component parts. Returns false (0) if the 50 | // URL is NULL or invalid. 51 | /// 52 | CEF_EXPORT int cef_parse_url(const cef_string_t* url, 53 | struct _cef_urlparts_t* parts); 54 | 55 | /// 56 | // Creates a URL from the specified |parts|, which must contain a non-NULL spec 57 | // or a non-NULL host and path (at a minimum), but not both. Returns false (0) 58 | // if |parts| isn't initialized as described. 59 | /// 60 | CEF_EXPORT int cef_create_url(const struct _cef_urlparts_t* parts, 61 | cef_string_t* url); 62 | 63 | /// 64 | // Returns the mime type for the specified file extension or an NULL string if 65 | // unknown. 66 | /// 67 | // The resulting string must be freed by calling cef_string_userfree_free(). 68 | CEF_EXPORT cef_string_userfree_t cef_get_mime_type( 69 | const cef_string_t* extension); 70 | 71 | #ifdef __cplusplus 72 | } 73 | #endif 74 | 75 | #endif // CEF_INCLUDE_CAPI_CEF_URL_CAPI_H_ 76 | -------------------------------------------------------------------------------- /cef/linux/include/cef_auth_callback.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 Marshall A. Greenblatt. All rights reserved. 2 | // 3 | // Redistribution and use in source and binary forms, with or without 4 | // modification, are permitted provided that the following conditions are 5 | // met: 6 | // 7 | // * Redistributions of source code must retain the above copyright 8 | // notice, this list of conditions and the following disclaimer. 9 | // * Redistributions in binary form must reproduce the above 10 | // copyright notice, this list of conditions and the following disclaimer 11 | // in the documentation and/or other materials provided with the 12 | // distribution. 13 | // * Neither the name of Google Inc. nor the name Chromium Embedded 14 | // Framework nor the names of its contributors may be used to endorse 15 | // or promote products derived from this software without specific prior 16 | // written permission. 17 | // 18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 19 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 20 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 21 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 22 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 23 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 24 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | // 30 | // --------------------------------------------------------------------------- 31 | // 32 | // The contents of this file must follow a specific format in order to 33 | // support the CEF translator tool. See the translator.README.txt file in the 34 | // tools directory for more information. 35 | // 36 | 37 | #ifndef CEF_INCLUDE_CEF_AUTH_CALLBACK_H_ 38 | #define CEF_INCLUDE_CEF_AUTH_CALLBACK_H_ 39 | #pragma once 40 | 41 | #include "include/cef_base.h" 42 | 43 | /// 44 | // Callback interface used for asynchronous continuation of authentication 45 | // requests. 46 | /// 47 | /*--cef(source=library)--*/ 48 | class CefAuthCallback : public virtual CefBase { 49 | public: 50 | /// 51 | // Continue the authentication request. 52 | /// 53 | /*--cef(capi_name=cont)--*/ 54 | virtual void Continue(const CefString& username, 55 | const CefString& password) =0; 56 | 57 | /// 58 | // Cancel the authentication request. 59 | /// 60 | /*--cef()--*/ 61 | virtual void Cancel() =0; 62 | }; 63 | 64 | #endif // CEF_INCLUDE_CEF_AUTH_CALLBACK_H_ 65 | -------------------------------------------------------------------------------- /cef/linux/include/cef_browser_process_handler.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012 Marshall A. Greenblatt. All rights reserved. 2 | // 3 | // Redistribution and use in source and binary forms, with or without 4 | // modification, are permitted provided that the following conditions are 5 | // met: 6 | // 7 | // * Redistributions of source code must retain the above copyright 8 | // notice, this list of conditions and the following disclaimer. 9 | // * Redistributions in binary form must reproduce the above 10 | // copyright notice, this list of conditions and the following disclaimer 11 | // in the documentation and/or other materials provided with the 12 | // distribution. 13 | // * Neither the name of Google Inc. nor the name Chromium Embedded 14 | // Framework nor the names of its contributors may be used to endorse 15 | // or promote products derived from this software without specific prior 16 | // written permission. 17 | // 18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 19 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 20 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 21 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 22 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 23 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 24 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | // 30 | // --------------------------------------------------------------------------- 31 | // 32 | // The contents of this file must follow a specific format in order to 33 | // support the CEF translator tool. See the translator.README.txt file in the 34 | // tools directory for more information. 35 | // 36 | 37 | #ifndef CEF_INCLUDE_CEF_BROWSER_PROCESS_HANDLER_H_ 38 | #define CEF_INCLUDE_CEF_BROWSER_PROCESS_HANDLER_H_ 39 | #pragma once 40 | 41 | #include "include/cef_base.h" 42 | #include "include/cef_command_line.h" 43 | #include "include/cef_values.h" 44 | 45 | /// 46 | // Class used to implement browser process callbacks. The methods of this class 47 | // will be called on the browser process main thread unless otherwise indicated. 48 | /// 49 | /*--cef(source=client)--*/ 50 | class CefBrowserProcessHandler : public virtual CefBase { 51 | public: 52 | /// 53 | // Called on the browser process UI thread immediately after the CEF context 54 | // has been initialized. 55 | /// 56 | /*--cef()--*/ 57 | virtual void OnContextInitialized() {} 58 | 59 | /// 60 | // Called before a child process is launched. Will be called on the browser 61 | // process UI thread when launching a render process and on the browser 62 | // process IO thread when launching a GPU or plugin process. Provides an 63 | // opportunity to modify the child process command line. Do not keep a 64 | // reference to |command_line| outside of this method. 65 | /// 66 | /*--cef()--*/ 67 | virtual void OnBeforeChildProcessLaunch( 68 | CefRefPtr command_line) {} 69 | 70 | /// 71 | // Called on the browser process IO thread after the main thread has been 72 | // created for a new render process. Provides an opportunity to specify extra 73 | // information that will be passed to 74 | // CefRenderProcessHandler::OnRenderThreadCreated() in the render process. Do 75 | // not keep a reference to |extra_info| outside of this method. 76 | /// 77 | /*--cef()--*/ 78 | virtual void OnRenderProcessThreadCreated( 79 | CefRefPtr extra_info) {} 80 | }; 81 | 82 | #endif // CEF_INCLUDE_CEF_BROWSER_PROCESS_HANDLER_H_ 83 | -------------------------------------------------------------------------------- /cef/linux/include/cef_callback.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012 Marshall A. Greenblatt. All rights reserved. 2 | // 3 | // Redistribution and use in source and binary forms, with or without 4 | // modification, are permitted provided that the following conditions are 5 | // met: 6 | // 7 | // * Redistributions of source code must retain the above copyright 8 | // notice, this list of conditions and the following disclaimer. 9 | // * Redistributions in binary form must reproduce the above 10 | // copyright notice, this list of conditions and the following disclaimer 11 | // in the documentation and/or other materials provided with the 12 | // distribution. 13 | // * Neither the name of Google Inc. nor the name Chromium Embedded 14 | // Framework nor the names of its contributors may be used to endorse 15 | // or promote products derived from this software without specific prior 16 | // written permission. 17 | // 18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 19 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 20 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 21 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 22 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 23 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 24 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | // 30 | // --------------------------------------------------------------------------- 31 | // 32 | // The contents of this file must follow a specific format in order to 33 | // support the CEF translator tool. See the translator.README.txt file in the 34 | // tools directory for more information. 35 | // 36 | 37 | #ifndef CEF_INCLUDE_CEF_CALLBACK_H_ 38 | #define CEF_INCLUDE_CEF_CALLBACK_H_ 39 | #pragma once 40 | 41 | #include "include/cef_base.h" 42 | 43 | /// 44 | // Generic callback interface used for asynchronous continuation. 45 | /// 46 | /*--cef(source=library)--*/ 47 | class CefCallback : public virtual CefBase { 48 | public: 49 | /// 50 | // Continue processing. 51 | /// 52 | /*--cef(capi_name=cont)--*/ 53 | virtual void Continue() =0; 54 | 55 | /// 56 | // Cancel processing. 57 | /// 58 | /*--cef()--*/ 59 | virtual void Cancel() =0; 60 | }; 61 | 62 | /// 63 | // Generic callback interface used for asynchronous completion. 64 | /// 65 | /*--cef(source=client)--*/ 66 | class CefCompletionHandler : public virtual CefBase { 67 | public: 68 | /// 69 | // Method that will be called once the task is complete. 70 | /// 71 | /*--cef()--*/ 72 | virtual void OnComplete() =0; 73 | }; 74 | 75 | #endif // CEF_INCLUDE_CEF_CALLBACK_H_ 76 | -------------------------------------------------------------------------------- /cef/linux/include/cef_dialog_handler.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012 Marshall A. Greenblatt. All rights reserved. 2 | // 3 | // Redistribution and use in source and binary forms, with or without 4 | // modification, are permitted provided that the following conditions are 5 | // met: 6 | // 7 | // * Redistributions of source code must retain the above copyright 8 | // notice, this list of conditions and the following disclaimer. 9 | // * Redistributions in binary form must reproduce the above 10 | // copyright notice, this list of conditions and the following disclaimer 11 | // in the documentation and/or other materials provided with the 12 | // distribution. 13 | // * Neither the name of Google Inc. nor the name Chromium Embedded 14 | // Framework nor the names of its contributors may be used to endorse 15 | // or promote products derived from this software without specific prior 16 | // written permission. 17 | // 18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 19 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 20 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 21 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 22 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 23 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 24 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | // 30 | // --------------------------------------------------------------------------- 31 | // 32 | // The contents of this file must follow a specific format in order to 33 | // support the CEF translator tool. See the translator.README.txt file in the 34 | // tools directory for more information. 35 | // 36 | 37 | #ifndef CEF_INCLUDE_CEF_DIALOG_HANDLER_H_ 38 | #define CEF_INCLUDE_CEF_DIALOG_HANDLER_H_ 39 | #pragma once 40 | 41 | #include "include/cef_base.h" 42 | #include "include/cef_browser.h" 43 | 44 | /// 45 | // Callback interface for asynchronous continuation of file dialog requests. 46 | /// 47 | /*--cef(source=library)--*/ 48 | class CefFileDialogCallback : public virtual CefBase { 49 | public: 50 | /// 51 | // Continue the file selection with the specified |file_paths|. This may be 52 | // a single value or a list of values depending on the dialog mode. An empty 53 | // value is treated the same as calling Cancel(). 54 | /// 55 | /*--cef(capi_name=cont)--*/ 56 | virtual void Continue(const std::vector& file_paths) =0; 57 | 58 | /// 59 | // Cancel the file selection. 60 | /// 61 | /*--cef()--*/ 62 | virtual void Cancel() =0; 63 | }; 64 | 65 | 66 | /// 67 | // Implement this interface to handle dialog events. The methods of this class 68 | // will be called on the browser process UI thread. 69 | /// 70 | /*--cef(source=client)--*/ 71 | class CefDialogHandler : public virtual CefBase { 72 | public: 73 | typedef cef_file_dialog_mode_t FileDialogMode; 74 | 75 | /// 76 | // Called to run a file chooser dialog. |mode| represents the type of dialog 77 | // to display. |title| to the title to be used for the dialog and may be empty 78 | // to show the default title ("Open" or "Save" depending on the mode). 79 | // |default_file_name| is the default file name to select in the dialog. 80 | // |accept_types| is a list of valid lower-cased MIME types or file extensions 81 | // specified in an input element and is used to restrict selectable files to 82 | // such types. To display a custom dialog return true and execute |callback| 83 | // either inline or at a later time. To display the default dialog return 84 | // false. 85 | /// 86 | /*--cef(optional_param=title,optional_param=default_file_name, 87 | optional_param=accept_types)--*/ 88 | virtual bool OnFileDialog(CefRefPtr browser, 89 | FileDialogMode mode, 90 | const CefString& title, 91 | const CefString& default_file_name, 92 | const std::vector& accept_types, 93 | CefRefPtr callback) { 94 | return false; 95 | } 96 | }; 97 | 98 | #endif // CEF_INCLUDE_CEF_DIALOG_HANDLER_H_ 99 | -------------------------------------------------------------------------------- /cef/linux/include/cef_drag_data.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 Marshall A. Greenblatt. All rights reserved. 2 | // 3 | // Redistribution and use in source and binary forms, with or without 4 | // modification, are permitted provided that the following conditions are 5 | // met: 6 | // 7 | // * Redistributions of source code must retain the above copyright 8 | // notice, this list of conditions and the following disclaimer. 9 | // * Redistributions in binary form must reproduce the above 10 | // copyright notice, this list of conditions and the following disclaimer 11 | // in the documentation and/or other materials provided with the 12 | // distribution. 13 | // * Neither the name of Google Inc. nor the name Chromium Embedded 14 | // Framework nor the names of its contributors may be used to endorse 15 | // or promote products derived from this software without specific prior 16 | // written permission. 17 | // 18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 19 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 20 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 21 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 22 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 23 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 24 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | // 30 | // --------------------------------------------------------------------------- 31 | // 32 | // The contents of this file must follow a specific format in order to 33 | // support the CEF translator tool. See the translator.README.txt file in the 34 | // tools directory for more information. 35 | // 36 | 37 | #ifndef CEF_INCLUDE_CEF_DRAG_DATA_H_ 38 | #define CEF_INCLUDE_CEF_DRAG_DATA_H_ 39 | #pragma once 40 | 41 | #include "include/cef_base.h" 42 | #include 43 | 44 | /// 45 | // Class used to represent drag data. The methods of this class may be called 46 | // on any thread. 47 | /// 48 | /*--cef(source=library)--*/ 49 | class CefDragData : public virtual CefBase { 50 | public: 51 | /// 52 | // Returns true if the drag data is a link. 53 | /// 54 | /*--cef()--*/ 55 | virtual bool IsLink() =0; 56 | 57 | /// 58 | // Returns true if the drag data is a text or html fragment. 59 | /// 60 | /*--cef()--*/ 61 | virtual bool IsFragment() =0; 62 | 63 | /// 64 | // Returns true if the drag data is a file. 65 | /// 66 | /*--cef()--*/ 67 | virtual bool IsFile() =0; 68 | 69 | /// 70 | // Return the link URL that is being dragged. 71 | /// 72 | /*--cef()--*/ 73 | virtual CefString GetLinkURL() =0; 74 | 75 | /// 76 | // Return the title associated with the link being dragged. 77 | /// 78 | /*--cef()--*/ 79 | virtual CefString GetLinkTitle() =0; 80 | 81 | /// 82 | // Return the metadata, if any, associated with the link being dragged. 83 | /// 84 | /*--cef()--*/ 85 | virtual CefString GetLinkMetadata() =0; 86 | 87 | /// 88 | // Return the plain text fragment that is being dragged. 89 | /// 90 | /*--cef()--*/ 91 | virtual CefString GetFragmentText() =0; 92 | 93 | /// 94 | // Return the text/html fragment that is being dragged. 95 | /// 96 | /*--cef()--*/ 97 | virtual CefString GetFragmentHtml() =0; 98 | 99 | /// 100 | // Return the base URL that the fragment came from. This value is used for 101 | // resolving relative URLs and may be empty. 102 | /// 103 | /*--cef()--*/ 104 | virtual CefString GetFragmentBaseURL() =0; 105 | 106 | /// 107 | // Return the name of the file being dragged out of the browser window. 108 | /// 109 | /*--cef()--*/ 110 | virtual CefString GetFileName() =0; 111 | 112 | /// 113 | // Retrieve the list of file names that are being dragged into the browser 114 | // window. 115 | /// 116 | /*--cef()--*/ 117 | virtual bool GetFileNames(std::vector& names) =0; 118 | }; 119 | 120 | #endif // CEF_INCLUDE_CEF_DRAG_DATA_H_ 121 | -------------------------------------------------------------------------------- /cef/linux/include/cef_drag_handler.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 Marshall A. Greenblatt. All rights reserved. 2 | // 3 | // Redistribution and use in source and binary forms, with or without 4 | // modification, are permitted provided that the following conditions are 5 | // met: 6 | // 7 | // * Redistributions of source code must retain the above copyright 8 | // notice, this list of conditions and the following disclaimer. 9 | // * Redistributions in binary form must reproduce the above 10 | // copyright notice, this list of conditions and the following disclaimer 11 | // in the documentation and/or other materials provided with the 12 | // distribution. 13 | // * Neither the name of Google Inc. nor the name Chromium Embedded 14 | // Framework nor the names of its contributors may be used to endorse 15 | // or promote products derived from this software without specific prior 16 | // written permission. 17 | // 18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 19 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 20 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 21 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 22 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 23 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 24 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | // 30 | // --------------------------------------------------------------------------- 31 | // 32 | // The contents of this file must follow a specific format in order to 33 | // support the CEF translator tool. See the translator.README.txt file in the 34 | // tools directory for more information. 35 | // 36 | 37 | #ifndef CEF_INCLUDE_CEF_DRAG_HANDLER_H_ 38 | #define CEF_INCLUDE_CEF_DRAG_HANDLER_H_ 39 | #pragma once 40 | 41 | #include "include/cef_base.h" 42 | #include "include/cef_drag_data.h" 43 | #include "include/cef_browser.h" 44 | 45 | /// 46 | // Implement this interface to handle events related to dragging. The methods of 47 | // this class will be called on the UI thread. 48 | /// 49 | /*--cef(source=client)--*/ 50 | class CefDragHandler : public virtual CefBase { 51 | public: 52 | typedef cef_drag_operations_mask_t DragOperationsMask; 53 | 54 | /// 55 | // Called when an external drag event enters the browser window. |dragData| 56 | // contains the drag event data and |mask| represents the type of drag 57 | // operation. Return false for default drag handling behavior or true to 58 | // cancel the drag event. 59 | /// 60 | /*--cef()--*/ 61 | virtual bool OnDragEnter(CefRefPtr browser, 62 | CefRefPtr dragData, 63 | DragOperationsMask mask) { return false; } 64 | }; 65 | 66 | #endif // CEF_INCLUDE_CEF_DRAG_HANDLER_H_ 67 | -------------------------------------------------------------------------------- /cef/linux/include/cef_focus_handler.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012 Marshall A. Greenblatt. All rights reserved. 2 | // 3 | // Redistribution and use in source and binary forms, with or without 4 | // modification, are permitted provided that the following conditions are 5 | // met: 6 | // 7 | // * Redistributions of source code must retain the above copyright 8 | // notice, this list of conditions and the following disclaimer. 9 | // * Redistributions in binary form must reproduce the above 10 | // copyright notice, this list of conditions and the following disclaimer 11 | // in the documentation and/or other materials provided with the 12 | // distribution. 13 | // * Neither the name of Google Inc. nor the name Chromium Embedded 14 | // Framework nor the names of its contributors may be used to endorse 15 | // or promote products derived from this software without specific prior 16 | // written permission. 17 | // 18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 19 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 20 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 21 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 22 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 23 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 24 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | // 30 | // --------------------------------------------------------------------------- 31 | // 32 | // The contents of this file must follow a specific format in order to 33 | // support the CEF translator tool. See the translator.README.txt file in the 34 | // tools directory for more information. 35 | // 36 | 37 | #ifndef CEF_INCLUDE_CEF_FOCUS_HANDLER_H_ 38 | #define CEF_INCLUDE_CEF_FOCUS_HANDLER_H_ 39 | #pragma once 40 | 41 | #include "include/cef_base.h" 42 | #include "include/cef_browser.h" 43 | #include "include/cef_dom.h" 44 | #include "include/cef_frame.h" 45 | 46 | /// 47 | // Implement this interface to handle events related to focus. The methods of 48 | // this class will be called on the UI thread. 49 | /// 50 | /*--cef(source=client)--*/ 51 | class CefFocusHandler : public virtual CefBase { 52 | public: 53 | typedef cef_focus_source_t FocusSource; 54 | 55 | /// 56 | // Called when the browser component is about to loose focus. For instance, if 57 | // focus was on the last HTML element and the user pressed the TAB key. |next| 58 | // will be true if the browser is giving focus to the next component and false 59 | // if the browser is giving focus to the previous component. 60 | /// 61 | /*--cef()--*/ 62 | virtual void OnTakeFocus(CefRefPtr browser, 63 | bool next) {} 64 | 65 | /// 66 | // Called when the browser component is requesting focus. |source| indicates 67 | // where the focus request is originating from. Return false to allow the 68 | // focus to be set or true to cancel setting the focus. 69 | /// 70 | /*--cef()--*/ 71 | virtual bool OnSetFocus(CefRefPtr browser, 72 | FocusSource source) { return false; } 73 | 74 | /// 75 | // Called when the browser component has received focus. 76 | /// 77 | /*--cef()--*/ 78 | virtual void OnGotFocus(CefRefPtr browser) {} 79 | }; 80 | 81 | #endif // CEF_INCLUDE_CEF_FOCUS_HANDLER_H_ 82 | -------------------------------------------------------------------------------- /cef/linux/include/cef_geolocation.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012 Marshall A. Greenblatt. All rights reserved. 2 | // 3 | // Redistribution and use in source and binary forms, with or without 4 | // modification, are permitted provided that the following conditions are 5 | // met: 6 | // 7 | // * Redistributions of source code must retain the above copyright 8 | // notice, this list of conditions and the following disclaimer. 9 | // * Redistributions in binary form must reproduce the above 10 | // copyright notice, this list of conditions and the following disclaimer 11 | // in the documentation and/or other materials provided with the 12 | // distribution. 13 | // * Neither the name of Google Inc. nor the name Chromium Embedded 14 | // Framework nor the names of its contributors may be used to endorse 15 | // or promote products derived from this software without specific prior 16 | // written permission. 17 | // 18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 19 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 20 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 21 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 22 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 23 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 24 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | // 30 | // --------------------------------------------------------------------------- 31 | // 32 | // The contents of this file must follow a specific format in order to 33 | // support the CEF translator tool. See the translator.README.txt file in the 34 | // tools directory for more information. 35 | // 36 | 37 | #ifndef CEF_INCLUDE_CEF_GEOLOCATION_H_ 38 | #define CEF_INCLUDE_CEF_GEOLOCATION_H_ 39 | #pragma once 40 | 41 | #include "include/cef_base.h" 42 | 43 | /// 44 | // Implement this interface to receive geolocation updates. The methods of this 45 | // class will be called on the browser process UI thread. 46 | /// 47 | /*--cef(source=client)--*/ 48 | class CefGetGeolocationCallback : public virtual CefBase { 49 | public: 50 | /// 51 | // Called with the 'best available' location information or, if the location 52 | // update failed, with error information. 53 | /// 54 | /*--cef()--*/ 55 | virtual void OnLocationUpdate(const CefGeoposition& position) =0; 56 | }; 57 | 58 | /// 59 | // Request a one-time geolocation update. This function bypasses any user 60 | // permission checks so should only be used by code that is allowed to access 61 | // location information. 62 | /// 63 | /*--cef()--*/ 64 | bool CefGetGeolocation(CefRefPtr callback); 65 | 66 | #endif // CEF_INCLUDE_CEF_GEOLOCATION_H_ 67 | -------------------------------------------------------------------------------- /cef/linux/include/cef_geolocation_handler.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012 Marshall A. Greenblatt. All rights reserved. 2 | // 3 | // Redistribution and use in source and binary forms, with or without 4 | // modification, are permitted provided that the following conditions are 5 | // met: 6 | // 7 | // * Redistributions of source code must retain the above copyright 8 | // notice, this list of conditions and the following disclaimer. 9 | // * Redistributions in binary form must reproduce the above 10 | // copyright notice, this list of conditions and the following disclaimer 11 | // in the documentation and/or other materials provided with the 12 | // distribution. 13 | // * Neither the name of Google Inc. nor the name Chromium Embedded 14 | // Framework nor the names of its contributors may be used to endorse 15 | // or promote products derived from this software without specific prior 16 | // written permission. 17 | // 18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 19 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 20 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 21 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 22 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 23 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 24 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | // 30 | // --------------------------------------------------------------------------- 31 | // 32 | // The contents of this file must follow a specific format in order to 33 | // support the CEF translator tool. See the translator.README.txt file in the 34 | // tools directory for more information. 35 | // 36 | 37 | #ifndef CEF_INCLUDE_CEF_GEOLOCATION_HANDLER_H_ 38 | #define CEF_INCLUDE_CEF_GEOLOCATION_HANDLER_H_ 39 | #pragma once 40 | 41 | #include "include/cef_base.h" 42 | #include "include/cef_browser.h" 43 | 44 | /// 45 | // Callback interface used for asynchronous continuation of geolocation 46 | // permission requests. 47 | /// 48 | /*--cef(source=library)--*/ 49 | class CefGeolocationCallback : public virtual CefBase { 50 | public: 51 | /// 52 | // Call to allow or deny geolocation access. 53 | /// 54 | /*--cef(capi_name=cont)--*/ 55 | virtual void Continue(bool allow) =0; 56 | }; 57 | 58 | 59 | /// 60 | // Implement this interface to handle events related to geolocation permission 61 | // requests. The methods of this class will be called on the browser process IO 62 | // thread. 63 | /// 64 | /*--cef(source=client)--*/ 65 | class CefGeolocationHandler : public virtual CefBase { 66 | public: 67 | /// 68 | // Called when a page requests permission to access geolocation information. 69 | // |requesting_url| is the URL requesting permission and |request_id| is the 70 | // unique ID for the permission request. Call CefGeolocationCallback::Continue 71 | // to allow or deny the permission request. 72 | /// 73 | /*--cef()--*/ 74 | virtual void OnRequestGeolocationPermission( 75 | CefRefPtr browser, 76 | const CefString& requesting_url, 77 | int request_id, 78 | CefRefPtr callback) { 79 | } 80 | 81 | /// 82 | // Called when a geolocation access request is canceled. |requesting_url| is 83 | // the URL that originally requested permission and |request_id| is the unique 84 | // ID for the permission request. 85 | /// 86 | /*--cef()--*/ 87 | virtual void OnCancelGeolocationPermission( 88 | CefRefPtr browser, 89 | const CefString& requesting_url, 90 | int request_id) { 91 | } 92 | }; 93 | 94 | #endif // CEF_INCLUDE_CEF_GEOLOCATION_HANDLER_H_ 95 | -------------------------------------------------------------------------------- /cef/linux/include/cef_keyboard_handler.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012 Marshall A. Greenblatt. All rights reserved. 2 | // 3 | // Redistribution and use in source and binary forms, with or without 4 | // modification, are permitted provided that the following conditions are 5 | // met: 6 | // 7 | // * Redistributions of source code must retain the above copyright 8 | // notice, this list of conditions and the following disclaimer. 9 | // * Redistributions in binary form must reproduce the above 10 | // copyright notice, this list of conditions and the following disclaimer 11 | // in the documentation and/or other materials provided with the 12 | // distribution. 13 | // * Neither the name of Google Inc. nor the name Chromium Embedded 14 | // Framework nor the names of its contributors may be used to endorse 15 | // or promote products derived from this software without specific prior 16 | // written permission. 17 | // 18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 19 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 20 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 21 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 22 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 23 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 24 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | // 30 | // --------------------------------------------------------------------------- 31 | // 32 | // The contents of this file must follow a specific format in order to 33 | // support the CEF translator tool. See the translator.README.txt file in the 34 | // tools directory for more information. 35 | // 36 | 37 | #ifndef CEF_INCLUDE_CEF_KEYBOARD_HANDLER_H_ 38 | #define CEF_INCLUDE_CEF_KEYBOARD_HANDLER_H_ 39 | #pragma once 40 | 41 | #include "include/cef_base.h" 42 | #include "include/cef_browser.h" 43 | 44 | /// 45 | // Implement this interface to handle events related to keyboard input. The 46 | // methods of this class will be called on the UI thread. 47 | /// 48 | /*--cef(source=client)--*/ 49 | class CefKeyboardHandler : public virtual CefBase { 50 | public: 51 | // Called before a keyboard event is sent to the renderer. |event| contains 52 | // information about the keyboard event. |os_event| is the operating system 53 | // event message, if any. Return true if the event was handled or false 54 | // otherwise. If the event will be handled in OnKeyEvent() as a keyboard 55 | // shortcut set |is_keyboard_shortcut| to true and return false. 56 | /*--cef()--*/ 57 | virtual bool OnPreKeyEvent(CefRefPtr browser, 58 | const CefKeyEvent& event, 59 | CefEventHandle os_event, 60 | bool* is_keyboard_shortcut) { return false; } 61 | 62 | /// 63 | // Called after the renderer and JavaScript in the page has had a chance to 64 | // handle the event. |event| contains information about the keyboard event. 65 | // |os_event| is the operating system event message, if any. Return true if 66 | // the keyboard event was handled or false otherwise. 67 | /// 68 | /*--cef()--*/ 69 | virtual bool OnKeyEvent(CefRefPtr browser, 70 | const CefKeyEvent& event, 71 | CefEventHandle os_event) { return false; } 72 | }; 73 | 74 | #endif // CEF_INCLUDE_CEF_KEYBOARD_HANDLER_H_ 75 | -------------------------------------------------------------------------------- /cef/linux/include/cef_path_util.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012 Marshall A. Greenblatt. All rights reserved. 2 | // 3 | // Redistribution and use in source and binary forms, with or without 4 | // modification, are permitted provided that the following conditions are 5 | // met: 6 | // 7 | // * Redistributions of source code must retain the above copyright 8 | // notice, this list of conditions and the following disclaimer. 9 | // * Redistributions in binary form must reproduce the above 10 | // copyright notice, this list of conditions and the following disclaimer 11 | // in the documentation and/or other materials provided with the 12 | // distribution. 13 | // * Neither the name of Google Inc. nor the name Chromium Embedded 14 | // Framework nor the names of its contributors may be used to endorse 15 | // or promote products derived from this software without specific prior 16 | // written permission. 17 | // 18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 19 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 20 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 21 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 22 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 23 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 24 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | // 30 | // --------------------------------------------------------------------------- 31 | // 32 | // The contents of this file must follow a specific format in order to 33 | // support the CEF translator tool. See the translator.README.txt file in the 34 | // tools directory for more information. 35 | // 36 | 37 | #ifndef CEF_INCLUDE_CEF_PATH_UTIL_H_ 38 | #define CEF_INCLUDE_CEF_PATH_UTIL_H_ 39 | #pragma once 40 | 41 | #include "include/cef_base.h" 42 | 43 | typedef cef_path_key_t PathKey; 44 | 45 | /// 46 | // Retrieve the path associated with the specified |key|. Returns true on 47 | // success. Can be called on any thread in the browser process. 48 | /// 49 | /*--cef()--*/ 50 | bool CefGetPath(PathKey key, CefString& path); 51 | 52 | #endif // CEF_INCLUDE_CEF_PATH_UTIL_H_ 53 | -------------------------------------------------------------------------------- /cef/linux/include/cef_process_message.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012 Marshall A. Greenblatt. All rights reserved. 2 | // 3 | // Redistribution and use in source and binary forms, with or without 4 | // modification, are permitted provided that the following conditions are 5 | // met: 6 | // 7 | // * Redistributions of source code must retain the above copyright 8 | // notice, this list of conditions and the following disclaimer. 9 | // * Redistributions in binary form must reproduce the above 10 | // copyright notice, this list of conditions and the following disclaimer 11 | // in the documentation and/or other materials provided with the 12 | // distribution. 13 | // * Neither the name of Google Inc. nor the name Chromium Embedded 14 | // Framework nor the names of its contributors may be used to endorse 15 | // or promote products derived from this software without specific prior 16 | // written permission. 17 | // 18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 19 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 20 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 21 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 22 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 23 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 24 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | // 30 | // --------------------------------------------------------------------------- 31 | // 32 | // The contents of this file must follow a specific format in order to 33 | // support the CEF translator tool. See the translator.README.txt file in the 34 | // tools directory for more information. 35 | // 36 | 37 | #ifndef CEF_INCLUDE_CEF_MESSAGE_H_ 38 | #define CEF_INCLUDE_CEF_MESSAGE_H_ 39 | #pragma once 40 | 41 | #include "include/cef_base.h" 42 | #include "include/cef_values.h" 43 | 44 | typedef cef_process_id_t CefProcessId; 45 | 46 | /// 47 | // Class representing a message. Can be used on any process and thread. 48 | /// 49 | /*--cef(source=library)--*/ 50 | class CefProcessMessage : public virtual CefBase { 51 | public: 52 | /// 53 | // Create a new CefProcessMessage object with the specified name. 54 | /// 55 | /*--cef()--*/ 56 | static CefRefPtr Create(const CefString& name); 57 | 58 | /// 59 | // Returns true if this object is valid. Do not call any other methods if this 60 | // function returns false. 61 | /// 62 | /*--cef()--*/ 63 | virtual bool IsValid() =0; 64 | 65 | /// 66 | // Returns true if the values of this object are read-only. Some APIs may 67 | // expose read-only objects. 68 | /// 69 | /*--cef()--*/ 70 | virtual bool IsReadOnly() =0; 71 | 72 | /// 73 | // Returns a writable copy of this object. 74 | /// 75 | /*--cef()--*/ 76 | virtual CefRefPtr Copy() =0; 77 | 78 | /// 79 | // Returns the message name. 80 | /// 81 | /*--cef()--*/ 82 | virtual CefString GetName() =0; 83 | 84 | /// 85 | // Returns the list of arguments. 86 | /// 87 | /*--cef()--*/ 88 | virtual CefRefPtr GetArgumentList() =0; 89 | }; 90 | 91 | #endif // CEF_INCLUDE_CEF_MESSAGE_H_ 92 | -------------------------------------------------------------------------------- /cef/linux/include/cef_process_util.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012 Marshall A. Greenblatt. All rights reserved. 2 | // 3 | // Redistribution and use in source and binary forms, with or without 4 | // modification, are permitted provided that the following conditions are 5 | // met: 6 | // 7 | // * Redistributions of source code must retain the above copyright 8 | // notice, this list of conditions and the following disclaimer. 9 | // * Redistributions in binary form must reproduce the above 10 | // copyright notice, this list of conditions and the following disclaimer 11 | // in the documentation and/or other materials provided with the 12 | // distribution. 13 | // * Neither the name of Google Inc. nor the name Chromium Embedded 14 | // Framework nor the names of its contributors may be used to endorse 15 | // or promote products derived from this software without specific prior 16 | // written permission. 17 | // 18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 19 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 20 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 21 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 22 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 23 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 24 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | // 30 | // --------------------------------------------------------------------------- 31 | // 32 | // The contents of this file must follow a specific format in order to 33 | // support the CEF translator tool. See the translator.README.txt file in the 34 | // tools directory for more information. 35 | // 36 | 37 | #ifndef CEF_INCLUDE_CEF_PROCESS_UTIL_H_ 38 | #define CEF_INCLUDE_CEF_PROCESS_UTIL_H_ 39 | #pragma once 40 | 41 | #include "include/cef_base.h" 42 | #include "include/cef_command_line.h" 43 | 44 | /// 45 | // Launches the process specified via |command_line|. Returns true upon 46 | // success. Must be called on the browser process TID_PROCESS_LAUNCHER thread. 47 | // 48 | // Unix-specific notes: 49 | // - All file descriptors open in the parent process will be closed in the 50 | // child process except for stdin, stdout, and stderr. 51 | // - If the first argument on the command line does not contain a slash, 52 | // PATH will be searched. (See man execvp.) 53 | /// 54 | /*--cef()--*/ 55 | bool CefLaunchProcess(CefRefPtr command_line); 56 | 57 | #endif // CEF_INCLUDE_CEF_PROCESS_UTIL_H_ 58 | -------------------------------------------------------------------------------- /cef/linux/include/cef_request_context.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 Marshall A. Greenblatt. All rights reserved. 2 | // 3 | // Redistribution and use in source and binary forms, with or without 4 | // modification, are permitted provided that the following conditions are 5 | // met: 6 | // 7 | // * Redistributions of source code must retain the above copyright 8 | // notice, this list of conditions and the following disclaimer. 9 | // * Redistributions in binary form must reproduce the above 10 | // copyright notice, this list of conditions and the following disclaimer 11 | // in the documentation and/or other materials provided with the 12 | // distribution. 13 | // * Neither the name of Google Inc. nor the name Chromium Embedded 14 | // Framework nor the names of its contributors may be used to endorse 15 | // or promote products derived from this software without specific prior 16 | // written permission. 17 | // 18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 19 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 20 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 21 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 22 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 23 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 24 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | // 30 | // --------------------------------------------------------------------------- 31 | // 32 | // The contents of this file must follow a specific format in order to 33 | // support the CEF translator tool. See the translator.README.txt file in the 34 | // tools directory for more information. 35 | // 36 | 37 | #ifndef CEF_INCLUDE_CEF_REQUEST_CONTEXT_H_ 38 | #define CEF_INCLUDE_CEF_REQUEST_CONTEXT_H_ 39 | #pragma once 40 | 41 | #include "include/cef_request_context_handler.h" 42 | 43 | /// 44 | // A request context provides request handling for a set of related browser 45 | // objects. A request context is specified when creating a new browser object 46 | // via the CefBrowserHost static factory methods. Browser objects with different 47 | // request contexts will never be hosted in the same render process. Browser 48 | // objects with the same request context may or may not be hosted in the same 49 | // render process depending on the process model. Browser objects created 50 | // indirectly via the JavaScript window.open function or targeted links will 51 | // share the same render process and the same request context as the source 52 | // browser. When running in single-process mode there is only a single render 53 | // process (the main process) and so all browsers created in single-process mode 54 | // will share the same request context. This will be the first request context 55 | // passed into a CefBrowserHost static factory method and all other request 56 | // context objects will be ignored. 57 | /// 58 | /*--cef(source=library,no_debugct_check)--*/ 59 | class CefRequestContext : public virtual CefBase { 60 | public: 61 | /// 62 | // Returns the global context object. 63 | /// 64 | /*--cef()--*/ 65 | static CefRefPtr GetGlobalContext(); 66 | 67 | /// 68 | // Creates a new context object with the specified handler. 69 | /// 70 | /*--cef(optional_param=handler)--*/ 71 | static CefRefPtr CreateContext( 72 | CefRefPtr handler); 73 | 74 | /// 75 | // Returns true if this object is pointing to the same context as |that| 76 | // object. 77 | /// 78 | /*--cef()--*/ 79 | virtual bool IsSame(CefRefPtr other) =0; 80 | 81 | /// 82 | // Returns true if this object is the global context. 83 | /// 84 | /*--cef()--*/ 85 | virtual bool IsGlobal() =0; 86 | 87 | /// 88 | // Returns the handler for this context if any. 89 | /// 90 | /*--cef()--*/ 91 | virtual CefRefPtr GetHandler() =0; 92 | }; 93 | 94 | #endif // CEF_INCLUDE_CEF_REQUEST_CONTEXT_H_ 95 | -------------------------------------------------------------------------------- /cef/linux/include/cef_request_context_handler.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 Marshall A. Greenblatt. All rights reserved. 2 | // 3 | // Redistribution and use in source and binary forms, with or without 4 | // modification, are permitted provided that the following conditions are 5 | // met: 6 | // 7 | // * Redistributions of source code must retain the above copyright 8 | // notice, this list of conditions and the following disclaimer. 9 | // * Redistributions in binary form must reproduce the above 10 | // copyright notice, this list of conditions and the following disclaimer 11 | // in the documentation and/or other materials provided with the 12 | // distribution. 13 | // * Neither the name of Google Inc. nor the name Chromium Embedded 14 | // Framework nor the names of its contributors may be used to endorse 15 | // or promote products derived from this software without specific prior 16 | // written permission. 17 | // 18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 19 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 20 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 21 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 22 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 23 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 24 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | // 30 | // --------------------------------------------------------------------------- 31 | // 32 | // The contents of this file must follow a specific format in order to 33 | // support the CEF translator tool. See the translator.README.txt file in the 34 | // tools directory for more information. 35 | // 36 | 37 | #ifndef CEF_INCLUDE_CEF_REQUEST_CONTEXT_HANDLER_H_ 38 | #define CEF_INCLUDE_CEF_REQUEST_CONTEXT_HANDLER_H_ 39 | #pragma once 40 | 41 | #include "include/cef_base.h" 42 | #include "include/cef_cookie.h" 43 | 44 | /// 45 | // Implement this interface to provide handler implementations. 46 | /// 47 | /*--cef(source=client,no_debugct_check)--*/ 48 | class CefRequestContextHandler : public virtual CefBase { 49 | public: 50 | /// 51 | // Called on the IO thread to retrieve the cookie manager. The global cookie 52 | // manager will be used if this method returns NULL. 53 | /// 54 | /*--cef()--*/ 55 | virtual CefRefPtr GetCookieManager() { return NULL; } 56 | }; 57 | 58 | #endif // CEF_INCLUDE_CEF_REQUEST_CONTEXT_HANDLER_H_ 59 | -------------------------------------------------------------------------------- /cef/linux/include/cef_resource_bundle_handler.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012 Marshall A. Greenblatt. All rights reserved. 2 | // 3 | // Redistribution and use in source and binary forms, with or without 4 | // modification, are permitted provided that the following conditions are 5 | // met: 6 | // 7 | // * Redistributions of source code must retain the above copyright 8 | // notice, this list of conditions and the following disclaimer. 9 | // * Redistributions in binary form must reproduce the above 10 | // copyright notice, this list of conditions and the following disclaimer 11 | // in the documentation and/or other materials provided with the 12 | // distribution. 13 | // * Neither the name of Google Inc. nor the name Chromium Embedded 14 | // Framework nor the names of its contributors may be used to endorse 15 | // or promote products derived from this software without specific prior 16 | // written permission. 17 | // 18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 19 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 20 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 21 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 22 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 23 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 24 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | // 30 | // --------------------------------------------------------------------------- 31 | // 32 | // The contents of this file must follow a specific format in order to 33 | // support the CEF translator tool. See the translator.README.txt file in the 34 | // tools directory for more information. 35 | // 36 | 37 | #ifndef CEF_INCLUDE_CEF_RESOURCE_BUNDLE_HANDLER_H_ 38 | #define CEF_INCLUDE_CEF_RESOURCE_BUNDLE_HANDLER_H_ 39 | #pragma once 40 | 41 | #include "include/cef_base.h" 42 | 43 | /// 44 | // Class used to implement a custom resource bundle interface. The methods of 45 | // this class may be called on multiple threads. 46 | /// 47 | /*--cef(source=client)--*/ 48 | class CefResourceBundleHandler : public virtual CefBase { 49 | public: 50 | /// 51 | // Called to retrieve a localized translation for the string specified by 52 | // |message_id|. To provide the translation set |string| to the translation 53 | // string and return true. To use the default translation return false. 54 | // Supported message IDs are listed in cef_pack_strings.h. 55 | /// 56 | /*--cef()--*/ 57 | virtual bool GetLocalizedString(int message_id, 58 | CefString& string) =0; 59 | 60 | /// 61 | // Called to retrieve data for the resource specified by |resource_id|. To 62 | // provide the resource data set |data| and |data_size| to the data pointer 63 | // and size respectively and return true. To use the default resource data 64 | // return false. The resource data will not be copied and must remain resident 65 | // in memory. Supported resource IDs are listed in cef_pack_resources.h. 66 | /// 67 | /*--cef()--*/ 68 | virtual bool GetDataResource(int resource_id, 69 | void*& data, 70 | size_t& data_size) =0; 71 | }; 72 | 73 | #endif // CEF_INCLUDE_CEF_RESOURCE_BUNDLE_HANDLER_H_ 74 | -------------------------------------------------------------------------------- /cef/linux/include/cef_response.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012 Marshall A. Greenblatt. All rights reserved. 2 | // 3 | // Redistribution and use in source and binary forms, with or without 4 | // modification, are permitted provided that the following conditions are 5 | // met: 6 | // 7 | // * Redistributions of source code must retain the above copyright 8 | // notice, this list of conditions and the following disclaimer. 9 | // * Redistributions in binary form must reproduce the above 10 | // copyright notice, this list of conditions and the following disclaimer 11 | // in the documentation and/or other materials provided with the 12 | // distribution. 13 | // * Neither the name of Google Inc. nor the name Chromium Embedded 14 | // Framework nor the names of its contributors may be used to endorse 15 | // or promote products derived from this software without specific prior 16 | // written permission. 17 | // 18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 19 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 20 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 21 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 22 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 23 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 24 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | // 30 | // --------------------------------------------------------------------------- 31 | // 32 | // The contents of this file must follow a specific format in order to 33 | // support the CEF translator tool. See the translator.README.txt file in the 34 | // tools directory for more information. 35 | // 36 | 37 | #ifndef CEF_INCLUDE_CEF_RESPONSE_H_ 38 | #define CEF_INCLUDE_CEF_RESPONSE_H_ 39 | #pragma once 40 | 41 | #include "include/cef_base.h" 42 | #include 43 | 44 | /// 45 | // Class used to represent a web response. The methods of this class may be 46 | // called on any thread. 47 | /// 48 | /*--cef(source=library,no_debugct_check)--*/ 49 | class CefResponse : public virtual CefBase { 50 | public: 51 | typedef std::multimap HeaderMap; 52 | 53 | /// 54 | // Create a new CefResponse object. 55 | /// 56 | /*--cef()--*/ 57 | static CefRefPtr Create(); 58 | 59 | /// 60 | // Returns true if this object is read-only. 61 | /// 62 | /*--cef()--*/ 63 | virtual bool IsReadOnly() =0; 64 | 65 | /// 66 | // Get the response status code. 67 | /// 68 | /*--cef()--*/ 69 | virtual int GetStatus() =0; 70 | 71 | /// 72 | // Set the response status code. 73 | /// 74 | /*--cef()--*/ 75 | virtual void SetStatus(int status) = 0; 76 | 77 | /// 78 | // Get the response status text. 79 | /// 80 | /*--cef()--*/ 81 | virtual CefString GetStatusText() =0; 82 | 83 | /// 84 | // Set the response status text. 85 | /// 86 | /*--cef()--*/ 87 | virtual void SetStatusText(const CefString& statusText) = 0; 88 | 89 | /// 90 | // Get the response mime type. 91 | /// 92 | /*--cef()--*/ 93 | virtual CefString GetMimeType() = 0; 94 | 95 | /// 96 | // Set the response mime type. 97 | /// 98 | /*--cef()--*/ 99 | virtual void SetMimeType(const CefString& mimeType) = 0; 100 | 101 | /// 102 | // Get the value for the specified response header field. 103 | /// 104 | /*--cef()--*/ 105 | virtual CefString GetHeader(const CefString& name) =0; 106 | 107 | /// 108 | // Get all response header fields. 109 | /// 110 | /*--cef()--*/ 111 | virtual void GetHeaderMap(HeaderMap& headerMap) =0; 112 | 113 | /// 114 | // Set all response header fields. 115 | /// 116 | /*--cef()--*/ 117 | virtual void SetHeaderMap(const HeaderMap& headerMap) =0; 118 | }; 119 | 120 | #endif // CEF_INCLUDE_CEF_RESPONSE_H_ 121 | -------------------------------------------------------------------------------- /cef/linux/include/cef_string_visitor.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012 Marshall A. Greenblatt. All rights reserved. 2 | // 3 | // Redistribution and use in source and binary forms, with or without 4 | // modification, are permitted provided that the following conditions are 5 | // met: 6 | // 7 | // * Redistributions of source code must retain the above copyright 8 | // notice, this list of conditions and the following disclaimer. 9 | // * Redistributions in binary form must reproduce the above 10 | // copyright notice, this list of conditions and the following disclaimer 11 | // in the documentation and/or other materials provided with the 12 | // distribution. 13 | // * Neither the name of Google Inc. nor the name Chromium Embedded 14 | // Framework nor the names of its contributors may be used to endorse 15 | // or promote products derived from this software without specific prior 16 | // written permission. 17 | // 18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 19 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 20 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 21 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 22 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 23 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 24 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | // 30 | // --------------------------------------------------------------------------- 31 | // 32 | // The contents of this file must follow a specific format in order to 33 | // support the CEF translator tool. See the translator.README.txt file in the 34 | // tools directory for more information. 35 | // 36 | 37 | #ifndef CEF_INCLUDE_CEF_STRING_VISITOR_H_ 38 | #define CEF_INCLUDE_CEF_STRING_VISITOR_H_ 39 | 40 | #include "include/cef_base.h" 41 | 42 | /// 43 | // Implement this interface to receive string values asynchronously. 44 | /// 45 | /*--cef(source=client)--*/ 46 | class CefStringVisitor : public virtual CefBase { 47 | public: 48 | /// 49 | // Method that will be executed. 50 | /// 51 | /*--cef(optional_param=string)--*/ 52 | virtual void Visit(const CefString& string) =0; 53 | }; 54 | 55 | #endif // CEF_INCLUDE_CEF_STRING_VISITOR_H_ 56 | -------------------------------------------------------------------------------- /cef/linux/include/cef_url.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012 Marshall A. Greenblatt. All rights reserved. 2 | // 3 | // Redistribution and use in source and binary forms, with or without 4 | // modification, are permitted provided that the following conditions are 5 | // met: 6 | // 7 | // * Redistributions of source code must retain the above copyright 8 | // notice, this list of conditions and the following disclaimer. 9 | // * Redistributions in binary form must reproduce the above 10 | // copyright notice, this list of conditions and the following disclaimer 11 | // in the documentation and/or other materials provided with the 12 | // distribution. 13 | // * Neither the name of Google Inc. nor the name Chromium Embedded 14 | // Framework nor the names of its contributors may be used to endorse 15 | // or promote products derived from this software without specific prior 16 | // written permission. 17 | // 18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 19 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 20 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 21 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 22 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 23 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 24 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | // 30 | // --------------------------------------------------------------------------- 31 | // 32 | // The contents of this file must follow a specific format in order to 33 | // support the CEF translator tool. See the translator.README.txt file in the 34 | // tools directory for more information. 35 | // 36 | 37 | #ifndef CEF_INCLUDE_CEF_URL_H_ 38 | #define CEF_INCLUDE_CEF_URL_H_ 39 | #pragma once 40 | 41 | #include "include/cef_base.h" 42 | 43 | /// 44 | // Parse the specified |url| into its component parts. 45 | // Returns false if the URL is empty or invalid. 46 | /// 47 | /*--cef()--*/ 48 | bool CefParseURL(const CefString& url, 49 | CefURLParts& parts); 50 | 51 | /// 52 | // Creates a URL from the specified |parts|, which must contain a non-empty 53 | // spec or a non-empty host and path (at a minimum), but not both. 54 | // Returns false if |parts| isn't initialized as described. 55 | /// 56 | /*--cef()--*/ 57 | bool CefCreateURL(const CefURLParts& parts, 58 | CefString& url); 59 | 60 | /// 61 | // Returns the mime type for the specified file extension or an empty string if 62 | // unknown. 63 | /// 64 | /*--cef()--*/ 65 | CefString CefGetMimeType(const CefString& extension); 66 | 67 | #endif // CEF_INCLUDE_CEF_URL_H_ 68 | -------------------------------------------------------------------------------- /cef/linux/include/cef_version.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2014 Marshall A. Greenblatt. All rights reserved. 2 | // 3 | // Redistribution and use in source and binary forms, with or without 4 | // modification, are permitted provided that the following conditions are 5 | // met: 6 | // 7 | // * Redistributions of source code must retain the above copyright 8 | // notice, this list of conditions and the following disclaimer. 9 | // * Redistributions in binary form must reproduce the above 10 | // copyright notice, this list of conditions and the following disclaimer 11 | // in the documentation and/or other materials provided with the 12 | // distribution. 13 | // * Neither the name of Google Inc. nor the name Chromium Embedded 14 | // Framework nor the names of its contributors may be used to endorse 15 | // or promote products derived from this software without specific prior 16 | // written permission. 17 | // 18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 19 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 20 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 21 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 22 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 23 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 24 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | // 30 | // --------------------------------------------------------------------------- 31 | // 32 | // This file is generated by the make_version_header.py tool. 33 | // 34 | 35 | #ifndef CEF_INCLUDE_CEF_VERSION_H_ 36 | #define CEF_INCLUDE_CEF_VERSION_H_ 37 | 38 | #define CEF_VERSION_MAJOR 3 39 | #define CEF_REVISION 1738 40 | #define COPYRIGHT_YEAR 2014 41 | 42 | #define CHROME_VERSION_MAJOR 33 43 | #define CHROME_VERSION_MINOR 0 44 | #define CHROME_VERSION_BUILD 1750 45 | #define CHROME_VERSION_PATCH 170 46 | 47 | #define DO_MAKE_STRING(p) #p 48 | #define MAKE_STRING(p) DO_MAKE_STRING(p) 49 | 50 | #ifndef APSTUDIO_HIDDEN_SYMBOLS 51 | 52 | #ifdef __cplusplus 53 | extern "C" { 54 | #endif 55 | 56 | #include "internal/cef_export.h" 57 | 58 | // The API hash is created by analyzing CEF header files for C API type 59 | // definitions. The hash value will change when header files are modified 60 | // in a way that may cause binary incompatibility with other builds. The 61 | // universal hash value will change if any platform is affected whereas the 62 | // platform hash values will change only if that particular platform is 63 | // affected. 64 | #define CEF_API_HASH_UNIVERSAL "97238e85785c70a4f1c5e3eec6f67fcbef2df89e" 65 | #if defined(OS_WIN) 66 | #define CEF_API_HASH_PLATFORM "2a84f1539871434274323d2d6742545820a42dfe" 67 | #elif defined(OS_MACOSX) 68 | #define CEF_API_HASH_PLATFORM "7b1d9369d55ee8a12a7a848e3b82c4f8e5429632" 69 | #elif defined(OS_LINUX) 70 | #define CEF_API_HASH_PLATFORM "c8fdbd5a5eea66912e3741daecaebbeba90d552f" 71 | #endif 72 | 73 | /// 74 | // Returns the CEF build revision for the libcef library. 75 | /// 76 | CEF_EXPORT int cef_build_revision(); 77 | 78 | /// 79 | // Returns CEF version information for the libcef library. The |entry| 80 | // parameter describes which version component will be returned: 81 | // 0 - CEF_VERSION_MAJOR 82 | // 1 - CEF_REVISION 83 | // 2 - CHROME_VERSION_MAJOR 84 | // 3 - CHROME_VERSION_MINOR 85 | // 4 - CHROME_VERSION_BUILD 86 | // 5 - CHROME_VERSION_PATCH 87 | /// 88 | CEF_EXPORT int cef_version_info(int entry); 89 | 90 | /// 91 | // Returns CEF API hashes for the libcef library. The returned string is owned 92 | // by the library and should not be freed. The |entry| parameter describes which 93 | // hash value will be returned: 94 | // 0 - CEF_API_HASH_PLATFORM 95 | // 1 - CEF_API_HASH_UNIVERSAL 96 | /// 97 | CEF_EXPORT const char* cef_api_hash(int entry); 98 | 99 | #ifdef __cplusplus 100 | } 101 | #endif 102 | 103 | #endif // APSTUDIO_HIDDEN_SYMBOLS 104 | 105 | #endif // CEF_INCLUDE_CEF_VERSION_H_ 106 | -------------------------------------------------------------------------------- /cef/linux/include/include: -------------------------------------------------------------------------------- 1 | ../include -------------------------------------------------------------------------------- /cef/linux/include/internal/cef_export.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2009 The Chromium Embedded Framework Authors. All rights 2 | // 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 | 31 | #ifndef CEF_INCLUDE_INTERNAL_CEF_EXPORT_H_ 32 | #define CEF_INCLUDE_INTERNAL_CEF_EXPORT_H_ 33 | #pragma once 34 | 35 | #include "include/internal/cef_build.h" 36 | 37 | #if defined(COMPILER_MSVC) 38 | 39 | #ifdef BUILDING_CEF_SHARED 40 | #define CEF_EXPORT __declspec(dllexport) 41 | #elif USING_CEF_SHARED 42 | #define CEF_EXPORT __declspec(dllimport) 43 | #else 44 | #define CEF_EXPORT 45 | #endif 46 | #define CEF_CALLBACK __stdcall 47 | 48 | #elif defined(COMPILER_GCC) 49 | 50 | #define CEF_EXPORT __attribute__ ((visibility("default"))) 51 | #define CEF_CALLBACK 52 | 53 | #endif // COMPILER_GCC 54 | 55 | #endif // CEF_INCLUDE_INTERNAL_CEF_EXPORT_H_ 56 | -------------------------------------------------------------------------------- /cef/linux/include/internal/cef_string_list.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2009 Marshall A. Greenblatt. All rights reserved. 2 | // 3 | // Redistribution and use in source and binary forms, with or without 4 | // modification, are permitted provided that the following conditions are 5 | // met: 6 | // 7 | // * Redistributions of source code must retain the above copyright 8 | // notice, this list of conditions and the following disclaimer. 9 | // * Redistributions in binary form must reproduce the above 10 | // copyright notice, this list of conditions and the following disclaimer 11 | // in the documentation and/or other materials provided with the 12 | // distribution. 13 | // * Neither the name of Google Inc. nor the name Chromium Embedded 14 | // Framework nor the names of its contributors may be used to endorse 15 | // or promote products derived from this software without specific prior 16 | // written permission. 17 | // 18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 19 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 20 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 21 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 22 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 23 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 24 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | 30 | #ifndef CEF_INCLUDE_INTERNAL_CEF_STRING_LIST_H_ 31 | #define CEF_INCLUDE_INTERNAL_CEF_STRING_LIST_H_ 32 | #pragma once 33 | 34 | #include "include/internal/cef_export.h" 35 | #include "include/internal/cef_string.h" 36 | 37 | #ifdef __cplusplus 38 | extern "C" { 39 | #endif 40 | 41 | /// 42 | // CEF string maps are a set of key/value string pairs. 43 | /// 44 | typedef void* cef_string_list_t; 45 | 46 | /// 47 | // Allocate a new string map. 48 | /// 49 | CEF_EXPORT cef_string_list_t cef_string_list_alloc(); 50 | 51 | /// 52 | // Return the number of elements in the string list. 53 | /// 54 | CEF_EXPORT int cef_string_list_size(cef_string_list_t list); 55 | 56 | /// 57 | // Retrieve the value at the specified zero-based string list index. Returns 58 | // true (1) if the value was successfully retrieved. 59 | /// 60 | CEF_EXPORT int cef_string_list_value(cef_string_list_t list, 61 | int index, cef_string_t* value); 62 | 63 | /// 64 | // Append a new value at the end of the string list. 65 | /// 66 | CEF_EXPORT void cef_string_list_append(cef_string_list_t list, 67 | const cef_string_t* value); 68 | 69 | /// 70 | // Clear the string list. 71 | /// 72 | CEF_EXPORT void cef_string_list_clear(cef_string_list_t list); 73 | 74 | /// 75 | // Free the string list. 76 | /// 77 | CEF_EXPORT void cef_string_list_free(cef_string_list_t list); 78 | 79 | /// 80 | // Creates a copy of an existing string list. 81 | /// 82 | CEF_EXPORT cef_string_list_t cef_string_list_copy(cef_string_list_t list); 83 | 84 | #ifdef __cplusplus 85 | } 86 | #endif 87 | 88 | #endif // CEF_INCLUDE_INTERNAL_CEF_STRING_LIST_H_ 89 | -------------------------------------------------------------------------------- /cef/linux/include/internal/cef_string_map.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2009 Marshall A. Greenblatt. All rights reserved. 2 | // 3 | // Redistribution and use in source and binary forms, with or without 4 | // modification, are permitted provided that the following conditions are 5 | // met: 6 | // 7 | // * Redistributions of source code must retain the above copyright 8 | // notice, this list of conditions and the following disclaimer. 9 | // * Redistributions in binary form must reproduce the above 10 | // copyright notice, this list of conditions and the following disclaimer 11 | // in the documentation and/or other materials provided with the 12 | // distribution. 13 | // * Neither the name of Google Inc. nor the name Chromium Embedded 14 | // Framework nor the names of its contributors may be used to endorse 15 | // or promote products derived from this software without specific prior 16 | // written permission. 17 | // 18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 19 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 20 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 21 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 22 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 23 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 24 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | 30 | #ifndef CEF_INCLUDE_INTERNAL_CEF_STRING_MAP_H_ 31 | #define CEF_INCLUDE_INTERNAL_CEF_STRING_MAP_H_ 32 | #pragma once 33 | 34 | #include "include/internal/cef_export.h" 35 | #include "include/internal/cef_string.h" 36 | 37 | #ifdef __cplusplus 38 | extern "C" { 39 | #endif 40 | 41 | /// 42 | // CEF string maps are a set of key/value string pairs. 43 | /// 44 | typedef void* cef_string_map_t; 45 | 46 | /// 47 | // Allocate a new string map. 48 | /// 49 | CEF_EXPORT cef_string_map_t cef_string_map_alloc(); 50 | 51 | /// 52 | // Return the number of elements in the string map. 53 | /// 54 | CEF_EXPORT int cef_string_map_size(cef_string_map_t map); 55 | 56 | /// 57 | // Return the value assigned to the specified key. 58 | /// 59 | CEF_EXPORT int cef_string_map_find(cef_string_map_t map, 60 | const cef_string_t* key, 61 | cef_string_t* value); 62 | 63 | /// 64 | // Return the key at the specified zero-based string map index. 65 | /// 66 | CEF_EXPORT int cef_string_map_key(cef_string_map_t map, int index, 67 | cef_string_t* key); 68 | 69 | /// 70 | // Return the value at the specified zero-based string map index. 71 | /// 72 | CEF_EXPORT int cef_string_map_value(cef_string_map_t map, int index, 73 | cef_string_t* value); 74 | 75 | /// 76 | // Append a new key/value pair at the end of the string map. 77 | /// 78 | CEF_EXPORT int cef_string_map_append(cef_string_map_t map, 79 | const cef_string_t* key, 80 | const cef_string_t* value); 81 | 82 | /// 83 | // Clear the string map. 84 | /// 85 | CEF_EXPORT void cef_string_map_clear(cef_string_map_t map); 86 | 87 | /// 88 | // Free the string map. 89 | /// 90 | CEF_EXPORT void cef_string_map_free(cef_string_map_t map); 91 | 92 | 93 | #ifdef __cplusplus 94 | } 95 | #endif 96 | 97 | #endif // CEF_INCLUDE_INTERNAL_CEF_STRING_MAP_H_ 98 | -------------------------------------------------------------------------------- /cef/linux/include/internal/cef_string_multimap.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011 Marshall A. Greenblatt. All rights reserved. 2 | // 3 | // Redistribution and use in source and binary forms, with or without 4 | // modification, are permitted provided that the following conditions are 5 | // met: 6 | // 7 | // * Redistributions of source code must retain the above copyright 8 | // notice, this list of conditions and the following disclaimer. 9 | // * Redistributions in binary form must reproduce the above 10 | // copyright notice, this list of conditions and the following disclaimer 11 | // in the documentation and/or other materials provided with the 12 | // distribution. 13 | // * Neither the name of Google Inc. nor the name Chromium Embedded 14 | // Framework nor the names of its contributors may be used to endorse 15 | // or promote products derived from this software without specific prior 16 | // written permission. 17 | // 18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 19 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 20 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 21 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 22 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 23 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 24 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | 30 | #ifndef CEF_INCLUDE_INTERNAL_CEF_STRING_MULTIMAP_H_ 31 | #define CEF_INCLUDE_INTERNAL_CEF_STRING_MULTIMAP_H_ 32 | #pragma once 33 | 34 | #include "include/internal/cef_export.h" 35 | #include "include/internal/cef_string.h" 36 | 37 | #ifdef __cplusplus 38 | extern "C" { 39 | #endif 40 | 41 | /// 42 | // CEF string multimaps are a set of key/value string pairs. 43 | // More than one value can be assigned to a single key. 44 | /// 45 | typedef void* cef_string_multimap_t; 46 | 47 | /// 48 | // Allocate a new string multimap. 49 | /// 50 | CEF_EXPORT cef_string_multimap_t cef_string_multimap_alloc(); 51 | 52 | /// 53 | // Return the number of elements in the string multimap. 54 | /// 55 | CEF_EXPORT int cef_string_multimap_size(cef_string_multimap_t map); 56 | 57 | /// 58 | // Return the number of values with the specified key. 59 | /// 60 | CEF_EXPORT int cef_string_multimap_find_count(cef_string_multimap_t map, 61 | const cef_string_t* key); 62 | 63 | /// 64 | // Return the value_index-th value with the specified key. 65 | /// 66 | CEF_EXPORT int cef_string_multimap_enumerate(cef_string_multimap_t map, 67 | const cef_string_t* key, 68 | int value_index, 69 | cef_string_t* value); 70 | 71 | /// 72 | // Return the key at the specified zero-based string multimap index. 73 | /// 74 | CEF_EXPORT int cef_string_multimap_key(cef_string_multimap_t map, int index, 75 | cef_string_t* key); 76 | 77 | /// 78 | // Return the value at the specified zero-based string multimap index. 79 | /// 80 | CEF_EXPORT int cef_string_multimap_value(cef_string_multimap_t map, int index, 81 | cef_string_t* value); 82 | 83 | /// 84 | // Append a new key/value pair at the end of the string multimap. 85 | /// 86 | CEF_EXPORT int cef_string_multimap_append(cef_string_multimap_t map, 87 | const cef_string_t* key, 88 | const cef_string_t* value); 89 | 90 | /// 91 | // Clear the string multimap. 92 | /// 93 | CEF_EXPORT void cef_string_multimap_clear(cef_string_multimap_t map); 94 | 95 | /// 96 | // Free the string multimap. 97 | /// 98 | CEF_EXPORT void cef_string_multimap_free(cef_string_multimap_t map); 99 | 100 | 101 | #ifdef __cplusplus 102 | } 103 | #endif 104 | 105 | #endif // CEF_INCLUDE_INTERNAL_CEF_STRING_MULTIMAP_H_ 106 | -------------------------------------------------------------------------------- /cef/linux/include/internal/cef_time.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011 Marshall A. Greenblatt. All rights reserved. 2 | // 3 | // Redistribution and use in source and binary forms, with or without 4 | // modification, are permitted provided that the following conditions are 5 | // met: 6 | // 7 | // * Redistributions of source code must retain the above copyright 8 | // notice, this list of conditions and the following disclaimer. 9 | // * Redistributions in binary form must reproduce the above 10 | // copyright notice, this list of conditions and the following disclaimer 11 | // in the documentation and/or other materials provided with the 12 | // distribution. 13 | // * Neither the name of Google Inc. nor the name Chromium Embedded 14 | // Framework nor the names of its contributors may be used to endorse 15 | // or promote products derived from this software without specific prior 16 | // written permission. 17 | // 18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 19 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 20 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 21 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 22 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 23 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 24 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | 30 | #ifndef CEF_INCLUDE_INTERNAL_CEF_TIME_H_ 31 | #define CEF_INCLUDE_INTERNAL_CEF_TIME_H_ 32 | #pragma once 33 | 34 | #ifdef __cplusplus 35 | extern "C" { 36 | #endif 37 | 38 | #include "include/internal/cef_export.h" 39 | #include 40 | 41 | /// 42 | // Time information. Values should always be in UTC. 43 | /// 44 | typedef struct _cef_time_t { 45 | int year; // Four digit year "2007" 46 | int month; // 1-based month (values 1 = January, etc.) 47 | int day_of_week; // 0-based day of week (0 = Sunday, etc.) 48 | int day_of_month; // 1-based day of month (1-31) 49 | int hour; // Hour within the current day (0-23) 50 | int minute; // Minute within the current hour (0-59) 51 | int second; // Second within the current minute (0-59 plus leap 52 | // seconds which may take it up to 60). 53 | int millisecond; // Milliseconds within the current second (0-999) 54 | } cef_time_t; 55 | 56 | /// 57 | // Converts cef_time_t to/from time_t. Returns true (1) on success and false (0) 58 | // on failure. 59 | /// 60 | CEF_EXPORT int cef_time_to_timet(const cef_time_t* cef_time, time_t* time); 61 | CEF_EXPORT int cef_time_from_timet(time_t time, cef_time_t* cef_time); 62 | 63 | /// 64 | // Converts cef_time_t to/from a double which is the number of seconds since 65 | // epoch (Jan 1, 1970). Webkit uses this format to represent time. A value of 0 66 | // means "not initialized". Returns true (1) on success and false (0) on 67 | // failure. 68 | /// 69 | CEF_EXPORT int cef_time_to_doublet(const cef_time_t* cef_time, double* time); 70 | CEF_EXPORT int cef_time_from_doublet(double time, cef_time_t* cef_time); 71 | 72 | /// 73 | // Retrieve the current system time. 74 | // 75 | CEF_EXPORT int cef_time_now(cef_time_t* cef_time); 76 | 77 | /// 78 | // Retrieve the delta in milliseconds between two time values. 79 | // 80 | CEF_EXPORT int cef_time_delta(const cef_time_t* cef_time1, 81 | const cef_time_t* cef_time2, 82 | long long* delta); 83 | 84 | #ifdef __cplusplus 85 | } 86 | #endif 87 | 88 | #endif // CEF_INCLUDE_INTERNAL_CEF_TIME_H_ 89 | -------------------------------------------------------------------------------- /cef/linux/include/internal/cef_types_linux.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2014 Marshall A. Greenblatt. All rights reserved. 2 | // 3 | // Redistribution and use in source and binary forms, with or without 4 | // modification, are permitted provided that the following conditions are 5 | // met: 6 | // 7 | // * Redistributions of source code must retain the above copyright 8 | // notice, this list of conditions and the following disclaimer. 9 | // * Redistributions in binary form must reproduce the above 10 | // copyright notice, this list of conditions and the following disclaimer 11 | // in the documentation and/or other materials provided with the 12 | // distribution. 13 | // * Neither the name of Google Inc. nor the name Chromium Embedded 14 | // Framework nor the names of its contributors may be used to endorse 15 | // or promote products derived from this software without specific prior 16 | // written permission. 17 | // 18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 19 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 20 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 21 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 22 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 23 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 24 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | 30 | 31 | #ifndef CEF_INCLUDE_INTERNAL_CEF_TYPES_LINUX_H_ 32 | #define CEF_INCLUDE_INTERNAL_CEF_TYPES_LINUX_H_ 33 | #pragma once 34 | 35 | #include "include/internal/cef_build.h" 36 | 37 | #if defined(OS_LINUX) 38 | #include 39 | #include "include/internal/cef_string.h" 40 | 41 | #ifdef __cplusplus 42 | extern "C" { 43 | #endif 44 | 45 | // Handle types. 46 | #define cef_cursor_handle_t GdkCursor* 47 | #define cef_event_handle_t GdkEvent* 48 | #define cef_window_handle_t GtkWidget* 49 | #define cef_text_input_context_t void* 50 | 51 | /// 52 | // Structure representing CefExecuteProcess arguments. 53 | /// 54 | typedef struct _cef_main_args_t { 55 | int argc; 56 | char** argv; 57 | } cef_main_args_t; 58 | 59 | /// 60 | // Class representing window information. 61 | /// 62 | typedef struct _cef_window_info_t { 63 | // Pointer for the parent GtkBox widget. 64 | cef_window_handle_t parent_widget; 65 | 66 | // If window rendering is disabled no browser window will be created. Set 67 | // |parent_widget| to the window that will act as the parent for popup menus, 68 | // dialog boxes, etc. 69 | int window_rendering_disabled; 70 | 71 | // Set to true to enable transparent painting. 72 | int transparent_painting; 73 | 74 | // Pointer for the new browser widget. 75 | cef_window_handle_t widget; 76 | } cef_window_info_t; 77 | 78 | #ifdef __cplusplus 79 | } 80 | #endif 81 | 82 | #endif // OS_LINUX 83 | 84 | #endif // CEF_INCLUDE_INTERNAL_CEF_TYPES_LINUX_H_ 85 | -------------------------------------------------------------------------------- /cef/linux/include/internal/include: -------------------------------------------------------------------------------- 1 | ../../include -------------------------------------------------------------------------------- /cef/linux/include/wrapper/cef_byte_read_handler.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012 Marshall A. Greenblatt. All rights reserved. 2 | // 3 | // Redistribution and use in source and binary forms, with or without 4 | // modification, are permitted provided that the following conditions are 5 | // met: 6 | // 7 | // * Redistributions of source code must retain the above copyright 8 | // notice, this list of conditions and the following disclaimer. 9 | // * Redistributions in binary form must reproduce the above 10 | // copyright notice, this list of conditions and the following disclaimer 11 | // in the documentation and/or other materials provided with the 12 | // distribution. 13 | // * Neither the name of Google Inc. nor the name Chromium Embedded 14 | // Framework nor the names of its contributors may be used to endorse 15 | // or promote products derived from this software without specific prior 16 | // written permission. 17 | // 18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 19 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 20 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 21 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 22 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 23 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 24 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | // 30 | // --------------------------------------------------------------------------- 31 | // 32 | // The contents of this file are only available to applications that link 33 | // against the libcef_dll_wrapper target. 34 | // 35 | 36 | #ifndef CEF_INCLUDE_WRAPPER_CEF_BYTE_READ_HANDLER_H_ 37 | #define CEF_INCLUDE_WRAPPER_CEF_BYTE_READ_HANDLER_H_ 38 | #pragma once 39 | 40 | #include "include/cef_base.h" 41 | #include "include/cef_stream.h" 42 | 43 | /// 44 | // Thread safe implementation of the CefReadHandler class for reading an 45 | // in-memory array of bytes. 46 | /// 47 | class CefByteReadHandler : public CefReadHandler { 48 | public: 49 | /// 50 | // Create a new object for reading an array of bytes. An optional |source| 51 | // reference can be kept to keep the underlying data source from being 52 | // released while the reader exists. 53 | /// 54 | CefByteReadHandler(const unsigned char* bytes, 55 | size_t size, 56 | CefRefPtr source); 57 | 58 | // CefReadHandler methods. 59 | virtual size_t Read(void* ptr, size_t size, size_t n) OVERRIDE; 60 | virtual int Seek(int64 offset, int whence) OVERRIDE; 61 | virtual int64 Tell() OVERRIDE; 62 | virtual int Eof() OVERRIDE; 63 | virtual bool MayBlock() OVERRIDE { return false; } 64 | 65 | private: 66 | const unsigned char* bytes_; 67 | int64 size_; 68 | int64 offset_; 69 | CefRefPtr source_; 70 | 71 | IMPLEMENT_REFCOUNTING(CefByteReadHandler); 72 | IMPLEMENT_LOCKING(CefByteReadHandler); 73 | }; 74 | 75 | #endif // CEF_INCLUDE_WRAPPER_CEF_BYTE_READ_HANDLER_H_ 76 | -------------------------------------------------------------------------------- /cef/linux/include/wrapper/cef_stream_resource_handler.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012 Marshall A. Greenblatt. All rights reserved. 2 | // 3 | // Redistribution and use in source and binary forms, with or without 4 | // modification, are permitted provided that the following conditions are 5 | // met: 6 | // 7 | // * Redistributions of source code must retain the above copyright 8 | // notice, this list of conditions and the following disclaimer. 9 | // * Redistributions in binary form must reproduce the above 10 | // copyright notice, this list of conditions and the following disclaimer 11 | // in the documentation and/or other materials provided with the 12 | // distribution. 13 | // * Neither the name of Google Inc. nor the name Chromium Embedded 14 | // Framework nor the names of its contributors may be used to endorse 15 | // or promote products derived from this software without specific prior 16 | // written permission. 17 | // 18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 19 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 20 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 21 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 22 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 23 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 24 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | // 30 | // --------------------------------------------------------------------------- 31 | // 32 | // The contents of this file are only available to applications that link 33 | // against the libcef_dll_wrapper target. 34 | // 35 | 36 | #ifndef CEF_INCLUDE_WRAPPER_CEF_STREAM_RESOURCE_HANDLER_H_ 37 | #define CEF_INCLUDE_WRAPPER_CEF_STREAM_RESOURCE_HANDLER_H_ 38 | #pragma once 39 | 40 | #include "include/cef_base.h" 41 | #include "include/cef_resource_handler.h" 42 | #include "include/cef_response.h" 43 | 44 | class CefStreamReader; 45 | 46 | /// 47 | // Implementation of the CefResourceHandler class for reading from a CefStream. 48 | /// 49 | class CefStreamResourceHandler : public CefResourceHandler { 50 | public: 51 | /// 52 | // Create a new object with default response values. 53 | /// 54 | CefStreamResourceHandler(const CefString& mime_type, 55 | CefRefPtr stream); 56 | /// 57 | // Create a new object with explicit response values. 58 | /// 59 | CefStreamResourceHandler(int status_code, 60 | const CefString& status_text, 61 | const CefString& mime_type, 62 | CefResponse::HeaderMap header_map, 63 | CefRefPtr stream); 64 | 65 | virtual ~CefStreamResourceHandler(); 66 | 67 | // CefResourceHandler methods. 68 | virtual bool ProcessRequest(CefRefPtr request, 69 | CefRefPtr callback) OVERRIDE; 70 | virtual void GetResponseHeaders(CefRefPtr response, 71 | int64& response_length, 72 | CefString& redirectUrl) OVERRIDE; 73 | virtual bool ReadResponse(void* data_out, 74 | int bytes_to_read, 75 | int& bytes_read, 76 | CefRefPtr callback) OVERRIDE; 77 | virtual void Cancel() OVERRIDE; 78 | 79 | private: 80 | void ReadOnFileThread(int bytes_to_read, 81 | CefRefPtr callback); 82 | 83 | const int status_code_; 84 | const CefString status_text_; 85 | const CefString mime_type_; 86 | const CefResponse::HeaderMap header_map_; 87 | const CefRefPtr stream_; 88 | bool read_on_file_thread_; 89 | 90 | class Buffer; 91 | Buffer* buffer_; 92 | #ifndef NDEBUG 93 | // Used in debug builds to verify that |buffer_| isn't being accessed on 94 | // multiple threads at the same time. 95 | bool buffer_owned_by_file_thread_; 96 | #endif 97 | 98 | IMPLEMENT_REFCOUNTING(CefStreamResourceHandler); 99 | }; 100 | 101 | #endif // CEF_INCLUDE_WRAPPER_CEF_STREAM_RESOURCE_HANDLER_H_ 102 | -------------------------------------------------------------------------------- /cef/linux/lib/libcef_dll_wrapper.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/libcef_dll_wrapper.a -------------------------------------------------------------------------------- /cef/linux/lib/libcef_dll_wrapper/libcef_dll/cpptoc/app_cpptoc.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/libcef_dll_wrapper/libcef_dll/cpptoc/app_cpptoc.o -------------------------------------------------------------------------------- /cef/linux/lib/libcef_dll_wrapper/libcef_dll/cpptoc/browser_process_handler_cpptoc.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/libcef_dll_wrapper/libcef_dll/cpptoc/browser_process_handler_cpptoc.o -------------------------------------------------------------------------------- /cef/linux/lib/libcef_dll_wrapper/libcef_dll/cpptoc/client_cpptoc.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/libcef_dll_wrapper/libcef_dll/cpptoc/client_cpptoc.o -------------------------------------------------------------------------------- /cef/linux/lib/libcef_dll_wrapper/libcef_dll/cpptoc/completion_handler_cpptoc.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/libcef_dll_wrapper/libcef_dll/cpptoc/completion_handler_cpptoc.o -------------------------------------------------------------------------------- /cef/linux/lib/libcef_dll_wrapper/libcef_dll/cpptoc/context_menu_handler_cpptoc.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/libcef_dll_wrapper/libcef_dll/cpptoc/context_menu_handler_cpptoc.o -------------------------------------------------------------------------------- /cef/linux/lib/libcef_dll_wrapper/libcef_dll/cpptoc/cookie_visitor_cpptoc.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/libcef_dll_wrapper/libcef_dll/cpptoc/cookie_visitor_cpptoc.o -------------------------------------------------------------------------------- /cef/linux/lib/libcef_dll_wrapper/libcef_dll/cpptoc/dialog_handler_cpptoc.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/libcef_dll_wrapper/libcef_dll/cpptoc/dialog_handler_cpptoc.o -------------------------------------------------------------------------------- /cef/linux/lib/libcef_dll_wrapper/libcef_dll/cpptoc/display_handler_cpptoc.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/libcef_dll_wrapper/libcef_dll/cpptoc/display_handler_cpptoc.o -------------------------------------------------------------------------------- /cef/linux/lib/libcef_dll_wrapper/libcef_dll/cpptoc/domevent_listener_cpptoc.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/libcef_dll_wrapper/libcef_dll/cpptoc/domevent_listener_cpptoc.o -------------------------------------------------------------------------------- /cef/linux/lib/libcef_dll_wrapper/libcef_dll/cpptoc/domvisitor_cpptoc.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/libcef_dll_wrapper/libcef_dll/cpptoc/domvisitor_cpptoc.o -------------------------------------------------------------------------------- /cef/linux/lib/libcef_dll_wrapper/libcef_dll/cpptoc/download_handler_cpptoc.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/libcef_dll_wrapper/libcef_dll/cpptoc/download_handler_cpptoc.o -------------------------------------------------------------------------------- /cef/linux/lib/libcef_dll_wrapper/libcef_dll/cpptoc/drag_handler_cpptoc.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/libcef_dll_wrapper/libcef_dll/cpptoc/drag_handler_cpptoc.o -------------------------------------------------------------------------------- /cef/linux/lib/libcef_dll_wrapper/libcef_dll/cpptoc/end_tracing_callback_cpptoc.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/libcef_dll_wrapper/libcef_dll/cpptoc/end_tracing_callback_cpptoc.o -------------------------------------------------------------------------------- /cef/linux/lib/libcef_dll_wrapper/libcef_dll/cpptoc/focus_handler_cpptoc.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/libcef_dll_wrapper/libcef_dll/cpptoc/focus_handler_cpptoc.o -------------------------------------------------------------------------------- /cef/linux/lib/libcef_dll_wrapper/libcef_dll/cpptoc/geolocation_handler_cpptoc.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/libcef_dll_wrapper/libcef_dll/cpptoc/geolocation_handler_cpptoc.o -------------------------------------------------------------------------------- /cef/linux/lib/libcef_dll_wrapper/libcef_dll/cpptoc/get_geolocation_callback_cpptoc.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/libcef_dll_wrapper/libcef_dll/cpptoc/get_geolocation_callback_cpptoc.o -------------------------------------------------------------------------------- /cef/linux/lib/libcef_dll_wrapper/libcef_dll/cpptoc/jsdialog_handler_cpptoc.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/libcef_dll_wrapper/libcef_dll/cpptoc/jsdialog_handler_cpptoc.o -------------------------------------------------------------------------------- /cef/linux/lib/libcef_dll_wrapper/libcef_dll/cpptoc/keyboard_handler_cpptoc.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/libcef_dll_wrapper/libcef_dll/cpptoc/keyboard_handler_cpptoc.o -------------------------------------------------------------------------------- /cef/linux/lib/libcef_dll_wrapper/libcef_dll/cpptoc/life_span_handler_cpptoc.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/libcef_dll_wrapper/libcef_dll/cpptoc/life_span_handler_cpptoc.o -------------------------------------------------------------------------------- /cef/linux/lib/libcef_dll_wrapper/libcef_dll/cpptoc/load_handler_cpptoc.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/libcef_dll_wrapper/libcef_dll/cpptoc/load_handler_cpptoc.o -------------------------------------------------------------------------------- /cef/linux/lib/libcef_dll_wrapper/libcef_dll/cpptoc/read_handler_cpptoc.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/libcef_dll_wrapper/libcef_dll/cpptoc/read_handler_cpptoc.o -------------------------------------------------------------------------------- /cef/linux/lib/libcef_dll_wrapper/libcef_dll/cpptoc/render_handler_cpptoc.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/libcef_dll_wrapper/libcef_dll/cpptoc/render_handler_cpptoc.o -------------------------------------------------------------------------------- /cef/linux/lib/libcef_dll_wrapper/libcef_dll/cpptoc/render_process_handler_cpptoc.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/libcef_dll_wrapper/libcef_dll/cpptoc/render_process_handler_cpptoc.o -------------------------------------------------------------------------------- /cef/linux/lib/libcef_dll_wrapper/libcef_dll/cpptoc/request_context_handler_cpptoc.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/libcef_dll_wrapper/libcef_dll/cpptoc/request_context_handler_cpptoc.o -------------------------------------------------------------------------------- /cef/linux/lib/libcef_dll_wrapper/libcef_dll/cpptoc/request_handler_cpptoc.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/libcef_dll_wrapper/libcef_dll/cpptoc/request_handler_cpptoc.o -------------------------------------------------------------------------------- /cef/linux/lib/libcef_dll_wrapper/libcef_dll/cpptoc/resource_bundle_handler_cpptoc.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/libcef_dll_wrapper/libcef_dll/cpptoc/resource_bundle_handler_cpptoc.o -------------------------------------------------------------------------------- /cef/linux/lib/libcef_dll_wrapper/libcef_dll/cpptoc/resource_handler_cpptoc.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/libcef_dll_wrapper/libcef_dll/cpptoc/resource_handler_cpptoc.o -------------------------------------------------------------------------------- /cef/linux/lib/libcef_dll_wrapper/libcef_dll/cpptoc/run_file_dialog_callback_cpptoc.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/libcef_dll_wrapper/libcef_dll/cpptoc/run_file_dialog_callback_cpptoc.o -------------------------------------------------------------------------------- /cef/linux/lib/libcef_dll_wrapper/libcef_dll/cpptoc/scheme_handler_factory_cpptoc.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/libcef_dll_wrapper/libcef_dll/cpptoc/scheme_handler_factory_cpptoc.o -------------------------------------------------------------------------------- /cef/linux/lib/libcef_dll_wrapper/libcef_dll/cpptoc/string_visitor_cpptoc.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/libcef_dll_wrapper/libcef_dll/cpptoc/string_visitor_cpptoc.o -------------------------------------------------------------------------------- /cef/linux/lib/libcef_dll_wrapper/libcef_dll/cpptoc/task_cpptoc.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/libcef_dll_wrapper/libcef_dll/cpptoc/task_cpptoc.o -------------------------------------------------------------------------------- /cef/linux/lib/libcef_dll_wrapper/libcef_dll/cpptoc/urlrequest_client_cpptoc.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/libcef_dll_wrapper/libcef_dll/cpptoc/urlrequest_client_cpptoc.o -------------------------------------------------------------------------------- /cef/linux/lib/libcef_dll_wrapper/libcef_dll/cpptoc/v8accessor_cpptoc.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/libcef_dll_wrapper/libcef_dll/cpptoc/v8accessor_cpptoc.o -------------------------------------------------------------------------------- /cef/linux/lib/libcef_dll_wrapper/libcef_dll/cpptoc/v8handler_cpptoc.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/libcef_dll_wrapper/libcef_dll/cpptoc/v8handler_cpptoc.o -------------------------------------------------------------------------------- /cef/linux/lib/libcef_dll_wrapper/libcef_dll/cpptoc/web_plugin_info_visitor_cpptoc.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/libcef_dll_wrapper/libcef_dll/cpptoc/web_plugin_info_visitor_cpptoc.o -------------------------------------------------------------------------------- /cef/linux/lib/libcef_dll_wrapper/libcef_dll/cpptoc/web_plugin_unstable_callback_cpptoc.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/libcef_dll_wrapper/libcef_dll/cpptoc/web_plugin_unstable_callback_cpptoc.o -------------------------------------------------------------------------------- /cef/linux/lib/libcef_dll_wrapper/libcef_dll/cpptoc/write_handler_cpptoc.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/libcef_dll_wrapper/libcef_dll/cpptoc/write_handler_cpptoc.o -------------------------------------------------------------------------------- /cef/linux/lib/libcef_dll_wrapper/libcef_dll/ctocpp/allow_certificate_error_callback_ctocpp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/libcef_dll_wrapper/libcef_dll/ctocpp/allow_certificate_error_callback_ctocpp.o -------------------------------------------------------------------------------- /cef/linux/lib/libcef_dll_wrapper/libcef_dll/ctocpp/auth_callback_ctocpp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/libcef_dll_wrapper/libcef_dll/ctocpp/auth_callback_ctocpp.o -------------------------------------------------------------------------------- /cef/linux/lib/libcef_dll_wrapper/libcef_dll/ctocpp/before_download_callback_ctocpp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/libcef_dll_wrapper/libcef_dll/ctocpp/before_download_callback_ctocpp.o -------------------------------------------------------------------------------- /cef/linux/lib/libcef_dll_wrapper/libcef_dll/ctocpp/binary_value_ctocpp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/libcef_dll_wrapper/libcef_dll/ctocpp/binary_value_ctocpp.o -------------------------------------------------------------------------------- /cef/linux/lib/libcef_dll_wrapper/libcef_dll/ctocpp/browser_ctocpp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/libcef_dll_wrapper/libcef_dll/ctocpp/browser_ctocpp.o -------------------------------------------------------------------------------- /cef/linux/lib/libcef_dll_wrapper/libcef_dll/ctocpp/browser_host_ctocpp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/libcef_dll_wrapper/libcef_dll/ctocpp/browser_host_ctocpp.o -------------------------------------------------------------------------------- /cef/linux/lib/libcef_dll_wrapper/libcef_dll/ctocpp/callback_ctocpp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/libcef_dll_wrapper/libcef_dll/ctocpp/callback_ctocpp.o -------------------------------------------------------------------------------- /cef/linux/lib/libcef_dll_wrapper/libcef_dll/ctocpp/command_line_ctocpp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/libcef_dll_wrapper/libcef_dll/ctocpp/command_line_ctocpp.o -------------------------------------------------------------------------------- /cef/linux/lib/libcef_dll_wrapper/libcef_dll/ctocpp/context_menu_params_ctocpp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/libcef_dll_wrapper/libcef_dll/ctocpp/context_menu_params_ctocpp.o -------------------------------------------------------------------------------- /cef/linux/lib/libcef_dll_wrapper/libcef_dll/ctocpp/cookie_manager_ctocpp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/libcef_dll_wrapper/libcef_dll/ctocpp/cookie_manager_ctocpp.o -------------------------------------------------------------------------------- /cef/linux/lib/libcef_dll_wrapper/libcef_dll/ctocpp/dictionary_value_ctocpp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/libcef_dll_wrapper/libcef_dll/ctocpp/dictionary_value_ctocpp.o -------------------------------------------------------------------------------- /cef/linux/lib/libcef_dll_wrapper/libcef_dll/ctocpp/domdocument_ctocpp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/libcef_dll_wrapper/libcef_dll/ctocpp/domdocument_ctocpp.o -------------------------------------------------------------------------------- /cef/linux/lib/libcef_dll_wrapper/libcef_dll/ctocpp/domevent_ctocpp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/libcef_dll_wrapper/libcef_dll/ctocpp/domevent_ctocpp.o -------------------------------------------------------------------------------- /cef/linux/lib/libcef_dll_wrapper/libcef_dll/ctocpp/domnode_ctocpp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/libcef_dll_wrapper/libcef_dll/ctocpp/domnode_ctocpp.o -------------------------------------------------------------------------------- /cef/linux/lib/libcef_dll_wrapper/libcef_dll/ctocpp/download_item_callback_ctocpp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/libcef_dll_wrapper/libcef_dll/ctocpp/download_item_callback_ctocpp.o -------------------------------------------------------------------------------- /cef/linux/lib/libcef_dll_wrapper/libcef_dll/ctocpp/download_item_ctocpp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/libcef_dll_wrapper/libcef_dll/ctocpp/download_item_ctocpp.o -------------------------------------------------------------------------------- /cef/linux/lib/libcef_dll_wrapper/libcef_dll/ctocpp/drag_data_ctocpp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/libcef_dll_wrapper/libcef_dll/ctocpp/drag_data_ctocpp.o -------------------------------------------------------------------------------- /cef/linux/lib/libcef_dll_wrapper/libcef_dll/ctocpp/file_dialog_callback_ctocpp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/libcef_dll_wrapper/libcef_dll/ctocpp/file_dialog_callback_ctocpp.o -------------------------------------------------------------------------------- /cef/linux/lib/libcef_dll_wrapper/libcef_dll/ctocpp/frame_ctocpp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/libcef_dll_wrapper/libcef_dll/ctocpp/frame_ctocpp.o -------------------------------------------------------------------------------- /cef/linux/lib/libcef_dll_wrapper/libcef_dll/ctocpp/geolocation_callback_ctocpp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/libcef_dll_wrapper/libcef_dll/ctocpp/geolocation_callback_ctocpp.o -------------------------------------------------------------------------------- /cef/linux/lib/libcef_dll_wrapper/libcef_dll/ctocpp/jsdialog_callback_ctocpp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/libcef_dll_wrapper/libcef_dll/ctocpp/jsdialog_callback_ctocpp.o -------------------------------------------------------------------------------- /cef/linux/lib/libcef_dll_wrapper/libcef_dll/ctocpp/list_value_ctocpp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/libcef_dll_wrapper/libcef_dll/ctocpp/list_value_ctocpp.o -------------------------------------------------------------------------------- /cef/linux/lib/libcef_dll_wrapper/libcef_dll/ctocpp/menu_model_ctocpp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/libcef_dll_wrapper/libcef_dll/ctocpp/menu_model_ctocpp.o -------------------------------------------------------------------------------- /cef/linux/lib/libcef_dll_wrapper/libcef_dll/ctocpp/post_data_ctocpp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/libcef_dll_wrapper/libcef_dll/ctocpp/post_data_ctocpp.o -------------------------------------------------------------------------------- /cef/linux/lib/libcef_dll_wrapper/libcef_dll/ctocpp/post_data_element_ctocpp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/libcef_dll_wrapper/libcef_dll/ctocpp/post_data_element_ctocpp.o -------------------------------------------------------------------------------- /cef/linux/lib/libcef_dll_wrapper/libcef_dll/ctocpp/process_message_ctocpp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/libcef_dll_wrapper/libcef_dll/ctocpp/process_message_ctocpp.o -------------------------------------------------------------------------------- /cef/linux/lib/libcef_dll_wrapper/libcef_dll/ctocpp/quota_callback_ctocpp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/libcef_dll_wrapper/libcef_dll/ctocpp/quota_callback_ctocpp.o -------------------------------------------------------------------------------- /cef/linux/lib/libcef_dll_wrapper/libcef_dll/ctocpp/request_context_ctocpp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/libcef_dll_wrapper/libcef_dll/ctocpp/request_context_ctocpp.o -------------------------------------------------------------------------------- /cef/linux/lib/libcef_dll_wrapper/libcef_dll/ctocpp/request_ctocpp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/libcef_dll_wrapper/libcef_dll/ctocpp/request_ctocpp.o -------------------------------------------------------------------------------- /cef/linux/lib/libcef_dll_wrapper/libcef_dll/ctocpp/response_ctocpp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/libcef_dll_wrapper/libcef_dll/ctocpp/response_ctocpp.o -------------------------------------------------------------------------------- /cef/linux/lib/libcef_dll_wrapper/libcef_dll/ctocpp/scheme_registrar_ctocpp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/libcef_dll_wrapper/libcef_dll/ctocpp/scheme_registrar_ctocpp.o -------------------------------------------------------------------------------- /cef/linux/lib/libcef_dll_wrapper/libcef_dll/ctocpp/stream_reader_ctocpp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/libcef_dll_wrapper/libcef_dll/ctocpp/stream_reader_ctocpp.o -------------------------------------------------------------------------------- /cef/linux/lib/libcef_dll_wrapper/libcef_dll/ctocpp/stream_writer_ctocpp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/libcef_dll_wrapper/libcef_dll/ctocpp/stream_writer_ctocpp.o -------------------------------------------------------------------------------- /cef/linux/lib/libcef_dll_wrapper/libcef_dll/ctocpp/task_runner_ctocpp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/libcef_dll_wrapper/libcef_dll/ctocpp/task_runner_ctocpp.o -------------------------------------------------------------------------------- /cef/linux/lib/libcef_dll_wrapper/libcef_dll/ctocpp/urlrequest_ctocpp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/libcef_dll_wrapper/libcef_dll/ctocpp/urlrequest_ctocpp.o -------------------------------------------------------------------------------- /cef/linux/lib/libcef_dll_wrapper/libcef_dll/ctocpp/v8context_ctocpp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/libcef_dll_wrapper/libcef_dll/ctocpp/v8context_ctocpp.o -------------------------------------------------------------------------------- /cef/linux/lib/libcef_dll_wrapper/libcef_dll/ctocpp/v8exception_ctocpp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/libcef_dll_wrapper/libcef_dll/ctocpp/v8exception_ctocpp.o -------------------------------------------------------------------------------- /cef/linux/lib/libcef_dll_wrapper/libcef_dll/ctocpp/v8stack_frame_ctocpp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/libcef_dll_wrapper/libcef_dll/ctocpp/v8stack_frame_ctocpp.o -------------------------------------------------------------------------------- /cef/linux/lib/libcef_dll_wrapper/libcef_dll/ctocpp/v8stack_trace_ctocpp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/libcef_dll_wrapper/libcef_dll/ctocpp/v8stack_trace_ctocpp.o -------------------------------------------------------------------------------- /cef/linux/lib/libcef_dll_wrapper/libcef_dll/ctocpp/v8value_ctocpp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/libcef_dll_wrapper/libcef_dll/ctocpp/v8value_ctocpp.o -------------------------------------------------------------------------------- /cef/linux/lib/libcef_dll_wrapper/libcef_dll/ctocpp/web_plugin_info_ctocpp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/libcef_dll_wrapper/libcef_dll/ctocpp/web_plugin_info_ctocpp.o -------------------------------------------------------------------------------- /cef/linux/lib/libcef_dll_wrapper/libcef_dll/ctocpp/xml_reader_ctocpp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/libcef_dll_wrapper/libcef_dll/ctocpp/xml_reader_ctocpp.o -------------------------------------------------------------------------------- /cef/linux/lib/libcef_dll_wrapper/libcef_dll/ctocpp/zip_reader_ctocpp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/libcef_dll_wrapper/libcef_dll/ctocpp/zip_reader_ctocpp.o -------------------------------------------------------------------------------- /cef/linux/lib/libcef_dll_wrapper/libcef_dll/transfer_util.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/libcef_dll_wrapper/libcef_dll/transfer_util.o -------------------------------------------------------------------------------- /cef/linux/lib/libcef_dll_wrapper/libcef_dll/wrapper/cef_byte_read_handler.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/libcef_dll_wrapper/libcef_dll/wrapper/cef_byte_read_handler.o -------------------------------------------------------------------------------- /cef/linux/lib/libcef_dll_wrapper/libcef_dll/wrapper/cef_message_router.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/libcef_dll_wrapper/libcef_dll/wrapper/cef_message_router.o -------------------------------------------------------------------------------- /cef/linux/lib/libcef_dll_wrapper/libcef_dll/wrapper/cef_stream_resource_handler.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/libcef_dll_wrapper/libcef_dll/wrapper/cef_stream_resource_handler.o -------------------------------------------------------------------------------- /cef/linux/lib/libcef_dll_wrapper/libcef_dll/wrapper/cef_xml_object.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/libcef_dll_wrapper/libcef_dll/wrapper/cef_xml_object.o -------------------------------------------------------------------------------- /cef/linux/lib/libcef_dll_wrapper/libcef_dll/wrapper/cef_zip_archive.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/libcef_dll_wrapper/libcef_dll/wrapper/cef_zip_archive.o -------------------------------------------------------------------------------- /cef/linux/lib/libcef_dll_wrapper/libcef_dll/wrapper/libcef_dll_wrapper.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/libcef_dll_wrapper/libcef_dll/wrapper/libcef_dll_wrapper.o -------------------------------------------------------------------------------- /cef/linux/lib/libcef_dll_wrapper/libcef_dll/wrapper/libcef_dll_wrapper2.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/libcef_dll_wrapper/libcef_dll/wrapper/libcef_dll_wrapper2.o -------------------------------------------------------------------------------- /cef/linux/lib/locales/am.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/locales/am.pak -------------------------------------------------------------------------------- /cef/linux/lib/locales/ar.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/locales/ar.pak -------------------------------------------------------------------------------- /cef/linux/lib/locales/bg.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/locales/bg.pak -------------------------------------------------------------------------------- /cef/linux/lib/locales/bn.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/locales/bn.pak -------------------------------------------------------------------------------- /cef/linux/lib/locales/ca.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/locales/ca.pak -------------------------------------------------------------------------------- /cef/linux/lib/locales/cs.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/locales/cs.pak -------------------------------------------------------------------------------- /cef/linux/lib/locales/da.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/locales/da.pak -------------------------------------------------------------------------------- /cef/linux/lib/locales/de.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/locales/de.pak -------------------------------------------------------------------------------- /cef/linux/lib/locales/el.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/locales/el.pak -------------------------------------------------------------------------------- /cef/linux/lib/locales/en-GB.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/locales/en-GB.pak -------------------------------------------------------------------------------- /cef/linux/lib/locales/en-US.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/locales/en-US.pak -------------------------------------------------------------------------------- /cef/linux/lib/locales/es-419.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/locales/es-419.pak -------------------------------------------------------------------------------- /cef/linux/lib/locales/es.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/locales/es.pak -------------------------------------------------------------------------------- /cef/linux/lib/locales/et.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/locales/et.pak -------------------------------------------------------------------------------- /cef/linux/lib/locales/fa.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/locales/fa.pak -------------------------------------------------------------------------------- /cef/linux/lib/locales/fi.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/locales/fi.pak -------------------------------------------------------------------------------- /cef/linux/lib/locales/fil.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/locales/fil.pak -------------------------------------------------------------------------------- /cef/linux/lib/locales/fr.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/locales/fr.pak -------------------------------------------------------------------------------- /cef/linux/lib/locales/gu.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/locales/gu.pak -------------------------------------------------------------------------------- /cef/linux/lib/locales/he.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/locales/he.pak -------------------------------------------------------------------------------- /cef/linux/lib/locales/hi.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/locales/hi.pak -------------------------------------------------------------------------------- /cef/linux/lib/locales/hr.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/locales/hr.pak -------------------------------------------------------------------------------- /cef/linux/lib/locales/hu.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/locales/hu.pak -------------------------------------------------------------------------------- /cef/linux/lib/locales/id.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/locales/id.pak -------------------------------------------------------------------------------- /cef/linux/lib/locales/it.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/locales/it.pak -------------------------------------------------------------------------------- /cef/linux/lib/locales/ja.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/locales/ja.pak -------------------------------------------------------------------------------- /cef/linux/lib/locales/kn.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/locales/kn.pak -------------------------------------------------------------------------------- /cef/linux/lib/locales/ko.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/locales/ko.pak -------------------------------------------------------------------------------- /cef/linux/lib/locales/libffmpegsumo.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/locales/libffmpegsumo.so -------------------------------------------------------------------------------- /cef/linux/lib/locales/linker.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/locales/linker.lock -------------------------------------------------------------------------------- /cef/linux/lib/locales/lt.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/locales/lt.pak -------------------------------------------------------------------------------- /cef/linux/lib/locales/lv.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/locales/lv.pak -------------------------------------------------------------------------------- /cef/linux/lib/locales/ml.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/locales/ml.pak -------------------------------------------------------------------------------- /cef/linux/lib/locales/mr.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/locales/mr.pak -------------------------------------------------------------------------------- /cef/linux/lib/locales/ms.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/locales/ms.pak -------------------------------------------------------------------------------- /cef/linux/lib/locales/nb.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/locales/nb.pak -------------------------------------------------------------------------------- /cef/linux/lib/locales/nl.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/locales/nl.pak -------------------------------------------------------------------------------- /cef/linux/lib/locales/pl.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/locales/pl.pak -------------------------------------------------------------------------------- /cef/linux/lib/locales/pt-BR.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/locales/pt-BR.pak -------------------------------------------------------------------------------- /cef/linux/lib/locales/pt-PT.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/locales/pt-PT.pak -------------------------------------------------------------------------------- /cef/linux/lib/locales/ro.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/locales/ro.pak -------------------------------------------------------------------------------- /cef/linux/lib/locales/ru.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/locales/ru.pak -------------------------------------------------------------------------------- /cef/linux/lib/locales/sk.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/locales/sk.pak -------------------------------------------------------------------------------- /cef/linux/lib/locales/sl.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/locales/sl.pak -------------------------------------------------------------------------------- /cef/linux/lib/locales/sr.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/locales/sr.pak -------------------------------------------------------------------------------- /cef/linux/lib/locales/sv.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/locales/sv.pak -------------------------------------------------------------------------------- /cef/linux/lib/locales/sw.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/locales/sw.pak -------------------------------------------------------------------------------- /cef/linux/lib/locales/ta.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/locales/ta.pak -------------------------------------------------------------------------------- /cef/linux/lib/locales/te.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/locales/te.pak -------------------------------------------------------------------------------- /cef/linux/lib/locales/th.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/locales/th.pak -------------------------------------------------------------------------------- /cef/linux/lib/locales/tr.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/locales/tr.pak -------------------------------------------------------------------------------- /cef/linux/lib/locales/uk.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/locales/uk.pak -------------------------------------------------------------------------------- /cef/linux/lib/locales/vi.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/locales/vi.pak -------------------------------------------------------------------------------- /cef/linux/lib/locales/zh-CN.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/locales/zh-CN.pak -------------------------------------------------------------------------------- /cef/linux/lib/locales/zh-TW.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/cef/linux/lib/locales/zh-TW.pak -------------------------------------------------------------------------------- /examples/simple_example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andmcgregor/cefgui/7372585bcfbba8eee5c5c4346682ca25729667db/examples/simple_example -------------------------------------------------------------------------------- /examples/simple_example.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #include 4 | #include 5 | #include 6 | 7 | #include "../include/cefgui.h" 8 | 9 | Cefgui* cefgui; 10 | 11 | void display(GLFWwindow* window) 12 | { 13 | glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); 14 | 15 | // draw browser to screen 16 | cefgui->draw(); 17 | 18 | glfwSwapBuffers(window); 19 | glfwPollEvents(); 20 | } 21 | 22 | void reshape(GLFWwindow* window, int w, int h) 23 | { 24 | // set browser size 25 | cefgui->reshape(w, h); 26 | glViewport(0, 0, (GLsizei) w, (GLsizei) h); 27 | } 28 | 29 | void mouse(GLFWwindow* window, int btn, int state, int mods) 30 | { 31 | // send mouse click to browser 32 | 33 | cefgui->mouseClick(btn, GLFW_PRESS); 34 | cefgui->mouseClick(btn, GLFW_RELEASE); 35 | } 36 | 37 | void motion(GLFWwindow* window, double x, double y) 38 | { 39 | // send mouse movement to browser 40 | cefgui->mouseMove((int) x, (int) y); 41 | } 42 | 43 | void keyboard(GLFWwindow* window, int key, int scancode, int action, int mods) 44 | { 45 | // send key press to browser 46 | cefgui->keyPress(key); 47 | } 48 | 49 | int main(int argc, char** argv) 50 | { 51 | // initialize cefgui 52 | cefgui = initCefgui(argc, argv); 53 | 54 | if (!glfwInit()) 55 | exit(EXIT_FAILURE); 56 | 57 | glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3); 58 | glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 2); 59 | glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GL_TRUE); 60 | glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE); 61 | 62 | GLFWwindow* window = glfwCreateWindow(1000, 1000, "simple example", NULL, NULL); 63 | 64 | glfwMakeContextCurrent(window); 65 | 66 | glfwSetFramebufferSizeCallback(window, reshape); 67 | glfwSetCursorPosCallback(window, motion); 68 | glfwSetMouseButtonCallback(window, mouse); 69 | glfwSetKeyCallback(window, keyboard); 70 | 71 | glClearColor(0.0, 0.0, 0.0, 0.0); 72 | 73 | glewExperimental = true; 74 | glewInit(); 75 | 76 | // set window size & url 77 | cefgui->reshape(1000, 1000); 78 | cefgui->load("http://www.google.com"); 79 | 80 | while (!glfwWindowShouldClose(window)) { 81 | display(window); 82 | } 83 | 84 | return 0; 85 | } 86 | -------------------------------------------------------------------------------- /include/browser_client.h: -------------------------------------------------------------------------------- 1 | #include "../cef/linux/include/cef_client.h" 2 | 3 | #include "render_handler.h" 4 | 5 | #ifndef BROWSER_CLIENT_H 6 | #define BROWSER_CLIENT_H 7 | 8 | class BrowserClient : public CefClient { 9 | public: 10 | BrowserClient(RenderHandler*); 11 | 12 | virtual CefRefPtr GetRenderHandler(); 13 | 14 | private: 15 | CefRefPtr handler; 16 | 17 | IMPLEMENT_REFCOUNTING(BrowserClient); 18 | 19 | }; 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /include/cefgui.h: -------------------------------------------------------------------------------- 1 | #include "../cef/linux/include/cef_app.h" 2 | 3 | #include "browser_client.h" 4 | #include "render_handler.h" 5 | 6 | #ifndef CEFGUI_H 7 | #define CEFGUI_H 8 | 9 | class Cefgui; 10 | 11 | Cefgui* initCefgui(int argc, char** argv); 12 | 13 | class Cefgui { 14 | public: 15 | Cefgui(); 16 | 17 | void load(const char*); 18 | void draw(void); 19 | void reshape(int, int); 20 | 21 | void mouseMove(int, int); 22 | void mouseClick(int, int); 23 | void keyPress(int); 24 | 25 | void executeJS(const char*); 26 | 27 | private: 28 | int mouseX, mouseY; 29 | 30 | CefRefPtr browser; 31 | CefRefPtr client; 32 | 33 | RenderHandler* renderHandler; 34 | 35 | }; 36 | 37 | #endif 38 | -------------------------------------------------------------------------------- /include/render_handler.h: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | #include 5 | 6 | #include "../cef/linux/include/cef_render_handler.h" 7 | 8 | #ifndef RENDER_HANDLER_H 9 | #define RENDER_HANDLER_H 10 | 11 | class RenderHandler : public CefRenderHandler { 12 | public: 13 | RenderHandler(); 14 | 15 | bool initialized; 16 | 17 | void init(void); 18 | void draw(void); 19 | void reshape(int, int); 20 | 21 | bool GetViewRect(CefRefPtr browser, CefRect &rect); 22 | 23 | void OnPaint(CefRefPtr browser, 24 | PaintElementType type, 25 | const RectList &dirtyRects, 26 | const void* buffer, 27 | int width, 28 | int height); 29 | 30 | private: 31 | int w, h; 32 | 33 | GLuint program, vao, vbo, texture, positionLoc; 34 | 35 | GLuint compileShader(GLenum, const char*); 36 | 37 | IMPLEMENT_REFCOUNTING(RenderHandler); 38 | 39 | }; 40 | 41 | #endif 42 | -------------------------------------------------------------------------------- /shaders/gui.frag: -------------------------------------------------------------------------------- 1 | #version 150 2 | 3 | in vec2 Texcoord; 4 | 5 | out vec4 outputColor; 6 | 7 | uniform sampler2D tex; 8 | 9 | void main() { 10 | outputColor = texture2D(tex, Texcoord); 11 | if (outputColor.a < 0.1) 12 | { 13 | discard; 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /shaders/gui.vert: -------------------------------------------------------------------------------- 1 | #version 150 2 | 3 | in vec2 position; 4 | 5 | out vec2 Texcoord; 6 | 7 | void main() { 8 | Texcoord = (vec2(position.x + 1.0f, position.y - 1.0f) * 0.5); 9 | Texcoord.y *= -1.0f; 10 | gl_Position = vec4(position.x, position.y, 0.0f, 1.0f); 11 | } 12 | -------------------------------------------------------------------------------- /src/browser_client.cpp: -------------------------------------------------------------------------------- 1 | #include "../include/browser_client.h" 2 | 3 | BrowserClient::BrowserClient(RenderHandler* renderHandler) 4 | { 5 | handler = renderHandler; 6 | } 7 | 8 | CefRefPtr BrowserClient::GetRenderHandler() { 9 | return handler; 10 | }; 11 | -------------------------------------------------------------------------------- /src/cefgui.cpp: -------------------------------------------------------------------------------- 1 | #include "../include/cefgui.h" 2 | 3 | Cefgui* initCefgui(int argc, char** argv) 4 | { 5 | CefMainArgs args(argc, argv); 6 | CefExecuteProcess(args, nullptr, NULL); 7 | 8 | CefSettings settings; 9 | 10 | // TODO make cross platform 11 | CefString(&settings.locales_dir_path) = "cef/linux/lib/locales"; 12 | 13 | CefInitialize(args, settings, nullptr, NULL); 14 | 15 | return new Cefgui(); 16 | } 17 | 18 | Cefgui::Cefgui() 19 | { 20 | CefWindowInfo windowInfo; 21 | CefBrowserSettings settings; 22 | 23 | windowInfo.SetAsOffScreen(nullptr); 24 | windowInfo.SetTransparentPainting(true); 25 | 26 | renderHandler = new RenderHandler(); 27 | 28 | client = new BrowserClient(renderHandler); 29 | browser = CefBrowserHost::CreateBrowserSync(windowInfo, client.get(), "", settings, nullptr); 30 | } 31 | 32 | void Cefgui::load(const char* url) 33 | { 34 | if (!renderHandler->initialized) 35 | renderHandler->init(); 36 | 37 | browser->GetMainFrame()->LoadURL(url); 38 | } 39 | 40 | void Cefgui::draw(void) 41 | { 42 | CefDoMessageLoopWork(); 43 | renderHandler->draw(); 44 | } 45 | 46 | void Cefgui::reshape(int w, int h) 47 | { 48 | renderHandler->reshape(w, h); 49 | browser->GetHost()->WasResized(); 50 | } 51 | 52 | void Cefgui::mouseMove(int x, int y) 53 | { 54 | mouseX = x; 55 | mouseY = y; 56 | 57 | CefMouseEvent event; 58 | event.x = x; 59 | event.y = y; 60 | 61 | browser->GetHost()->SendMouseMoveEvent(event, false); 62 | } 63 | 64 | void Cefgui::mouseClick(int btn, int state) 65 | { 66 | CefMouseEvent event; 67 | event.x = mouseX; 68 | event.y = mouseY; 69 | 70 | bool mouseUp = state == 0; 71 | CefBrowserHost::MouseButtonType btnType = MBT_LEFT; 72 | browser->GetHost()->SendMouseClickEvent(event, btnType, mouseUp, 1); 73 | } 74 | 75 | void Cefgui::keyPress(int key) 76 | { 77 | CefKeyEvent event; 78 | event.native_key_code = key; 79 | event.type = KEYEVENT_KEYDOWN; 80 | 81 | browser->GetHost()->SendKeyEvent(event); 82 | } 83 | 84 | void Cefgui::executeJS(const char* command) 85 | { 86 | CefRefPtr frame = browser->GetMainFrame(); 87 | frame->ExecuteJavaScript(command, frame->GetURL(), 0); 88 | 89 | // TODO limit frequency of texture updating 90 | CefRect rect; 91 | renderHandler->GetViewRect(browser, rect); 92 | browser->GetHost()->Invalidate(rect, PET_VIEW); 93 | } 94 | -------------------------------------------------------------------------------- /src/render_handler.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include "../include/render_handler.h" 3 | 4 | RenderHandler::RenderHandler() 5 | { 6 | initialized = false; 7 | } 8 | 9 | void RenderHandler::init(void) 10 | { 11 | GLuint vertexShader = compileShader(GL_VERTEX_SHADER, "shaders/gui.vert"); 12 | GLuint fragmentShader = compileShader(GL_FRAGMENT_SHADER, "shaders/gui.frag"); 13 | 14 | program = glCreateProgram(); 15 | 16 | glAttachShader(program, vertexShader); 17 | glAttachShader(program, fragmentShader); 18 | glLinkProgram(program); 19 | glDetachShader(program, vertexShader); 20 | glDetachShader(program, fragmentShader); 21 | 22 | positionLoc = glGetAttribLocation(program, "position"); 23 | 24 | float coords[] = {-1.0,-1.0,-1.0,1.0,1.0,-1.0,1.0,-1.0,-1.0,1.0,1.0,1.0}; 25 | 26 | glGenVertexArrays(1, &vao); 27 | glBindVertexArray(vao); 28 | glGenBuffers(1, &vbo); 29 | glBindBuffer(GL_ARRAY_BUFFER, vbo); 30 | glBufferData(GL_ARRAY_BUFFER, sizeof(coords), coords, GL_STATIC_DRAW); 31 | glEnableVertexAttribArray(positionLoc); 32 | glVertexAttribPointer(positionLoc, 2, GL_FLOAT, GL_FALSE, 0, 0); 33 | glBindBuffer(GL_ARRAY_BUFFER, 0); 34 | glBindVertexArray(0); 35 | 36 | initialized = true; 37 | } 38 | 39 | void RenderHandler::draw(void) 40 | { 41 | glUseProgram(program); 42 | glBindVertexArray(vao); 43 | 44 | glBindBuffer(GL_ARRAY_BUFFER, vbo); 45 | glDrawArrays(GL_TRIANGLES, 0, 6); 46 | glBindBuffer(GL_ARRAY_BUFFER, 0); 47 | 48 | glBindVertexArray(0); 49 | glUseProgram(0); 50 | } 51 | 52 | void RenderHandler::reshape(int w_, int h_) 53 | { 54 | w = w_; 55 | h = h_; 56 | } 57 | 58 | bool RenderHandler::GetViewRect(CefRefPtr browser, CefRect &rect) 59 | { 60 | rect = CefRect(0, 0, w, h); 61 | return true; 62 | } 63 | 64 | void RenderHandler::OnPaint(CefRefPtr browser, 65 | PaintElementType type, 66 | const RectList &dirtyRects, 67 | const void* buffer, 68 | int width, 69 | int height) 70 | { 71 | glBindTexture(GL_TEXTURE_2D, texture); 72 | glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, width, height, 0, GL_BGRA_EXT, GL_UNSIGNED_BYTE, (unsigned char*) buffer); 73 | 74 | glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); 75 | glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); 76 | glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE); 77 | glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE); 78 | 79 | glBindTexture(GL_TEXTURE_2D, 0); 80 | } 81 | 82 | GLuint RenderHandler::compileShader(GLenum shaderType, const char* path) 83 | { 84 | GLuint shader = glCreateShader(shaderType); 85 | 86 | std::ifstream ifs(path); 87 | std::string shaderStr( (std::istreambuf_iterator(ifs) ), 88 | (std::istreambuf_iterator() ) ); 89 | 90 | const char* shaderData = shaderStr.c_str(); 91 | 92 | glShaderSource(shader, 1, &shaderData, NULL); 93 | glCompileShader(shader); 94 | 95 | GLint status; 96 | glGetShaderiv(shader, GL_COMPILE_STATUS, &status); 97 | if (status == GL_FALSE) 98 | printf("SHADER COMPILE ERROR\n"); 99 | 100 | return shader; 101 | } 102 | --------------------------------------------------------------------------------