├── CefBrowser
├── CefBrowserDll.cpp
├── CefBrowserDll.h
├── CefBrowser_browser.vcxproj
├── CefBrowser_browser.vcxproj.filters
├── CefBrowser_browser.vcxproj.user
├── browser
│ ├── BrowserClient.cpp
│ ├── BrowserClient.h
│ ├── BrowserClientApp.cpp
│ ├── BrowserClientApp.h
│ ├── main_message_loop_multithreaded_win.cpp
│ └── main_message_loop_multithreaded_win.h
└── common
│ ├── ClientApp.cpp
│ ├── ClientApp.h
│ ├── main_message_loop.cc
│ ├── main_message_loop.h
│ ├── util_win.cc
│ └── util_win.h
├── CefRender
├── CefBrowser_render.cpp
├── CefBrowser_render.h
├── CefBrowser_render.vcxproj
├── CefBrowser_render.vcxproj.filters
├── CefBrowser_render.vcxproj.user
├── ClientApp.cpp
├── ClientApp.h
├── RenderApp.cpp
├── RenderApp.h
├── V8ExtensionHandler.cpp
└── V8ExtensionHandler.h
├── DuiLib
├── Control
│ ├── UIActiveX.cpp
│ ├── UIActiveX.h
│ ├── UIButton.cpp
│ ├── UIButton.h
│ ├── UIButtonArrow.cpp
│ ├── UIButtonArrow.h
│ ├── UIButtonHtml.cpp
│ ├── UIButtonHtml.h
│ ├── UICalendar.cpp
│ ├── UICalendar.h
│ ├── UICheckBox.cpp
│ ├── UICheckBox.h
│ ├── UICheckBoxArrow.cpp
│ ├── UICheckBoxArrow.h
│ ├── UICombo.cpp
│ ├── UICombo.h
│ ├── UIComboBox.cpp
│ ├── UIComboBox.h
│ ├── UIDateTime.cpp
│ ├── UIDateTime.h
│ ├── UIEdit.cpp
│ ├── UIEdit.h
│ ├── UIFlash.cpp
│ ├── UIFlash.h
│ ├── UIGif.cpp
│ ├── UIGif.h
│ ├── UILabel.cpp
│ ├── UILabel.h
│ ├── UIList.cpp
│ ├── UIList.h
│ ├── UIOption.cpp
│ ├── UIOption.h
│ ├── UIOptionArrow.cpp
│ ├── UIOptionArrow.h
│ ├── UIProgress.cpp
│ ├── UIProgress.h
│ ├── UIRichEdit.cpp
│ ├── UIRichEdit.h
│ ├── UIScrollBar.cpp
│ ├── UIScrollBar.h
│ ├── UISlider.cpp
│ ├── UISlider.h
│ ├── UIText.cpp
│ ├── UIText.h
│ ├── UITreeView.cpp
│ ├── UITreeView.h
│ ├── UIWebBrowser.cpp
│ └── UIWebBrowser.h
├── Core
│ ├── UIBase.cpp
│ ├── UIBase.h
│ ├── UIContainer.cpp
│ ├── UIContainer.h
│ ├── UIControl.cpp
│ ├── UIControl.h
│ ├── UIDefine.h
│ ├── UIDlgBuilder.cpp
│ ├── UIDlgBuilder.h
│ ├── UIManager.cpp
│ ├── UIManager.h
│ ├── UIMarkup.cpp
│ ├── UIMarkup.h
│ ├── UIRender.cpp
│ └── UIRender.h
├── DuiLib.vcxproj
├── DuiLib.vcxproj.filters
├── DuiLib.vcxproj.user
├── Layout
│ ├── UIChildLayout.cpp
│ ├── UIChildLayout.h
│ ├── UIHorizontalLayout.cpp
│ ├── UIHorizontalLayout.h
│ ├── UITabLayout.cpp
│ ├── UITabLayout.h
│ ├── UITileLayout.cpp
│ ├── UITileLayout.h
│ ├── UIVerticalLayout.cpp
│ └── UIVerticalLayout.h
├── ReadMe.txt
├── StdAfx.cpp
├── StdAfx.h
├── UIlib.cpp
├── UIlib.h
├── Utils
│ ├── FlashEventHandler.h
│ ├── UIDelegate.cpp
│ ├── UIDelegate.h
│ ├── UIDelegateUI.cpp
│ ├── UIDelegateUI.h
│ ├── Utils.cpp
│ ├── Utils.h
│ ├── WebBrowserEventHandler.h
│ ├── WinImplBase.cpp
│ ├── WinImplBase.h
│ ├── XUnzip.cpp
│ ├── downloadmgr.h
│ ├── flash11.tlh
│ └── stb_image.c
└── resource.h
├── DuiLib_c.sln
├── README.md
├── bin
├── lib
│ ├── Debug
│ │ ├── d3dcompiler_47.dll
│ │ ├── libGLESv2.dll
│ │ ├── libcef.dll
│ │ ├── libcef.lib
│ │ ├── libegl.dll
│ │ ├── natives_blob.bin
│ │ └── widevinecdmadapter.dll
│ └── Release
│ │ ├── d3dcompiler_47.dll
│ │ ├── libEGL.dll
│ │ ├── libGLESv2.dll
│ │ ├── libcef.dll
│ │ ├── libcef.lib
│ │ ├── natives_blob.bin
│ │ └── widevinecdmadapter.dll
└── pak_resource
│ ├── cef.pak
│ ├── icudtl.dat
│ └── locales
│ └── zh-CN.pak
├── include
├── base
│ ├── cef_atomic_ref_count.h
│ ├── cef_atomicops.h
│ ├── cef_basictypes.h
│ ├── cef_bind.h
│ ├── cef_bind_helpers.h
│ ├── cef_build.h
│ ├── cef_callback.h
│ ├── cef_callback_forward.h
│ ├── cef_callback_helpers.h
│ ├── cef_callback_list.h
│ ├── cef_cancelable_callback.h
│ ├── cef_lock.h
│ ├── cef_logging.h
│ ├── cef_macros.h
│ ├── cef_move.h
│ ├── cef_platform_thread.h
│ ├── cef_ref_counted.h
│ ├── cef_scoped_ptr.h
│ ├── cef_string16.h
│ ├── cef_template_util.h
│ ├── cef_thread_checker.h
│ ├── cef_thread_collision_warner.h
│ ├── cef_trace_event.h
│ ├── cef_tuple.h
│ ├── cef_weak_ptr.h
│ └── internal
│ │ ├── cef_atomicops_x86_msvc.h
│ │ ├── cef_bind_internal.h
│ │ ├── cef_bind_internal_win.h
│ │ ├── cef_callback_internal.h
│ │ ├── cef_lock_impl.h
│ │ ├── cef_raw_scoped_refptr_mismatch_checker.h
│ │ └── cef_thread_checker_impl.h
├── 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_find_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_navigation_entry_capi.h
│ ├── cef_origin_whitelist_capi.h
│ ├── cef_parser_capi.h
│ ├── cef_path_util_capi.h
│ ├── cef_print_handler_capi.h
│ ├── cef_print_settings_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_capi.h
│ ├── cef_resource_bundle_handler_capi.h
│ ├── cef_resource_handler_capi.h
│ ├── cef_response_capi.h
│ ├── cef_response_filter_capi.h
│ ├── cef_scheme_capi.h
│ ├── cef_ssl_info_capi.h
│ ├── cef_stream_capi.h
│ ├── cef_string_visitor_capi.h
│ ├── cef_task_capi.h
│ ├── cef_trace_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_find_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_navigation_entry.h
├── cef_origin_whitelist.h
├── cef_pack_resources.h
├── cef_pack_strings.h
├── cef_parser.h
├── cef_path_util.h
├── cef_print_handler.h
├── cef_print_settings.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.h
├── cef_resource_bundle_handler.h
├── cef_resource_handler.h
├── cef_response.h
├── cef_response_filter.h
├── cef_runnable.h
├── cef_sandbox_win.h
├── cef_scheme.h
├── cef_ssl_info.h
├── cef_stream.h
├── cef_string_visitor.h
├── cef_task.h
├── cef_trace.h
├── cef_urlrequest.h
├── cef_v8.h
├── cef_values.h
├── cef_version.h
├── cef_web_plugin.h
├── cef_xml_reader.h
├── cef_zip_reader.h
├── internal
│ ├── cef_export.h
│ ├── cef_logging_internal.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_thread_internal.h
│ ├── cef_time.h
│ ├── cef_trace_event_internal.h
│ ├── cef_types.h
│ ├── cef_types_win.h
│ ├── cef_types_wrappers.h
│ └── cef_win.h
└── wrapper
│ ├── cef_byte_read_handler.h
│ ├── cef_closure_task.h
│ ├── cef_helpers.h
│ ├── cef_message_router.h
│ ├── cef_resource_manager.h
│ ├── cef_stream_resource_handler.h
│ ├── cef_xml_object.h
│ └── cef_zip_archive.h
├── libcef_dll
├── base
│ ├── cef_atomicops_x86_gcc.cc
│ ├── cef_bind_helpers.cc
│ ├── cef_callback_helpers.cc
│ ├── cef_callback_internal.cc
│ ├── cef_lock.cc
│ ├── cef_lock_impl.cc
│ ├── cef_logging.cc
│ ├── cef_ref_counted.cc
│ ├── cef_string16.cc
│ ├── cef_thread_checker_impl.cc
│ ├── cef_thread_collision_warner.cc
│ └── cef_weak_ptr.cc
├── cpptoc
│ ├── app_cpptoc.cc
│ ├── app_cpptoc.h
│ ├── base_cpptoc.cc
│ ├── base_cpptoc.h
│ ├── browser_process_handler_cpptoc.cc
│ ├── browser_process_handler_cpptoc.h
│ ├── client_cpptoc.cc
│ ├── client_cpptoc.h
│ ├── completion_callback_cpptoc.cc
│ ├── completion_callback_cpptoc.h
│ ├── context_menu_handler_cpptoc.cc
│ ├── context_menu_handler_cpptoc.h
│ ├── cookie_visitor_cpptoc.cc
│ ├── cookie_visitor_cpptoc.h
│ ├── cpptoc.h
│ ├── delete_cookies_callback_cpptoc.cc
│ ├── delete_cookies_callback_cpptoc.h
│ ├── dialog_handler_cpptoc.cc
│ ├── dialog_handler_cpptoc.h
│ ├── display_handler_cpptoc.cc
│ ├── display_handler_cpptoc.h
│ ├── domvisitor_cpptoc.cc
│ ├── domvisitor_cpptoc.h
│ ├── download_handler_cpptoc.cc
│ ├── download_handler_cpptoc.h
│ ├── drag_handler_cpptoc.cc
│ ├── drag_handler_cpptoc.h
│ ├── end_tracing_callback_cpptoc.cc
│ ├── end_tracing_callback_cpptoc.h
│ ├── find_handler_cpptoc.cc
│ ├── find_handler_cpptoc.h
│ ├── focus_handler_cpptoc.cc
│ ├── focus_handler_cpptoc.h
│ ├── geolocation_handler_cpptoc.cc
│ ├── geolocation_handler_cpptoc.h
│ ├── get_geolocation_callback_cpptoc.cc
│ ├── get_geolocation_callback_cpptoc.h
│ ├── jsdialog_handler_cpptoc.cc
│ ├── jsdialog_handler_cpptoc.h
│ ├── keyboard_handler_cpptoc.cc
│ ├── keyboard_handler_cpptoc.h
│ ├── life_span_handler_cpptoc.cc
│ ├── life_span_handler_cpptoc.h
│ ├── load_handler_cpptoc.cc
│ ├── load_handler_cpptoc.h
│ ├── navigation_entry_visitor_cpptoc.cc
│ ├── navigation_entry_visitor_cpptoc.h
│ ├── pdf_print_callback_cpptoc.cc
│ ├── pdf_print_callback_cpptoc.h
│ ├── print_handler_cpptoc.cc
│ ├── print_handler_cpptoc.h
│ ├── read_handler_cpptoc.cc
│ ├── read_handler_cpptoc.h
│ ├── render_handler_cpptoc.cc
│ ├── render_handler_cpptoc.h
│ ├── render_process_handler_cpptoc.cc
│ ├── render_process_handler_cpptoc.h
│ ├── request_context_handler_cpptoc.cc
│ ├── request_context_handler_cpptoc.h
│ ├── request_handler_cpptoc.cc
│ ├── request_handler_cpptoc.h
│ ├── resolve_callback_cpptoc.cc
│ ├── resolve_callback_cpptoc.h
│ ├── resource_bundle_handler_cpptoc.cc
│ ├── resource_bundle_handler_cpptoc.h
│ ├── resource_handler_cpptoc.cc
│ ├── resource_handler_cpptoc.h
│ ├── response_filter_cpptoc.cc
│ ├── response_filter_cpptoc.h
│ ├── run_file_dialog_callback_cpptoc.cc
│ ├── run_file_dialog_callback_cpptoc.h
│ ├── scheme_handler_factory_cpptoc.cc
│ ├── scheme_handler_factory_cpptoc.h
│ ├── set_cookie_callback_cpptoc.cc
│ ├── set_cookie_callback_cpptoc.h
│ ├── string_visitor_cpptoc.cc
│ ├── string_visitor_cpptoc.h
│ ├── task_cpptoc.cc
│ ├── task_cpptoc.h
│ ├── urlrequest_client_cpptoc.cc
│ ├── urlrequest_client_cpptoc.h
│ ├── v8accessor_cpptoc.cc
│ ├── v8accessor_cpptoc.h
│ ├── v8handler_cpptoc.cc
│ ├── v8handler_cpptoc.h
│ ├── web_plugin_info_visitor_cpptoc.cc
│ ├── web_plugin_info_visitor_cpptoc.h
│ ├── web_plugin_unstable_callback_cpptoc.cc
│ ├── web_plugin_unstable_callback_cpptoc.h
│ ├── write_handler_cpptoc.cc
│ └── write_handler_cpptoc.h
├── ctocpp
│ ├── auth_callback_ctocpp.cc
│ ├── auth_callback_ctocpp.h
│ ├── before_download_callback_ctocpp.cc
│ ├── before_download_callback_ctocpp.h
│ ├── binary_value_ctocpp.cc
│ ├── binary_value_ctocpp.h
│ ├── browser_ctocpp.cc
│ ├── browser_ctocpp.h
│ ├── browser_host_ctocpp.cc
│ ├── browser_host_ctocpp.h
│ ├── callback_ctocpp.cc
│ ├── callback_ctocpp.h
│ ├── command_line_ctocpp.cc
│ ├── command_line_ctocpp.h
│ ├── context_menu_params_ctocpp.cc
│ ├── context_menu_params_ctocpp.h
│ ├── cookie_manager_ctocpp.cc
│ ├── cookie_manager_ctocpp.h
│ ├── ctocpp.h
│ ├── dictionary_value_ctocpp.cc
│ ├── dictionary_value_ctocpp.h
│ ├── domdocument_ctocpp.cc
│ ├── domdocument_ctocpp.h
│ ├── domnode_ctocpp.cc
│ ├── domnode_ctocpp.h
│ ├── download_item_callback_ctocpp.cc
│ ├── download_item_callback_ctocpp.h
│ ├── download_item_ctocpp.cc
│ ├── download_item_ctocpp.h
│ ├── drag_data_ctocpp.cc
│ ├── drag_data_ctocpp.h
│ ├── file_dialog_callback_ctocpp.cc
│ ├── file_dialog_callback_ctocpp.h
│ ├── frame_ctocpp.cc
│ ├── frame_ctocpp.h
│ ├── geolocation_callback_ctocpp.cc
│ ├── geolocation_callback_ctocpp.h
│ ├── jsdialog_callback_ctocpp.cc
│ ├── jsdialog_callback_ctocpp.h
│ ├── list_value_ctocpp.cc
│ ├── list_value_ctocpp.h
│ ├── menu_model_ctocpp.cc
│ ├── menu_model_ctocpp.h
│ ├── navigation_entry_ctocpp.cc
│ ├── navigation_entry_ctocpp.h
│ ├── post_data_ctocpp.cc
│ ├── post_data_ctocpp.h
│ ├── post_data_element_ctocpp.cc
│ ├── post_data_element_ctocpp.h
│ ├── print_dialog_callback_ctocpp.cc
│ ├── print_dialog_callback_ctocpp.h
│ ├── print_job_callback_ctocpp.cc
│ ├── print_job_callback_ctocpp.h
│ ├── print_settings_ctocpp.cc
│ ├── print_settings_ctocpp.h
│ ├── process_message_ctocpp.cc
│ ├── process_message_ctocpp.h
│ ├── request_callback_ctocpp.cc
│ ├── request_callback_ctocpp.h
│ ├── request_context_ctocpp.cc
│ ├── request_context_ctocpp.h
│ ├── request_ctocpp.cc
│ ├── request_ctocpp.h
│ ├── resource_bundle_ctocpp.cc
│ ├── resource_bundle_ctocpp.h
│ ├── response_ctocpp.cc
│ ├── response_ctocpp.h
│ ├── run_context_menu_callback_ctocpp.cc
│ ├── run_context_menu_callback_ctocpp.h
│ ├── scheme_registrar_ctocpp.cc
│ ├── scheme_registrar_ctocpp.h
│ ├── sslcert_principal_ctocpp.cc
│ ├── sslcert_principal_ctocpp.h
│ ├── sslinfo_ctocpp.cc
│ ├── sslinfo_ctocpp.h
│ ├── stream_reader_ctocpp.cc
│ ├── stream_reader_ctocpp.h
│ ├── stream_writer_ctocpp.cc
│ ├── stream_writer_ctocpp.h
│ ├── task_runner_ctocpp.cc
│ ├── task_runner_ctocpp.h
│ ├── urlrequest_ctocpp.cc
│ ├── urlrequest_ctocpp.h
│ ├── v8context_ctocpp.cc
│ ├── v8context_ctocpp.h
│ ├── v8exception_ctocpp.cc
│ ├── v8exception_ctocpp.h
│ ├── v8stack_frame_ctocpp.cc
│ ├── v8stack_frame_ctocpp.h
│ ├── v8stack_trace_ctocpp.cc
│ ├── v8stack_trace_ctocpp.h
│ ├── v8value_ctocpp.cc
│ ├── v8value_ctocpp.h
│ ├── value_ctocpp.cc
│ ├── value_ctocpp.h
│ ├── web_plugin_info_ctocpp.cc
│ ├── web_plugin_info_ctocpp.h
│ ├── xml_reader_ctocpp.cc
│ ├── xml_reader_ctocpp.h
│ ├── zip_reader_ctocpp.cc
│ └── zip_reader_ctocpp.h
├── libcef_dll_wrapper.vcxproj
├── libcef_dll_wrapper.vcxproj.filters
├── libcef_dll_wrapper.vcxproj.user
├── resource.h
├── transfer_util.cc
├── transfer_util.h
├── wrapper
│ ├── cef_browser_info_map.h
│ ├── cef_byte_read_handler.cc
│ ├── cef_closure_task.cc
│ ├── cef_message_router.cc
│ ├── cef_resource_manager.cc
│ ├── cef_stream_resource_handler.cc
│ ├── cef_xml_object.cc
│ ├── cef_zip_archive.cc
│ ├── libcef_dll_wrapper.cc
│ └── libcef_dll_wrapper2.cc
└── wrapper_types.h
└── test
├── TestWnd.cpp
├── TestWnd.h
├── UICefBrowser.cpp
├── UICefBrowser.h
├── skin
└── TestWnd.xml
├── test.vcxproj
├── test.vcxproj.filters
└── test.vcxproj.user
/CefBrowser/CefBrowserDll.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/caozhiyi/DuiLib_c/92a26553c2be970015cc3a5d7cbfd5839a89387c/CefBrowser/CefBrowserDll.cpp
--------------------------------------------------------------------------------
/CefBrowser/CefBrowserDll.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/caozhiyi/DuiLib_c/92a26553c2be970015cc3a5d7cbfd5839a89387c/CefBrowser/CefBrowserDll.h
--------------------------------------------------------------------------------
/CefBrowser/CefBrowser_browser.vcxproj.filters:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01}
6 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms
7 |
8 |
9 | {0f10c808-2992-4c8c-8115-199f59ee3610}
10 |
11 |
12 | {9689ed97-fb86-40a5-aa63-1095f2464772}
13 |
14 |
15 | {1e71161f-5ba1-4258-b210-f03539dfe455}
16 |
17 |
18 |
19 |
20 | export
21 |
22 |
23 | browser
24 |
25 |
26 | common
27 |
28 |
29 | browser
30 |
31 |
32 |
33 |
34 | export
35 |
36 |
37 | browser
38 |
39 |
40 | common
41 |
42 |
43 | browser
44 |
45 |
46 |
--------------------------------------------------------------------------------
/CefBrowser/CefBrowser_browser.vcxproj.user:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | $(SolutionDir)build\$(Configuration)\
5 | WindowsLocalDebugger
6 |
7 |
8 | $(SolutionDir)build\$(Configuration)\
9 | WindowsLocalDebugger
10 |
11 |
--------------------------------------------------------------------------------
/CefBrowser/browser/BrowserClient.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/caozhiyi/DuiLib_c/92a26553c2be970015cc3a5d7cbfd5839a89387c/CefBrowser/browser/BrowserClient.cpp
--------------------------------------------------------------------------------
/CefBrowser/browser/BrowserClient.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/caozhiyi/DuiLib_c/92a26553c2be970015cc3a5d7cbfd5839a89387c/CefBrowser/browser/BrowserClient.h
--------------------------------------------------------------------------------
/CefBrowser/browser/BrowserClientApp.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/caozhiyi/DuiLib_c/92a26553c2be970015cc3a5d7cbfd5839a89387c/CefBrowser/browser/BrowserClientApp.cpp
--------------------------------------------------------------------------------
/CefBrowser/browser/BrowserClientApp.h:
--------------------------------------------------------------------------------
1 | #pragma once
2 | #include "../common/ClientApp.h"
3 | namespace DuiLib {
4 | class ClientAppBrowser:
5 | public ClientApp,
6 | public CefBrowserProcessHandler {
7 | public:
8 | // CefApp methods:
9 | virtual CefRefPtr GetBrowserProcessHandler() OVERRIDE;
10 | virtual void OnBeforeCommandLineProcessing(const CefString& process_type, CefRefPtr command_line) OVERRIDE;
11 |
12 | // Include the default reference counting implementation.
13 | IMPLEMENT_REFCOUNTING(ClientAppBrowser);
14 | };
15 | }
16 |
17 |
18 |
--------------------------------------------------------------------------------
/CefBrowser/common/ClientApp.cpp:
--------------------------------------------------------------------------------
1 | #include "ClientApp.h"
2 |
3 | namespace DuiLib {
4 | ClientApp::ClientApp() {
5 |
6 | }
7 |
8 | ClientApp::~ClientApp() {
9 |
10 | }
11 |
12 | ProcessType ClientApp::GetProcessType(CefRefPtr command_line) {
13 | // The command-line flag won't be specified for the browser process.
14 | if (!command_line->HasSwitch("type"))
15 | return BrowserProcess;
16 |
17 | const std::string& process_type = command_line->GetSwitchValue("type");
18 | if (process_type == "renderer")
19 | return RendererProcess;
20 |
21 | return OtherProcess;
22 | }
23 | }
24 |
25 |
--------------------------------------------------------------------------------
/CefBrowser/common/ClientApp.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/caozhiyi/DuiLib_c/92a26553c2be970015cc3a5d7cbfd5839a89387c/CefBrowser/common/ClientApp.h
--------------------------------------------------------------------------------
/CefBrowser/common/main_message_loop.cc:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2015 The Chromium Embedded Framework Authors. All rights
2 | // reserved. Use of this source code is governed by a BSD-style license that
3 | // can be found in the LICENSE file.
4 |
5 | #include "main_message_loop.h"
6 |
7 | #include "include/cef_task.h"
8 | #include "include/wrapper/cef_closure_task.h"
9 |
10 | namespace reeiss_cef {
11 |
12 | namespace {
13 |
14 | MainMessageLoop* g_main_message_loop = NULL;
15 |
16 | } // namespace
17 |
18 | MainMessageLoop::MainMessageLoop() {
19 | DCHECK(!g_main_message_loop);
20 | g_main_message_loop = this;
21 | }
22 |
23 | MainMessageLoop::~MainMessageLoop() {
24 | g_main_message_loop = NULL;
25 | }
26 |
27 | // static
28 | MainMessageLoop* MainMessageLoop::Get() {
29 | DCHECK(g_main_message_loop);
30 | return g_main_message_loop;
31 | }
32 |
33 | void MainMessageLoop::PostClosure(const base::Closure& closure) {
34 | PostTask(CefCreateClosureTask(closure));
35 | }
36 |
37 | } // namespace client
38 |
--------------------------------------------------------------------------------
/CefBrowser/common/util_win.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2015 The Chromium Embedded Framework Authors. All rights
2 | // reserved. Use of this source code is governed by a BSD-style license that
3 | // can be found in the LICENSE file.
4 |
5 | #ifndef CEF_TESTS_CEFCLIENT_BROWSER_UTIL_WIN_H_
6 | #define CEF_TESTS_CEFCLIENT_BROWSER_UTIL_WIN_H_
7 | #pragma once
8 |
9 | #include
10 | #include
11 |
12 | #include "include/internal/cef_types_wrappers.h"
13 |
14 | namespace reeiss_cef {
15 |
16 | // Set the window's user data pointer.
17 | void SetUserDataPtr(HWND hWnd, void* ptr);
18 |
19 | // Return the window's user data pointer.
20 | template
21 | T GetUserDataPtr(HWND hWnd) {
22 | return reinterpret_cast(GetWindowLongPtr(hWnd, GWLP_USERDATA));
23 | }
24 |
25 | // Set the window's window procedure pointer and return the old value.
26 | WNDPROC SetWndProcPtr(HWND hWnd, WNDPROC wndProc);
27 |
28 | // Return the resource string with the specified id.
29 | std::wstring GetResourceString(UINT id);
30 |
31 | int GetCefMouseModifiers(WPARAM wparam);
32 | int GetCefKeyboardModifiers(WPARAM wparam, LPARAM lparam);
33 | bool IsKeyDown(WPARAM wparam);
34 |
35 | // Returns the device scale factor. For example, 200% display scaling will
36 | // return 2.0.
37 | float GetDeviceScaleFactor();
38 |
39 | } // namespace client
40 |
41 | #endif // CEF_TESTS_CEFCLIENT_BROWSER_UTIL_WIN_H_
42 |
--------------------------------------------------------------------------------
/CefRender/CefBrowser_render.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/caozhiyi/DuiLib_c/92a26553c2be970015cc3a5d7cbfd5839a89387c/CefRender/CefBrowser_render.cpp
--------------------------------------------------------------------------------
/CefRender/CefBrowser_render.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/caozhiyi/DuiLib_c/92a26553c2be970015cc3a5d7cbfd5839a89387c/CefRender/CefBrowser_render.h
--------------------------------------------------------------------------------
/CefRender/CefBrowser_render.vcxproj.filters:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01}
6 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms
7 |
8 |
9 | {9689ed97-fb86-40a5-aa63-1095f2464772}
10 |
11 |
12 | {0f10c808-2992-4c8c-8115-199f59ee3610}
13 |
14 |
15 |
16 |
17 | render
18 |
19 |
20 | render
21 |
22 |
23 | main
24 |
25 |
26 | render
27 |
28 |
29 |
30 |
31 | render
32 |
33 |
34 | render
35 |
36 |
37 | main
38 |
39 |
40 | render
41 |
42 |
43 |
--------------------------------------------------------------------------------
/CefRender/CefBrowser_render.vcxproj.user:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | $(SolutionDir)build\$(Configuration)\
5 | WindowsLocalDebugger
6 |
7 |
--------------------------------------------------------------------------------
/CefRender/ClientApp.cpp:
--------------------------------------------------------------------------------
1 | #include "ClientApp.h"
2 |
3 | namespace DuiLib {
4 | ClientApp::ClientApp() {
5 |
6 | }
7 |
8 |
9 | ClientApp::~ClientApp() {
10 |
11 | }
12 |
13 | ProcessType ClientApp::GetProcessType(CefRefPtr command_line)
14 | {
15 | // The command-line flag won't be specified for the browser process.
16 | if (!command_line->HasSwitch("type"))
17 | return BrowserProcess;
18 |
19 | const std::string& process_type = command_line->GetSwitchValue("type");
20 | if (process_type == "renderer")
21 | return RendererProcess;
22 |
23 | return OtherProcess;
24 | }
25 | }
26 |
27 |
--------------------------------------------------------------------------------
/CefRender/ClientApp.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/caozhiyi/DuiLib_c/92a26553c2be970015cc3a5d7cbfd5839a89387c/CefRender/ClientApp.h
--------------------------------------------------------------------------------
/CefRender/RenderApp.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/caozhiyi/DuiLib_c/92a26553c2be970015cc3a5d7cbfd5839a89387c/CefRender/RenderApp.cpp
--------------------------------------------------------------------------------
/CefRender/RenderApp.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/caozhiyi/DuiLib_c/92a26553c2be970015cc3a5d7cbfd5839a89387c/CefRender/RenderApp.h
--------------------------------------------------------------------------------
/CefRender/V8ExtensionHandler.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/caozhiyi/DuiLib_c/92a26553c2be970015cc3a5d7cbfd5839a89387c/CefRender/V8ExtensionHandler.h
--------------------------------------------------------------------------------
/DuiLib/Control/UIActiveX.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/caozhiyi/DuiLib_c/92a26553c2be970015cc3a5d7cbfd5839a89387c/DuiLib/Control/UIActiveX.cpp
--------------------------------------------------------------------------------
/DuiLib/Control/UIActiveX.h:
--------------------------------------------------------------------------------
1 | #ifndef __UIACTIVEX_H__
2 | #define __UIACTIVEX_H__
3 |
4 | #pragma once
5 |
6 | struct IOleObject;
7 |
8 |
9 | namespace DuiLib {
10 | /////////////////////////////////////////////////////////////////////////////////////
11 | //
12 |
13 | class CActiveXCtrl;
14 |
15 | template< class T >
16 | class CSafeRelease
17 | {
18 | public:
19 | CSafeRelease(T* p) : m_p(p) { };
20 | ~CSafeRelease() { if( m_p != NULL ) m_p->Release(); };
21 | T* Detach() { T* t = m_p; m_p = NULL; return t; };
22 | T* m_p;
23 | };
24 |
25 | /////////////////////////////////////////////////////////////////////////////////////
26 | //
27 |
28 | class UILIB_API CActiveXUI : public CControlUI, public IMessageFilterUI
29 | {
30 | friend class CActiveXCtrl;
31 | public:
32 | CActiveXUI();
33 | virtual ~CActiveXUI();
34 |
35 | LPCTSTR GetClass() const;
36 | LPVOID GetInterface(LPCTSTR pstrName);
37 |
38 | HWND GetHostWindow() const;
39 |
40 | bool IsDelayCreate() const;
41 | void SetDelayCreate(bool bDelayCreate = true);
42 |
43 | bool CreateControl(const CLSID clsid);
44 | bool CreateControl(LPCTSTR pstrCLSID);
45 | HRESULT GetControl(const IID iid, LPVOID* ppRet);
46 | CLSID GetClisd() const;
47 | CDuiString GetModuleName() const;
48 | void SetModuleName(LPCTSTR pstrText);
49 |
50 | void SetVisible(bool bVisible = true);
51 | void SetInternVisible(bool bVisible = true);
52 | void SetPos(RECT rc);
53 | void DoPaint(HDC hDC, const RECT& rcPaint);
54 |
55 | void SetAttribute(LPCTSTR pstrName, LPCTSTR pstrValue);
56 |
57 | LRESULT MessageHandler(UINT uMsg, WPARAM wParam, LPARAM lParam, bool& bHandled);
58 |
59 | protected:
60 | virtual void ReleaseControl();
61 | virtual bool DoCreateControl();
62 |
63 | protected:
64 | CLSID m_clsid;
65 | CDuiString m_sModuleName;
66 | bool m_bCreated;
67 | bool m_bDelayCreate;
68 | IOleObject* m_pUnk;
69 | CActiveXCtrl* m_pControl;
70 | HWND m_hwndHost;
71 | };
72 |
73 | } // namespace DuiLib
74 |
75 | #endif // __UIACTIVEX_H__
76 |
--------------------------------------------------------------------------------
/DuiLib/Control/UIButton.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/caozhiyi/DuiLib_c/92a26553c2be970015cc3a5d7cbfd5839a89387c/DuiLib/Control/UIButton.cpp
--------------------------------------------------------------------------------
/DuiLib/Control/UIButtonArrow.cpp:
--------------------------------------------------------------------------------
1 | #include "stdafx.h"
2 | #include "UIButtonArrow.h"
3 |
4 | namespace DuiLib
5 | {
6 | CButtonArrowUI::CButtonArrowUI()
7 | {
8 |
9 | }
10 |
11 | void CButtonArrowUI::DoEvent(DuiLib::TEventUI& event)
12 | {
13 | if( event.Type == UIEVENT_SETCURSOR )
14 | {
15 | ::SetCursor(::LoadCursor(NULL, MAKEINTRESOURCE(IDC_ARROW)));
16 | return;
17 | }
18 | __super::DoEvent(event);
19 | }
20 |
21 | UINT CButtonArrowUI::GetButtonState()
22 | {
23 | return m_uButtonState;
24 | }
25 |
26 | void CButtonArrowUI::SetButtonState(UINT state)
27 | {
28 | m_uButtonState = state;
29 | Invalidate();
30 | }
31 |
32 |
33 | }
--------------------------------------------------------------------------------
/DuiLib/Control/UIButtonArrow.h:
--------------------------------------------------------------------------------
1 | #ifndef __UIBUTTONARROW_H__
2 | #define __UIBUTTONARROW_H__
3 |
4 | #pragma once
5 |
6 | namespace DuiLib
7 | {
8 | //#define DUI_CTR_BUTTON_ARROW (_T("ButtonArrow"))
9 | class UILIB_API CButtonArrowUI : public CButtonUI
10 | {
11 | public:
12 | CButtonArrowUI();
13 |
14 | virtual void DoEvent(DuiLib::TEventUI& event);
15 | UINT GetButtonState();
16 | void SetButtonState(UINT state);
17 |
18 | };
19 |
20 | } // namespace DuiLib
21 |
22 | #endif
23 |
24 |
25 |
--------------------------------------------------------------------------------
/DuiLib/Control/UIButtonHtml.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/caozhiyi/DuiLib_c/92a26553c2be970015cc3a5d7cbfd5839a89387c/DuiLib/Control/UIButtonHtml.cpp
--------------------------------------------------------------------------------
/DuiLib/Control/UIButtonHtml.h:
--------------------------------------------------------------------------------
1 | #ifndef __UIBUTTONHTML_H__
2 | #define __UIBUTTONHTML_H__
3 |
4 | #pragma once
5 |
6 | namespace DuiLib
7 | {
8 | //#define DUI_CTR_BUTTON_HTML (_T("ButtonHtml"))
9 | class UILIB_API CButtonHtmlUI : public CButtonUI
10 | {
11 | public:
12 | CButtonHtmlUI();
13 |
14 | virtual void DoEvent(DuiLib::TEventUI& event);
15 |
16 | };
17 |
18 | } // namespace DuiLib
19 |
20 | #endif
21 |
22 |
23 |
--------------------------------------------------------------------------------
/DuiLib/Control/UICalendar.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/caozhiyi/DuiLib_c/92a26553c2be970015cc3a5d7cbfd5839a89387c/DuiLib/Control/UICalendar.cpp
--------------------------------------------------------------------------------
/DuiLib/Control/UICalendar.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/caozhiyi/DuiLib_c/92a26553c2be970015cc3a5d7cbfd5839a89387c/DuiLib/Control/UICalendar.h
--------------------------------------------------------------------------------
/DuiLib/Control/UICheckBox.cpp:
--------------------------------------------------------------------------------
1 | #include "stdafx.h"
2 | #include "UICheckBox.h"
3 |
4 | namespace DuiLib
5 | {
6 | LPCTSTR CCheckBoxUI::GetClass() const
7 | {
8 | return _T("CheckBoxUI");
9 | }
10 |
11 | void CCheckBoxUI::SetCheck(bool bCheck)
12 | {
13 | Selected(bCheck);
14 | }
15 |
16 | bool CCheckBoxUI::GetCheck() const
17 | {
18 | return IsSelected();
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/DuiLib/Control/UICheckBox.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/caozhiyi/DuiLib_c/92a26553c2be970015cc3a5d7cbfd5839a89387c/DuiLib/Control/UICheckBox.h
--------------------------------------------------------------------------------
/DuiLib/Control/UICheckBoxArrow.cpp:
--------------------------------------------------------------------------------
1 | #include "stdafx.h"
2 |
3 |
4 | namespace DuiLib
5 | {
6 | CCheckBoxArrowUI::CCheckBoxArrowUI()
7 | {
8 | }
9 |
10 | void CCheckBoxArrowUI::DoEvent(TEventUI& event)
11 | {
12 | if( event.Type == UIEVENT_SETCURSOR ) {
13 | ::SetCursor(::LoadCursor(NULL, MAKEINTRESOURCE(IDC_ARROW)));
14 | return;
15 | }
16 |
17 | __super::DoEvent(event);
18 | }
19 | }
--------------------------------------------------------------------------------
/DuiLib/Control/UICheckBoxArrow.h:
--------------------------------------------------------------------------------
1 | #pragma once
2 |
3 | namespace DuiLib
4 | {
5 | class UILIB_API CCheckBoxArrowUI : public CCheckBoxUI
6 | {
7 | public:
8 | CCheckBoxArrowUI();
9 | virtual void DoEvent(TEventUI& event);
10 | };
11 |
12 | } // namespace DuiLib
--------------------------------------------------------------------------------
/DuiLib/Control/UICombo.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/caozhiyi/DuiLib_c/92a26553c2be970015cc3a5d7cbfd5839a89387c/DuiLib/Control/UICombo.cpp
--------------------------------------------------------------------------------
/DuiLib/Control/UICombo.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/caozhiyi/DuiLib_c/92a26553c2be970015cc3a5d7cbfd5839a89387c/DuiLib/Control/UICombo.h
--------------------------------------------------------------------------------
/DuiLib/Control/UIComboBox.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/caozhiyi/DuiLib_c/92a26553c2be970015cc3a5d7cbfd5839a89387c/DuiLib/Control/UIComboBox.h
--------------------------------------------------------------------------------
/DuiLib/Control/UIDateTime.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/caozhiyi/DuiLib_c/92a26553c2be970015cc3a5d7cbfd5839a89387c/DuiLib/Control/UIDateTime.cpp
--------------------------------------------------------------------------------
/DuiLib/Control/UIDateTime.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/caozhiyi/DuiLib_c/92a26553c2be970015cc3a5d7cbfd5839a89387c/DuiLib/Control/UIDateTime.h
--------------------------------------------------------------------------------
/DuiLib/Control/UIEdit.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/caozhiyi/DuiLib_c/92a26553c2be970015cc3a5d7cbfd5839a89387c/DuiLib/Control/UIEdit.cpp
--------------------------------------------------------------------------------
/DuiLib/Control/UIEdit.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/caozhiyi/DuiLib_c/92a26553c2be970015cc3a5d7cbfd5839a89387c/DuiLib/Control/UIEdit.h
--------------------------------------------------------------------------------
/DuiLib/Control/UIFlash.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/caozhiyi/DuiLib_c/92a26553c2be970015cc3a5d7cbfd5839a89387c/DuiLib/Control/UIFlash.cpp
--------------------------------------------------------------------------------
/DuiLib/Control/UIFlash.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/caozhiyi/DuiLib_c/92a26553c2be970015cc3a5d7cbfd5839a89387c/DuiLib/Control/UIFlash.h
--------------------------------------------------------------------------------
/DuiLib/Control/UIGif.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/caozhiyi/DuiLib_c/92a26553c2be970015cc3a5d7cbfd5839a89387c/DuiLib/Control/UIGif.cpp
--------------------------------------------------------------------------------
/DuiLib/Control/UIGif.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/caozhiyi/DuiLib_c/92a26553c2be970015cc3a5d7cbfd5839a89387c/DuiLib/Control/UIGif.h
--------------------------------------------------------------------------------
/DuiLib/Control/UIList.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/caozhiyi/DuiLib_c/92a26553c2be970015cc3a5d7cbfd5839a89387c/DuiLib/Control/UIList.cpp
--------------------------------------------------------------------------------
/DuiLib/Control/UIList.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/caozhiyi/DuiLib_c/92a26553c2be970015cc3a5d7cbfd5839a89387c/DuiLib/Control/UIList.h
--------------------------------------------------------------------------------
/DuiLib/Control/UIOption.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/caozhiyi/DuiLib_c/92a26553c2be970015cc3a5d7cbfd5839a89387c/DuiLib/Control/UIOption.h
--------------------------------------------------------------------------------
/DuiLib/Control/UIOptionArrow.cpp:
--------------------------------------------------------------------------------
1 | #include "stdafx.h"
2 |
3 |
4 | namespace DuiLib
5 | {
6 | COptionArrowUI::COptionArrowUI()
7 | {
8 | }
9 |
10 | void COptionArrowUI::DoEvent(TEventUI& event)
11 | {
12 | if( event.Type == UIEVENT_SETCURSOR ) {
13 | ::SetCursor(::LoadCursor(NULL, MAKEINTRESOURCE(IDC_ARROW)));
14 | return;
15 | }
16 |
17 | __super::DoEvent(event);
18 | }
19 |
20 | UINT COptionArrowUI::GetButtonState()
21 | {
22 | return m_uButtonState;
23 | }
24 |
25 | void COptionArrowUI::SetButtonState(UINT state)
26 | {
27 | m_uButtonState = state;
28 | Invalidate();
29 | }
30 | }
--------------------------------------------------------------------------------
/DuiLib/Control/UIOptionArrow.h:
--------------------------------------------------------------------------------
1 |
2 | #pragma once
3 |
4 | namespace DuiLib
5 | {
6 | //#define DUI_CTR_OPTION_ARROW (_T("OptionArrow"))
7 | class UILIB_API COptionArrowUI : public COptionUI
8 | {
9 | public:
10 | COptionArrowUI();
11 | virtual void DoEvent(TEventUI& event);
12 | UINT GetButtonState();
13 | void SetButtonState(UINT state);
14 | };
15 |
16 | } // namespace DuiLib
17 |
18 |
--------------------------------------------------------------------------------
/DuiLib/Control/UIProgress.h:
--------------------------------------------------------------------------------
1 | #ifndef __UIPROGRESS_H__
2 | #define __UIPROGRESS_H__
3 |
4 | #pragma once
5 |
6 | namespace DuiLib
7 | {
8 | class UILIB_API CProgressUI : public CLabelUI
9 | {
10 | public:
11 | CProgressUI();
12 |
13 | LPCTSTR GetClass() const;
14 | LPVOID GetInterface(LPCTSTR pstrName);
15 |
16 | bool IsHorizontal();
17 | void SetHorizontal(bool bHorizontal = true);
18 | bool IsStretchForeImage();
19 | void SetStretchForeImage(bool bStretchForeImage = true);
20 | int GetMinValue() const;
21 | void SetMinValue(int nMin);
22 | int GetMaxValue() const;
23 | void SetMaxValue(int nMax);
24 | int GetValue() const;
25 | void SetValue(int nValue);
26 | LPCTSTR GetForeImage() const;
27 | void SetForeImage(LPCTSTR pStrImage);
28 |
29 | void SetAttribute(LPCTSTR pstrName, LPCTSTR pstrValue);
30 | void PaintStatusImage(HDC hDC);
31 |
32 | protected:
33 | bool m_bHorizontal;
34 | bool m_bStretchForeImage;
35 | int m_nMax;
36 | int m_nMin;
37 | int m_nValue;
38 |
39 | CDuiString m_sForeImage;
40 | CDuiString m_sForeImageModify;
41 | };
42 |
43 | } // namespace DuiLib
44 |
45 | #endif // __UIPROGRESS_H__
46 |
--------------------------------------------------------------------------------
/DuiLib/Control/UIRichEdit.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/caozhiyi/DuiLib_c/92a26553c2be970015cc3a5d7cbfd5839a89387c/DuiLib/Control/UIRichEdit.cpp
--------------------------------------------------------------------------------
/DuiLib/Control/UIRichEdit.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/caozhiyi/DuiLib_c/92a26553c2be970015cc3a5d7cbfd5839a89387c/DuiLib/Control/UIRichEdit.h
--------------------------------------------------------------------------------
/DuiLib/Control/UISlider.h:
--------------------------------------------------------------------------------
1 | #ifndef __UISLIDER_H__
2 | #define __UISLIDER_H__
3 |
4 | #pragma once
5 |
6 | namespace DuiLib
7 | {
8 | class UILIB_API CSliderUI : public CProgressUI
9 | {
10 | public:
11 | CSliderUI();
12 |
13 | LPCTSTR GetClass() const;
14 | UINT GetControlFlags() const;
15 | LPVOID GetInterface(LPCTSTR pstrName);
16 |
17 | void SetEnabled(bool bEnable = true);
18 |
19 | int GetChangeStep();
20 | void SetChangeStep(int step);
21 | void SetThumbSize(SIZE szXY);
22 | RECT GetThumbRect() const;
23 | LPCTSTR GetThumbImage() const;
24 | void SetThumbImage(LPCTSTR pStrImage);
25 | LPCTSTR GetThumbHotImage() const;
26 | void SetThumbHotImage(LPCTSTR pStrImage);
27 | LPCTSTR GetThumbPushedImage() const;
28 | void SetThumbPushedImage(LPCTSTR pStrImage);
29 |
30 | void DoEvent(TEventUI& event);
31 | void SetAttribute(LPCTSTR pstrName, LPCTSTR pstrValue);
32 | void PaintStatusImage(HDC hDC);
33 |
34 | protected:
35 | SIZE m_szThumb;
36 | UINT m_uButtonState;
37 | int m_nStep;
38 |
39 | CDuiString m_sThumbImage;
40 | CDuiString m_sThumbHotImage;
41 | CDuiString m_sThumbPushedImage;
42 |
43 | CDuiString m_sImageModify;
44 | };
45 | }
46 |
47 | #endif // __UISLIDER_H__
--------------------------------------------------------------------------------
/DuiLib/Control/UIText.h:
--------------------------------------------------------------------------------
1 | #ifndef __UITEXT_H__
2 | #define __UITEXT_H__
3 |
4 | #pragma once
5 |
6 | namespace DuiLib
7 | {
8 | class UILIB_API CTextUI : public CLabelUI
9 | {
10 | public:
11 | CTextUI();
12 | ~CTextUI();
13 |
14 | LPCTSTR GetClass() const;
15 | UINT GetControlFlags() const;
16 | LPVOID GetInterface(LPCTSTR pstrName);
17 |
18 | CDuiString* GetLinkContent(int iIndex);
19 |
20 | void DoEvent(TEventUI& event);
21 | SIZE EstimateSize(SIZE szAvailable);
22 |
23 | void PaintText(HDC hDC);
24 |
25 | protected:
26 | enum { MAX_LINK = 8 };
27 | int m_nLinks;
28 | RECT m_rcLinks[MAX_LINK];
29 | CDuiString m_sLinks[MAX_LINK];
30 | int m_nHoverLink;
31 | };
32 |
33 | } // namespace DuiLib
34 |
35 | #endif //__UITEXT_H__
--------------------------------------------------------------------------------
/DuiLib/Control/UITreeView.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/caozhiyi/DuiLib_c/92a26553c2be970015cc3a5d7cbfd5839a89387c/DuiLib/Control/UITreeView.cpp
--------------------------------------------------------------------------------
/DuiLib/Control/UIWebBrowser.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/caozhiyi/DuiLib_c/92a26553c2be970015cc3a5d7cbfd5839a89387c/DuiLib/Control/UIWebBrowser.cpp
--------------------------------------------------------------------------------
/DuiLib/Control/UIWebBrowser.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/caozhiyi/DuiLib_c/92a26553c2be970015cc3a5d7cbfd5839a89387c/DuiLib/Control/UIWebBrowser.h
--------------------------------------------------------------------------------
/DuiLib/Core/UIBase.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/caozhiyi/DuiLib_c/92a26553c2be970015cc3a5d7cbfd5839a89387c/DuiLib/Core/UIBase.cpp
--------------------------------------------------------------------------------
/DuiLib/Core/UIBase.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/caozhiyi/DuiLib_c/92a26553c2be970015cc3a5d7cbfd5839a89387c/DuiLib/Core/UIBase.h
--------------------------------------------------------------------------------
/DuiLib/Core/UIContainer.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/caozhiyi/DuiLib_c/92a26553c2be970015cc3a5d7cbfd5839a89387c/DuiLib/Core/UIContainer.cpp
--------------------------------------------------------------------------------
/DuiLib/Core/UIContainer.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/caozhiyi/DuiLib_c/92a26553c2be970015cc3a5d7cbfd5839a89387c/DuiLib/Core/UIContainer.h
--------------------------------------------------------------------------------
/DuiLib/Core/UIControl.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/caozhiyi/DuiLib_c/92a26553c2be970015cc3a5d7cbfd5839a89387c/DuiLib/Core/UIControl.cpp
--------------------------------------------------------------------------------
/DuiLib/Core/UIControl.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/caozhiyi/DuiLib_c/92a26553c2be970015cc3a5d7cbfd5839a89387c/DuiLib/Core/UIControl.h
--------------------------------------------------------------------------------
/DuiLib/Core/UIDefine.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/caozhiyi/DuiLib_c/92a26553c2be970015cc3a5d7cbfd5839a89387c/DuiLib/Core/UIDefine.h
--------------------------------------------------------------------------------
/DuiLib/Core/UIDlgBuilder.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/caozhiyi/DuiLib_c/92a26553c2be970015cc3a5d7cbfd5839a89387c/DuiLib/Core/UIDlgBuilder.cpp
--------------------------------------------------------------------------------
/DuiLib/Core/UIDlgBuilder.h:
--------------------------------------------------------------------------------
1 | #ifndef __UIDLGBUILDER_H__
2 | #define __UIDLGBUILDER_H__
3 |
4 | #pragma once
5 |
6 | namespace DuiLib {
7 |
8 | class IDialogBuilderCallback
9 | {
10 | public:
11 | virtual CControlUI* CreateControl(LPCTSTR pstrClass) = 0;
12 | };
13 |
14 |
15 | class UILIB_API CDialogBuilder
16 | {
17 | public:
18 | CDialogBuilder();
19 | CControlUI* Create(STRINGorID xml, LPCTSTR type = NULL, IDialogBuilderCallback* pCallback = NULL,
20 | CPaintManagerUI* pManager = NULL, CControlUI* pParent = NULL);
21 | CControlUI* Create(IDialogBuilderCallback* pCallback = NULL, CPaintManagerUI* pManager = NULL,
22 | CControlUI* pParent = NULL);
23 |
24 | CMarkup* GetMarkup();
25 |
26 | void GetLastErrorMessage(LPTSTR pstrMessage, SIZE_T cchMax) const;
27 | void GetLastErrorLocation(LPTSTR pstrSource, SIZE_T cchMax) const;
28 | private:
29 | CControlUI* _Parse(CMarkupNode* parent, CControlUI* pParent = NULL, CPaintManagerUI* pManager = NULL);
30 |
31 | CMarkup m_xml;
32 | IDialogBuilderCallback* m_pCallback;
33 | LPCTSTR m_pstrtype;
34 | };
35 |
36 | } // namespace DuiLib
37 |
38 | #endif // __UIDLGBUILDER_H__
39 |
--------------------------------------------------------------------------------
/DuiLib/Core/UIManager.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/caozhiyi/DuiLib_c/92a26553c2be970015cc3a5d7cbfd5839a89387c/DuiLib/Core/UIManager.cpp
--------------------------------------------------------------------------------
/DuiLib/Core/UIManager.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/caozhiyi/DuiLib_c/92a26553c2be970015cc3a5d7cbfd5839a89387c/DuiLib/Core/UIManager.h
--------------------------------------------------------------------------------
/DuiLib/Core/UIMarkup.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/caozhiyi/DuiLib_c/92a26553c2be970015cc3a5d7cbfd5839a89387c/DuiLib/Core/UIMarkup.cpp
--------------------------------------------------------------------------------
/DuiLib/Core/UIRender.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/caozhiyi/DuiLib_c/92a26553c2be970015cc3a5d7cbfd5839a89387c/DuiLib/Core/UIRender.cpp
--------------------------------------------------------------------------------
/DuiLib/Core/UIRender.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/caozhiyi/DuiLib_c/92a26553c2be970015cc3a5d7cbfd5839a89387c/DuiLib/Core/UIRender.h
--------------------------------------------------------------------------------
/DuiLib/DuiLib.vcxproj.user:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/DuiLib/Layout/UIChildLayout.cpp:
--------------------------------------------------------------------------------
1 | #include "stdafx.h"
2 | #include "UIChildLayout.h"
3 |
4 | namespace DuiLib
5 | {
6 | CChildLayoutUI::CChildLayoutUI()
7 | {
8 |
9 | }
10 |
11 | void CChildLayoutUI::Init()
12 | {
13 | if (!m_pstrXMLFile.IsEmpty())
14 | {
15 | CDialogBuilder builder;
16 | CContainerUI* pChildWindow = static_cast(builder.Create(m_pstrXMLFile.GetData(), (UINT)0, NULL, m_pManager));
17 | if (pChildWindow)
18 | {
19 | this->Add(pChildWindow);
20 | }
21 | else
22 | {
23 | this->RemoveAll();
24 | }
25 | }
26 | }
27 |
28 | void CChildLayoutUI::SetAttribute( LPCTSTR pstrName, LPCTSTR pstrValue )
29 | {
30 | if( _tcscmp(pstrName, _T("xmlfile")) == 0 )
31 | SetChildLayoutXML(pstrValue);
32 | else
33 | CContainerUI::SetAttribute(pstrName,pstrValue);
34 | }
35 |
36 | void CChildLayoutUI::SetChildLayoutXML( DuiLib::CDuiString pXML )
37 | {
38 | m_pstrXMLFile=pXML;
39 | }
40 |
41 | DuiLib::CDuiString CChildLayoutUI::GetChildLayoutXML()
42 | {
43 | return m_pstrXMLFile;
44 | }
45 |
46 | LPVOID CChildLayoutUI::GetInterface( LPCTSTR pstrName )
47 | {
48 | if( _tcscmp(pstrName, DUI_CTR_CHILDLAYOUT) == 0 ) return static_cast(this);
49 | return CControlUI::GetInterface(pstrName);
50 | }
51 |
52 | LPCTSTR CChildLayoutUI::GetClass() const
53 | {
54 | return _T("ChildLayoutUI");
55 | }
56 | } // namespace DuiLib
57 |
--------------------------------------------------------------------------------
/DuiLib/Layout/UIChildLayout.h:
--------------------------------------------------------------------------------
1 | #ifndef __UICHILDLAYOUT_H__
2 | #define __UICHILDLAYOUT_H__
3 |
4 | #pragma once
5 |
6 | namespace DuiLib
7 | {
8 | class UILIB_API CChildLayoutUI : public CContainerUI
9 | {
10 | public:
11 | CChildLayoutUI();
12 |
13 | void Init();
14 | void SetAttribute(LPCTSTR pstrName, LPCTSTR pstrValue);
15 | void SetChildLayoutXML(CDuiString pXML);
16 | DuiLib::CDuiString GetChildLayoutXML();
17 | virtual LPVOID GetInterface(LPCTSTR pstrName);
18 | virtual LPCTSTR GetClass() const;
19 |
20 | private:
21 | DuiLib::CDuiString m_pstrXMLFile;
22 | };
23 | } // namespace DuiLib
24 | #endif // __UICHILDLAYOUT_H__
25 |
--------------------------------------------------------------------------------
/DuiLib/Layout/UIHorizontalLayout.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/caozhiyi/DuiLib_c/92a26553c2be970015cc3a5d7cbfd5839a89387c/DuiLib/Layout/UIHorizontalLayout.cpp
--------------------------------------------------------------------------------
/DuiLib/Layout/UIHorizontalLayout.h:
--------------------------------------------------------------------------------
1 | #ifndef __UIHORIZONTALLAYOUT_H__
2 | #define __UIHORIZONTALLAYOUT_H__
3 |
4 | #pragma once
5 |
6 | namespace DuiLib
7 | {
8 | class UILIB_API CHorizontalLayoutUI : public CContainerUI
9 | {
10 | public:
11 | CHorizontalLayoutUI();
12 |
13 | LPCTSTR GetClass() const;
14 | LPVOID GetInterface(LPCTSTR pstrName);
15 | UINT GetControlFlags() const;
16 |
17 | void SetSepWidth(int iWidth);
18 | int GetSepWidth() const;
19 | void SetSepImmMode(bool bImmediately);
20 | bool IsSepImmMode() const;
21 | void SetAttribute(LPCTSTR pstrName, LPCTSTR pstrValue);
22 | void DoEvent(TEventUI& event);
23 |
24 | void SetPos(RECT rc);
25 | void DoPostPaint(HDC hDC, const RECT& rcPaint);
26 |
27 | RECT GetThumbRect(bool bUseNew = false) const;
28 |
29 | protected:
30 | int m_iSepWidth;
31 | UINT m_uButtonState;
32 | POINT ptLastMouse;
33 | RECT m_rcNewPos;
34 | bool m_bImmMode;
35 | };
36 | }
37 | #endif // __UIHORIZONTALLAYOUT_H__
38 |
--------------------------------------------------------------------------------
/DuiLib/Layout/UITabLayout.h:
--------------------------------------------------------------------------------
1 | #ifndef __UITABLAYOUT_H__
2 | #define __UITABLAYOUT_H__
3 |
4 | #pragma once
5 |
6 | namespace DuiLib
7 | {
8 | class UILIB_API CTabLayoutUI : public CContainerUI
9 | {
10 | public:
11 | CTabLayoutUI();
12 |
13 | LPCTSTR GetClass() const;
14 | LPVOID GetInterface(LPCTSTR pstrName);
15 |
16 | bool Add(CControlUI* pControl);
17 | bool AddAt(CControlUI* pControl, int iIndex);
18 | bool Remove(CControlUI* pControl);
19 | void RemoveAll();
20 | int GetCurSel() const;
21 | bool SelectItem(int iIndex);
22 | bool SelectItem(CControlUI* pControl);
23 |
24 | void SetPos(RECT rc);
25 |
26 | void SetAttribute(LPCTSTR pstrName, LPCTSTR pstrValue);
27 |
28 | protected:
29 | int m_iCurSel;
30 | };
31 | }
32 | #endif // __UITABLAYOUT_H__
33 |
--------------------------------------------------------------------------------
/DuiLib/Layout/UITileLayout.h:
--------------------------------------------------------------------------------
1 | #ifndef __UITILELAYOUT_H__
2 | #define __UITILELAYOUT_H__
3 |
4 | #pragma once
5 |
6 | namespace DuiLib
7 | {
8 | class UILIB_API CTileLayoutUI : public CContainerUI
9 | {
10 | public:
11 | CTileLayoutUI();
12 |
13 | LPCTSTR GetClass() const;
14 | LPVOID GetInterface(LPCTSTR pstrName);
15 |
16 | void SetPos(RECT rc);
17 |
18 | SIZE GetItemSize() const;
19 | void SetItemSize(SIZE szItem);
20 | int GetColumns() const;
21 | void SetColumns(int nCols);
22 |
23 | void SetAttribute(LPCTSTR pstrName, LPCTSTR pstrValue);
24 |
25 | protected:
26 | SIZE m_szItem;
27 | int m_nColumns;
28 | };
29 | }
30 | #endif // __UITILELAYOUT_H__
31 |
--------------------------------------------------------------------------------
/DuiLib/Layout/UIVerticalLayout.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/caozhiyi/DuiLib_c/92a26553c2be970015cc3a5d7cbfd5839a89387c/DuiLib/Layout/UIVerticalLayout.cpp
--------------------------------------------------------------------------------
/DuiLib/Layout/UIVerticalLayout.h:
--------------------------------------------------------------------------------
1 | #ifndef __UIVERTICALLAYOUT_H__
2 | #define __UIVERTICALLAYOUT_H__
3 |
4 | #pragma once
5 |
6 | namespace DuiLib
7 | {
8 | class UILIB_API CVerticalLayoutUI : public CContainerUI
9 | {
10 | public:
11 | CVerticalLayoutUI();
12 |
13 | LPCTSTR GetClass() const;
14 | LPVOID GetInterface(LPCTSTR pstrName);
15 | UINT GetControlFlags() const;
16 |
17 | void SetSepHeight(int iHeight);
18 | int GetSepHeight() const;
19 | void SetSepImmMode(bool bImmediately);
20 | bool IsSepImmMode() const;
21 | void SetAttribute(LPCTSTR pstrName, LPCTSTR pstrValue);
22 | void DoEvent(TEventUI& event);
23 |
24 | void SetPos(RECT rc);
25 | void DoPostPaint(HDC hDC, const RECT& rcPaint);
26 |
27 | RECT GetThumbRect(bool bUseNew = false) const;
28 |
29 | protected:
30 | int m_iSepHeight;
31 | UINT m_uButtonState;
32 | POINT ptLastMouse;
33 | RECT m_rcNewPos;
34 | bool m_bImmMode;
35 | };
36 | }
37 | #endif // __UIVERTICALLAYOUT_H__
38 |
--------------------------------------------------------------------------------
/DuiLib/ReadMe.txt:
--------------------------------------------------------------------------------
1 | ========================================================================
2 | STATIC LIBRARY : DuiLib Project Overview
3 | ========================================================================
4 |
5 | AppWizard has created this DuiLib library project for you.
6 |
7 | No source files were created as part of your project.
8 |
9 |
10 | DuiLib.vcxproj
11 | This is the main project file for VC++ projects generated using an Application Wizard.
12 | It contains information about the version of Visual C++ that generated the file, and
13 | information about the platforms, configurations, and project features selected with the
14 | Application Wizard.
15 |
16 | DuiLib.vcxproj.filters
17 | This is the filters file for VC++ projects generated using an Application Wizard.
18 | It contains information about the association between the files in your project
19 | and the filters. This association is used in the IDE to show grouping of files with
20 | similar extensions under a specific node (for e.g. ".cpp" files are associated with the
21 | "Source Files" filter).
22 |
23 | /////////////////////////////////////////////////////////////////////////////
24 | Other notes:
25 |
26 | AppWizard uses "TODO:" comments to indicate parts of the source code you
27 | should add to or customize.
28 |
29 | /////////////////////////////////////////////////////////////////////////////
30 |
--------------------------------------------------------------------------------
/DuiLib/StdAfx.cpp:
--------------------------------------------------------------------------------
1 | // stdafx.cpp : source file that includes just the standard includes
2 | // UIlib.pch will be the pre-compiled header
3 | // stdafx.obj will contain the pre-compiled type information
4 |
5 | #include "StdAfx.h"
6 |
7 |
8 | #pragma comment( lib, "winmm.lib" )
9 | #pragma comment( lib, "comctl32.lib" )
10 |
--------------------------------------------------------------------------------
/DuiLib/StdAfx.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/caozhiyi/DuiLib_c/92a26553c2be970015cc3a5d7cbfd5839a89387c/DuiLib/StdAfx.h
--------------------------------------------------------------------------------
/DuiLib/UIlib.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/caozhiyi/DuiLib_c/92a26553c2be970015cc3a5d7cbfd5839a89387c/DuiLib/UIlib.h
--------------------------------------------------------------------------------
/DuiLib/Utils/FlashEventHandler.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/caozhiyi/DuiLib_c/92a26553c2be970015cc3a5d7cbfd5839a89387c/DuiLib/Utils/FlashEventHandler.h
--------------------------------------------------------------------------------
/DuiLib/Utils/UIDelegateUI.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/caozhiyi/DuiLib_c/92a26553c2be970015cc3a5d7cbfd5839a89387c/DuiLib/Utils/UIDelegateUI.cpp
--------------------------------------------------------------------------------
/DuiLib/Utils/Utils.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/caozhiyi/DuiLib_c/92a26553c2be970015cc3a5d7cbfd5839a89387c/DuiLib/Utils/Utils.cpp
--------------------------------------------------------------------------------
/DuiLib/Utils/WebBrowserEventHandler.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/caozhiyi/DuiLib_c/92a26553c2be970015cc3a5d7cbfd5839a89387c/DuiLib/Utils/WebBrowserEventHandler.h
--------------------------------------------------------------------------------
/DuiLib/Utils/WinImplBase.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/caozhiyi/DuiLib_c/92a26553c2be970015cc3a5d7cbfd5839a89387c/DuiLib/Utils/WinImplBase.cpp
--------------------------------------------------------------------------------
/DuiLib/Utils/WinImplBase.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/caozhiyi/DuiLib_c/92a26553c2be970015cc3a5d7cbfd5839a89387c/DuiLib/Utils/WinImplBase.h
--------------------------------------------------------------------------------
/DuiLib/resource.h:
--------------------------------------------------------------------------------
1 | //{{NO_DEPENDENCIES}}
2 | // Microsoft Visual C++ generated include file.
3 | // Used by DuiLib.rc
4 |
5 | // Next default values for new objects
6 | //
7 | #ifdef APSTUDIO_INVOKED
8 | #ifndef APSTUDIO_READONLY_SYMBOLS
9 | #define _APS_NEXT_RESOURCE_VALUE 101
10 | #define _APS_NEXT_COMMAND_VALUE 40001
11 | #define _APS_NEXT_CONTROL_VALUE 1001
12 | #define _APS_NEXT_SYMED_VALUE 101
13 | #endif
14 | #endif
15 |
--------------------------------------------------------------------------------
/bin/lib/Debug/d3dcompiler_47.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/caozhiyi/DuiLib_c/92a26553c2be970015cc3a5d7cbfd5839a89387c/bin/lib/Debug/d3dcompiler_47.dll
--------------------------------------------------------------------------------
/bin/lib/Debug/libGLESv2.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/caozhiyi/DuiLib_c/92a26553c2be970015cc3a5d7cbfd5839a89387c/bin/lib/Debug/libGLESv2.dll
--------------------------------------------------------------------------------
/bin/lib/Debug/libcef.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/caozhiyi/DuiLib_c/92a26553c2be970015cc3a5d7cbfd5839a89387c/bin/lib/Debug/libcef.dll
--------------------------------------------------------------------------------
/bin/lib/Debug/libcef.lib:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/caozhiyi/DuiLib_c/92a26553c2be970015cc3a5d7cbfd5839a89387c/bin/lib/Debug/libcef.lib
--------------------------------------------------------------------------------
/bin/lib/Debug/libegl.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/caozhiyi/DuiLib_c/92a26553c2be970015cc3a5d7cbfd5839a89387c/bin/lib/Debug/libegl.dll
--------------------------------------------------------------------------------
/bin/lib/Debug/natives_blob.bin:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/caozhiyi/DuiLib_c/92a26553c2be970015cc3a5d7cbfd5839a89387c/bin/lib/Debug/natives_blob.bin
--------------------------------------------------------------------------------
/bin/lib/Debug/widevinecdmadapter.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/caozhiyi/DuiLib_c/92a26553c2be970015cc3a5d7cbfd5839a89387c/bin/lib/Debug/widevinecdmadapter.dll
--------------------------------------------------------------------------------
/bin/lib/Release/d3dcompiler_47.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/caozhiyi/DuiLib_c/92a26553c2be970015cc3a5d7cbfd5839a89387c/bin/lib/Release/d3dcompiler_47.dll
--------------------------------------------------------------------------------
/bin/lib/Release/libEGL.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/caozhiyi/DuiLib_c/92a26553c2be970015cc3a5d7cbfd5839a89387c/bin/lib/Release/libEGL.dll
--------------------------------------------------------------------------------
/bin/lib/Release/libGLESv2.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/caozhiyi/DuiLib_c/92a26553c2be970015cc3a5d7cbfd5839a89387c/bin/lib/Release/libGLESv2.dll
--------------------------------------------------------------------------------
/bin/lib/Release/libcef.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/caozhiyi/DuiLib_c/92a26553c2be970015cc3a5d7cbfd5839a89387c/bin/lib/Release/libcef.dll
--------------------------------------------------------------------------------
/bin/lib/Release/libcef.lib:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/caozhiyi/DuiLib_c/92a26553c2be970015cc3a5d7cbfd5839a89387c/bin/lib/Release/libcef.lib
--------------------------------------------------------------------------------
/bin/lib/Release/natives_blob.bin:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/caozhiyi/DuiLib_c/92a26553c2be970015cc3a5d7cbfd5839a89387c/bin/lib/Release/natives_blob.bin
--------------------------------------------------------------------------------
/bin/lib/Release/widevinecdmadapter.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/caozhiyi/DuiLib_c/92a26553c2be970015cc3a5d7cbfd5839a89387c/bin/lib/Release/widevinecdmadapter.dll
--------------------------------------------------------------------------------
/bin/pak_resource/cef.pak:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/caozhiyi/DuiLib_c/92a26553c2be970015cc3a5d7cbfd5839a89387c/bin/pak_resource/cef.pak
--------------------------------------------------------------------------------
/bin/pak_resource/icudtl.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/caozhiyi/DuiLib_c/92a26553c2be970015cc3a5d7cbfd5839a89387c/bin/pak_resource/icudtl.dat
--------------------------------------------------------------------------------
/bin/pak_resource/locales/zh-CN.pak:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/caozhiyi/DuiLib_c/92a26553c2be970015cc3a5d7cbfd5839a89387c/bin/pak_resource/locales/zh-CN.pak
--------------------------------------------------------------------------------
/include/cef_dom.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/caozhiyi/DuiLib_c/92a26553c2be970015cc3a5d7cbfd5839a89387c/include/cef_dom.h
--------------------------------------------------------------------------------
/libcef_dll/base/cef_bind_helpers.cc:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | #include "include/base/cef_bind_helpers.h"
6 |
7 | #include "include/base/cef_callback.h"
8 |
9 | namespace base {
10 |
11 | void DoNothing() {
12 | }
13 |
14 | } // namespace base
15 |
--------------------------------------------------------------------------------
/libcef_dll/base/cef_callback_helpers.cc:
--------------------------------------------------------------------------------
1 | // Copyright 2013 The Chromium Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | #include "include/base/cef_callback_helpers.h"
6 |
7 | #include "include/base/cef_callback.h"
8 |
9 | namespace base {
10 |
11 | ScopedClosureRunner::ScopedClosureRunner() {
12 | }
13 |
14 | ScopedClosureRunner::ScopedClosureRunner(const Closure& closure)
15 | : closure_(closure) {
16 | }
17 |
18 | ScopedClosureRunner::~ScopedClosureRunner() {
19 | if (!closure_.is_null())
20 | closure_.Run();
21 | }
22 |
23 | void ScopedClosureRunner::Reset() {
24 | Closure old_closure = Release();
25 | if (!old_closure.is_null())
26 | old_closure.Run();
27 | }
28 |
29 | void ScopedClosureRunner::Reset(const Closure& closure) {
30 | Closure old_closure = Release();
31 | closure_ = closure;
32 | if (!old_closure.is_null())
33 | old_closure.Run();
34 | }
35 |
36 | Closure ScopedClosureRunner::Release() {
37 | Closure result = closure_;
38 | closure_.Reset();
39 | return result;
40 | }
41 |
42 | } // namespace base
43 |
--------------------------------------------------------------------------------
/libcef_dll/base/cef_callback_internal.cc:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | #include "include/base/internal/cef_callback_internal.h"
6 |
7 | #include "include/base/cef_logging.h"
8 |
9 | namespace base {
10 | namespace cef_internal {
11 |
12 | void BindStateBase::AddRef() {
13 | AtomicRefCountInc(&ref_count_);
14 | }
15 |
16 | void BindStateBase::Release() {
17 | if (!AtomicRefCountDec(&ref_count_))
18 | destructor_(this);
19 | }
20 |
21 | void CallbackBase::Reset() {
22 | polymorphic_invoke_ = NULL;
23 | // NULL the bind_state_ last, since it may be holding the last ref to whatever
24 | // object owns us, and we may be deleted after that.
25 | bind_state_ = NULL;
26 | }
27 |
28 | bool CallbackBase::Equals(const CallbackBase& other) const {
29 | return bind_state_.get() == other.bind_state_.get() &&
30 | polymorphic_invoke_ == other.polymorphic_invoke_;
31 | }
32 |
33 | CallbackBase::CallbackBase(BindStateBase* bind_state)
34 | : bind_state_(bind_state),
35 | polymorphic_invoke_(NULL) {
36 | DCHECK(!bind_state_.get() || bind_state_->ref_count_ == 1);
37 | }
38 |
39 | CallbackBase::~CallbackBase() {
40 | }
41 |
42 | } // namespace cef_internal
43 | } // namespace base
44 |
--------------------------------------------------------------------------------
/libcef_dll/base/cef_lock.cc:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | // This file is used for debugging assertion support. The Lock class
6 | // is functionally a wrapper around the LockImpl class, so the only
7 | // real intelligence in the class is in the debugging logic.
8 |
9 | #if !defined(NDEBUG)
10 |
11 | #include "include/base/cef_lock.h"
12 | #include "include/base/cef_logging.h"
13 |
14 | namespace base {
15 |
16 | Lock::Lock() : lock_() {
17 | }
18 |
19 | Lock::~Lock() {
20 | DCHECK(owning_thread_ref_.is_null());
21 | }
22 |
23 | void Lock::AssertAcquired() const {
24 | DCHECK(owning_thread_ref_ == PlatformThread::CurrentRef());
25 | }
26 |
27 | void Lock::CheckHeldAndUnmark() {
28 | DCHECK(owning_thread_ref_ == PlatformThread::CurrentRef());
29 | owning_thread_ref_ = PlatformThreadRef();
30 | }
31 |
32 | void Lock::CheckUnheldAndMark() {
33 | // Hitting this DCHECK means that your code is trying to re-enter a lock that
34 | // is already held. The Chromium Lock implementation is not reentrant.
35 | // See "Why can the holder of a Lock not reacquire it?" at
36 | // http://www.chromium.org/developers/lock-and-condition-variable for more
37 | // information.
38 | DCHECK(owning_thread_ref_.is_null());
39 | owning_thread_ref_ = PlatformThread::CurrentRef();
40 | }
41 |
42 | } // namespace base
43 |
44 | #endif // NDEBUG
45 |
--------------------------------------------------------------------------------
/libcef_dll/base/cef_ref_counted.cc:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | #include "include/base/cef_ref_counted.h"
6 | #include "include/base/cef_thread_collision_warner.h"
7 |
8 | namespace base {
9 |
10 | namespace cef_subtle {
11 |
12 | bool RefCountedThreadSafeBase::HasOneRef() const {
13 | return AtomicRefCountIsOne(
14 | &const_cast(this)->ref_count_);
15 | }
16 |
17 | RefCountedThreadSafeBase::RefCountedThreadSafeBase() : ref_count_(0) {
18 | #ifndef NDEBUG
19 | in_dtor_ = false;
20 | #endif
21 | }
22 |
23 | RefCountedThreadSafeBase::~RefCountedThreadSafeBase() {
24 | #ifndef NDEBUG
25 | DCHECK(in_dtor_) << "RefCountedThreadSafe object deleted without "
26 | "calling Release()";
27 | #endif
28 | }
29 |
30 | void RefCountedThreadSafeBase::AddRef() const {
31 | #ifndef NDEBUG
32 | DCHECK(!in_dtor_);
33 | #endif
34 | AtomicRefCountInc(&ref_count_);
35 | }
36 |
37 | bool RefCountedThreadSafeBase::Release() const {
38 | #ifndef NDEBUG
39 | DCHECK(!in_dtor_);
40 | DCHECK(!AtomicRefCountIsZero(&ref_count_));
41 | #endif
42 | if (!AtomicRefCountDec(&ref_count_)) {
43 | #ifndef NDEBUG
44 | in_dtor_ = true;
45 | #endif
46 | return true;
47 | }
48 | return false;
49 | }
50 |
51 | } // namespace cef_subtle
52 |
53 | } // namespace base
54 |
--------------------------------------------------------------------------------
/libcef_dll/base/cef_thread_checker_impl.cc:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | #include "include/base/internal/cef_thread_checker_impl.h"
6 |
7 | namespace base {
8 | namespace cef_internal {
9 |
10 | ThreadCheckerImpl::ThreadCheckerImpl()
11 | : valid_thread_id_() {
12 | EnsureThreadIdAssigned();
13 | }
14 |
15 | ThreadCheckerImpl::~ThreadCheckerImpl() {}
16 |
17 | bool ThreadCheckerImpl::CalledOnValidThread() const {
18 | EnsureThreadIdAssigned();
19 | AutoLock auto_lock(lock_);
20 | return valid_thread_id_ == PlatformThread::CurrentRef();
21 | }
22 |
23 | void ThreadCheckerImpl::DetachFromThread() {
24 | AutoLock auto_lock(lock_);
25 | valid_thread_id_ = PlatformThreadRef();
26 | }
27 |
28 | void ThreadCheckerImpl::EnsureThreadIdAssigned() const {
29 | AutoLock auto_lock(lock_);
30 | if (valid_thread_id_.is_null()) {
31 | valid_thread_id_ = PlatformThread::CurrentRef();
32 | }
33 | }
34 |
35 | } // namespace cef_internal
36 | } // namespace base
37 |
--------------------------------------------------------------------------------
/libcef_dll/cpptoc/app_cpptoc.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2016 The Chromium Embedded Framework Authors. All rights
2 | // reserved. Use of this source code is governed by a BSD-style license that
3 | // can be found in the LICENSE file.
4 | //
5 | // ---------------------------------------------------------------------------
6 | //
7 | // This file was generated by the CEF translator tool. If making changes by
8 | // hand only do so within the body of existing method and function
9 | // implementations. See the translator.README.txt file in the tools directory
10 | // for more information.
11 | //
12 |
13 | #ifndef CEF_LIBCEF_DLL_CPPTOC_APP_CPPTOC_H_
14 | #define CEF_LIBCEF_DLL_CPPTOC_APP_CPPTOC_H_
15 | #pragma once
16 |
17 | #ifndef USING_CEF_SHARED
18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only")
19 | #else // USING_CEF_SHARED
20 |
21 | #include "include/cef_app.h"
22 | #include "include/capi/cef_app_capi.h"
23 | #include "libcef_dll/cpptoc/cpptoc.h"
24 |
25 | // Wrap a C++ class with a C structure.
26 | // This class may be instantiated and accessed wrapper-side only.
27 | class CefAppCppToC
28 | : public CefCppToC {
29 | public:
30 | CefAppCppToC();
31 | };
32 |
33 | #endif // USING_CEF_SHARED
34 | #endif // CEF_LIBCEF_DLL_CPPTOC_APP_CPPTOC_H_
35 |
--------------------------------------------------------------------------------
/libcef_dll/cpptoc/base_cpptoc.cc:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2015 The Chromium Embedded Framework Authors. All rights
2 | // reserved. Use of this source code is governed by a BSD-style license that
3 | // can be found in the LICENSE file.
4 |
5 | #include "libcef_dll/cpptoc/base_cpptoc.h"
6 |
7 | CefBaseCppToC::CefBaseCppToC() {
8 | }
9 |
10 | template<> CefRefPtr CefCppToC::
11 | UnwrapDerived(CefWrapperType type, cef_base_t* s) {
12 | NOTREACHED();
13 | return NULL;
14 | }
15 |
16 | #ifndef NDEBUG
17 | template<> base::AtomicRefCount CefCppToC::DebugObjCt = 0;
19 | #endif
20 |
21 | template<> CefWrapperType CefCppToC::
22 | kWrapperType = WT_BASE;
23 |
--------------------------------------------------------------------------------
/libcef_dll/cpptoc/base_cpptoc.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2009 The Chromium Embedded Framework Authors. All rights
2 | // reserved. Use of this source code is governed by a BSD-style license that
3 | // can be found in the LICENSE file.
4 |
5 | #ifndef CEF_LIBCEF_DLL_CPPTOC_BASE_CPPTOC_H_
6 | #define CEF_LIBCEF_DLL_CPPTOC_BASE_CPPTOC_H_
7 | #pragma once
8 |
9 | #include "include/cef_base.h"
10 | #include "include/capi/cef_base_capi.h"
11 | #include "libcef_dll/cpptoc/cpptoc.h"
12 |
13 | #ifndef USING_CEF_SHARED
14 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only")
15 | #else // USING_CEF_SHARED
16 |
17 | // Wrap a C++ class with a C structure.
18 | class CefBaseCppToC
19 | : public CefCppToC {
20 | public:
21 | CefBaseCppToC();
22 | };
23 |
24 | #endif // USING_CEF_SHARED
25 | #endif // CEF_LIBCEF_DLL_CPPTOC_BASE_CPPTOC_H_
26 |
--------------------------------------------------------------------------------
/libcef_dll/cpptoc/browser_process_handler_cpptoc.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2016 The Chromium Embedded Framework Authors. All rights
2 | // reserved. Use of this source code is governed by a BSD-style license that
3 | // can be found in the LICENSE file.
4 | //
5 | // ---------------------------------------------------------------------------
6 | //
7 | // This file was generated by the CEF translator tool. If making changes by
8 | // hand only do so within the body of existing method and function
9 | // implementations. See the translator.README.txt file in the tools directory
10 | // for more information.
11 | //
12 |
13 | #ifndef CEF_LIBCEF_DLL_CPPTOC_BROWSER_PROCESS_HANDLER_CPPTOC_H_
14 | #define CEF_LIBCEF_DLL_CPPTOC_BROWSER_PROCESS_HANDLER_CPPTOC_H_
15 | #pragma once
16 |
17 | #ifndef USING_CEF_SHARED
18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only")
19 | #else // USING_CEF_SHARED
20 |
21 | #include "include/cef_browser_process_handler.h"
22 | #include "include/capi/cef_browser_process_handler_capi.h"
23 | #include "libcef_dll/cpptoc/cpptoc.h"
24 |
25 | // Wrap a C++ class with a C structure.
26 | // This class may be instantiated and accessed wrapper-side only.
27 | class CefBrowserProcessHandlerCppToC
28 | : public CefCppToC {
30 | public:
31 | CefBrowserProcessHandlerCppToC();
32 | };
33 |
34 | #endif // USING_CEF_SHARED
35 | #endif // CEF_LIBCEF_DLL_CPPTOC_BROWSER_PROCESS_HANDLER_CPPTOC_H_
36 |
--------------------------------------------------------------------------------
/libcef_dll/cpptoc/client_cpptoc.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2016 The Chromium Embedded Framework Authors. All rights
2 | // reserved. Use of this source code is governed by a BSD-style license that
3 | // can be found in the LICENSE file.
4 | //
5 | // ---------------------------------------------------------------------------
6 | //
7 | // This file was generated by the CEF translator tool. If making changes by
8 | // hand only do so within the body of existing method and function
9 | // implementations. See the translator.README.txt file in the tools directory
10 | // for more information.
11 | //
12 |
13 | #ifndef CEF_LIBCEF_DLL_CPPTOC_CLIENT_CPPTOC_H_
14 | #define CEF_LIBCEF_DLL_CPPTOC_CLIENT_CPPTOC_H_
15 | #pragma once
16 |
17 | #ifndef USING_CEF_SHARED
18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only")
19 | #else // USING_CEF_SHARED
20 |
21 | #include "include/cef_client.h"
22 | #include "include/capi/cef_client_capi.h"
23 | #include "libcef_dll/cpptoc/cpptoc.h"
24 |
25 | // Wrap a C++ class with a C structure.
26 | // This class may be instantiated and accessed wrapper-side only.
27 | class CefClientCppToC
28 | : public CefCppToC {
29 | public:
30 | CefClientCppToC();
31 | };
32 |
33 | #endif // USING_CEF_SHARED
34 | #endif // CEF_LIBCEF_DLL_CPPTOC_CLIENT_CPPTOC_H_
35 |
--------------------------------------------------------------------------------
/libcef_dll/cpptoc/completion_callback_cpptoc.cc:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2016 The Chromium Embedded Framework Authors. All rights
2 | // reserved. Use of this source code is governed by a BSD-style license that
3 | // can be found in the LICENSE file.
4 | //
5 | // ---------------------------------------------------------------------------
6 | //
7 | // This file was generated by the CEF translator tool. If making changes by
8 | // hand only do so within the body of existing method and function
9 | // implementations. See the translator.README.txt file in the tools directory
10 | // for more information.
11 | //
12 |
13 | #include "libcef_dll/cpptoc/completion_callback_cpptoc.h"
14 |
15 |
16 | namespace {
17 |
18 | // MEMBER FUNCTIONS - Body may be edited by hand.
19 |
20 | void CEF_CALLBACK completion_callback_on_complete(
21 | struct _cef_completion_callback_t* self) {
22 | // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
23 |
24 | DCHECK(self);
25 | if (!self)
26 | return;
27 |
28 | // Execute
29 | CefCompletionCallbackCppToC::Get(self)->OnComplete();
30 | }
31 |
32 | } // namespace
33 |
34 |
35 | // CONSTRUCTOR - Do not edit by hand.
36 |
37 | CefCompletionCallbackCppToC::CefCompletionCallbackCppToC() {
38 | GetStruct()->on_complete = completion_callback_on_complete;
39 | }
40 |
41 | template<> CefRefPtr CefCppToC::UnwrapDerived(
43 | CefWrapperType type, cef_completion_callback_t* s) {
44 | NOTREACHED() << "Unexpected class type: " << type;
45 | return NULL;
46 | }
47 |
48 | #ifndef NDEBUG
49 | template<> base::AtomicRefCount CefCppToC::DebugObjCt = 0;
51 | #endif
52 |
53 | template<> CefWrapperType CefCppToC::kWrapperType =
55 | WT_COMPLETION_CALLBACK;
56 |
--------------------------------------------------------------------------------
/libcef_dll/cpptoc/completion_callback_cpptoc.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2016 The Chromium Embedded Framework Authors. All rights
2 | // reserved. Use of this source code is governed by a BSD-style license that
3 | // can be found in the LICENSE file.
4 | //
5 | // ---------------------------------------------------------------------------
6 | //
7 | // This file was generated by the CEF translator tool. If making changes by
8 | // hand only do so within the body of existing method and function
9 | // implementations. See the translator.README.txt file in the tools directory
10 | // for more information.
11 | //
12 |
13 | #ifndef CEF_LIBCEF_DLL_CPPTOC_COMPLETION_CALLBACK_CPPTOC_H_
14 | #define CEF_LIBCEF_DLL_CPPTOC_COMPLETION_CALLBACK_CPPTOC_H_
15 | #pragma once
16 |
17 | #ifndef USING_CEF_SHARED
18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only")
19 | #else // USING_CEF_SHARED
20 |
21 | #include "include/cef_callback.h"
22 | #include "include/capi/cef_callback_capi.h"
23 | #include "libcef_dll/cpptoc/cpptoc.h"
24 |
25 | // Wrap a C++ class with a C structure.
26 | // This class may be instantiated and accessed wrapper-side only.
27 | class CefCompletionCallbackCppToC
28 | : public CefCppToC {
30 | public:
31 | CefCompletionCallbackCppToC();
32 | };
33 |
34 | #endif // USING_CEF_SHARED
35 | #endif // CEF_LIBCEF_DLL_CPPTOC_COMPLETION_CALLBACK_CPPTOC_H_
36 |
--------------------------------------------------------------------------------
/libcef_dll/cpptoc/context_menu_handler_cpptoc.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2016 The Chromium Embedded Framework Authors. All rights
2 | // reserved. Use of this source code is governed by a BSD-style license that
3 | // can be found in the LICENSE file.
4 | //
5 | // ---------------------------------------------------------------------------
6 | //
7 | // This file was generated by the CEF translator tool. If making changes by
8 | // hand only do so within the body of existing method and function
9 | // implementations. See the translator.README.txt file in the tools directory
10 | // for more information.
11 | //
12 |
13 | #ifndef CEF_LIBCEF_DLL_CPPTOC_CONTEXT_MENU_HANDLER_CPPTOC_H_
14 | #define CEF_LIBCEF_DLL_CPPTOC_CONTEXT_MENU_HANDLER_CPPTOC_H_
15 | #pragma once
16 |
17 | #ifndef USING_CEF_SHARED
18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only")
19 | #else // USING_CEF_SHARED
20 |
21 | #include "include/cef_context_menu_handler.h"
22 | #include "include/capi/cef_context_menu_handler_capi.h"
23 | #include "libcef_dll/cpptoc/cpptoc.h"
24 |
25 | // Wrap a C++ class with a C structure.
26 | // This class may be instantiated and accessed wrapper-side only.
27 | class CefContextMenuHandlerCppToC
28 | : public CefCppToC {
30 | public:
31 | CefContextMenuHandlerCppToC();
32 | };
33 |
34 | #endif // USING_CEF_SHARED
35 | #endif // CEF_LIBCEF_DLL_CPPTOC_CONTEXT_MENU_HANDLER_CPPTOC_H_
36 |
--------------------------------------------------------------------------------
/libcef_dll/cpptoc/cookie_visitor_cpptoc.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2016 The Chromium Embedded Framework Authors. All rights
2 | // reserved. Use of this source code is governed by a BSD-style license that
3 | // can be found in the LICENSE file.
4 | //
5 | // ---------------------------------------------------------------------------
6 | //
7 | // This file was generated by the CEF translator tool. If making changes by
8 | // hand only do so within the body of existing method and function
9 | // implementations. See the translator.README.txt file in the tools directory
10 | // for more information.
11 | //
12 |
13 | #ifndef CEF_LIBCEF_DLL_CPPTOC_COOKIE_VISITOR_CPPTOC_H_
14 | #define CEF_LIBCEF_DLL_CPPTOC_COOKIE_VISITOR_CPPTOC_H_
15 | #pragma once
16 |
17 | #ifndef USING_CEF_SHARED
18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only")
19 | #else // USING_CEF_SHARED
20 |
21 | #include "include/cef_cookie.h"
22 | #include "include/capi/cef_cookie_capi.h"
23 | #include "libcef_dll/cpptoc/cpptoc.h"
24 |
25 | // Wrap a C++ class with a C structure.
26 | // This class may be instantiated and accessed wrapper-side only.
27 | class CefCookieVisitorCppToC
28 | : public CefCppToC {
30 | public:
31 | CefCookieVisitorCppToC();
32 | };
33 |
34 | #endif // USING_CEF_SHARED
35 | #endif // CEF_LIBCEF_DLL_CPPTOC_COOKIE_VISITOR_CPPTOC_H_
36 |
--------------------------------------------------------------------------------
/libcef_dll/cpptoc/delete_cookies_callback_cpptoc.cc:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2016 The Chromium Embedded Framework Authors. All rights
2 | // reserved. Use of this source code is governed by a BSD-style license that
3 | // can be found in the LICENSE file.
4 | //
5 | // ---------------------------------------------------------------------------
6 | //
7 | // This file was generated by the CEF translator tool. If making changes by
8 | // hand only do so within the body of existing method and function
9 | // implementations. See the translator.README.txt file in the tools directory
10 | // for more information.
11 | //
12 |
13 | #include "libcef_dll/cpptoc/delete_cookies_callback_cpptoc.h"
14 |
15 |
16 | namespace {
17 |
18 | // MEMBER FUNCTIONS - Body may be edited by hand.
19 |
20 | void CEF_CALLBACK delete_cookies_callback_on_complete(
21 | struct _cef_delete_cookies_callback_t* self, int num_deleted) {
22 | // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
23 |
24 | DCHECK(self);
25 | if (!self)
26 | return;
27 |
28 | // Execute
29 | CefDeleteCookiesCallbackCppToC::Get(self)->OnComplete(
30 | num_deleted);
31 | }
32 |
33 | } // namespace
34 |
35 |
36 | // CONSTRUCTOR - Do not edit by hand.
37 |
38 | CefDeleteCookiesCallbackCppToC::CefDeleteCookiesCallbackCppToC() {
39 | GetStruct()->on_complete = delete_cookies_callback_on_complete;
40 | }
41 |
42 | template<> CefRefPtr CefCppToC::UnwrapDerived(
44 | CefWrapperType type, cef_delete_cookies_callback_t* s) {
45 | NOTREACHED() << "Unexpected class type: " << type;
46 | return NULL;
47 | }
48 |
49 | #ifndef NDEBUG
50 | template<> base::AtomicRefCount CefCppToC::DebugObjCt = 0;
52 | #endif
53 |
54 | template<> CefWrapperType CefCppToC::kWrapperType =
56 | WT_DELETE_COOKIES_CALLBACK;
57 |
--------------------------------------------------------------------------------
/libcef_dll/cpptoc/delete_cookies_callback_cpptoc.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2016 The Chromium Embedded Framework Authors. All rights
2 | // reserved. Use of this source code is governed by a BSD-style license that
3 | // can be found in the LICENSE file.
4 | //
5 | // ---------------------------------------------------------------------------
6 | //
7 | // This file was generated by the CEF translator tool. If making changes by
8 | // hand only do so within the body of existing method and function
9 | // implementations. See the translator.README.txt file in the tools directory
10 | // for more information.
11 | //
12 |
13 | #ifndef CEF_LIBCEF_DLL_CPPTOC_DELETE_COOKIES_CALLBACK_CPPTOC_H_
14 | #define CEF_LIBCEF_DLL_CPPTOC_DELETE_COOKIES_CALLBACK_CPPTOC_H_
15 | #pragma once
16 |
17 | #ifndef USING_CEF_SHARED
18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only")
19 | #else // USING_CEF_SHARED
20 |
21 | #include "include/cef_cookie.h"
22 | #include "include/capi/cef_cookie_capi.h"
23 | #include "libcef_dll/cpptoc/cpptoc.h"
24 |
25 | // Wrap a C++ class with a C structure.
26 | // This class may be instantiated and accessed wrapper-side only.
27 | class CefDeleteCookiesCallbackCppToC
28 | : public CefCppToC {
30 | public:
31 | CefDeleteCookiesCallbackCppToC();
32 | };
33 |
34 | #endif // USING_CEF_SHARED
35 | #endif // CEF_LIBCEF_DLL_CPPTOC_DELETE_COOKIES_CALLBACK_CPPTOC_H_
36 |
--------------------------------------------------------------------------------
/libcef_dll/cpptoc/dialog_handler_cpptoc.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2016 The Chromium Embedded Framework Authors. All rights
2 | // reserved. Use of this source code is governed by a BSD-style license that
3 | // can be found in the LICENSE file.
4 | //
5 | // ---------------------------------------------------------------------------
6 | //
7 | // This file was generated by the CEF translator tool. If making changes by
8 | // hand only do so within the body of existing method and function
9 | // implementations. See the translator.README.txt file in the tools directory
10 | // for more information.
11 | //
12 |
13 | #ifndef CEF_LIBCEF_DLL_CPPTOC_DIALOG_HANDLER_CPPTOC_H_
14 | #define CEF_LIBCEF_DLL_CPPTOC_DIALOG_HANDLER_CPPTOC_H_
15 | #pragma once
16 |
17 | #ifndef USING_CEF_SHARED
18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only")
19 | #else // USING_CEF_SHARED
20 |
21 | #include "include/cef_dialog_handler.h"
22 | #include "include/capi/cef_dialog_handler_capi.h"
23 | #include "libcef_dll/cpptoc/cpptoc.h"
24 |
25 | // Wrap a C++ class with a C structure.
26 | // This class may be instantiated and accessed wrapper-side only.
27 | class CefDialogHandlerCppToC
28 | : public CefCppToC {
30 | public:
31 | CefDialogHandlerCppToC();
32 | };
33 |
34 | #endif // USING_CEF_SHARED
35 | #endif // CEF_LIBCEF_DLL_CPPTOC_DIALOG_HANDLER_CPPTOC_H_
36 |
--------------------------------------------------------------------------------
/libcef_dll/cpptoc/display_handler_cpptoc.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2016 The Chromium Embedded Framework Authors. All rights
2 | // reserved. Use of this source code is governed by a BSD-style license that
3 | // can be found in the LICENSE file.
4 | //
5 | // ---------------------------------------------------------------------------
6 | //
7 | // This file was generated by the CEF translator tool. If making changes by
8 | // hand only do so within the body of existing method and function
9 | // implementations. See the translator.README.txt file in the tools directory
10 | // for more information.
11 | //
12 |
13 | #ifndef CEF_LIBCEF_DLL_CPPTOC_DISPLAY_HANDLER_CPPTOC_H_
14 | #define CEF_LIBCEF_DLL_CPPTOC_DISPLAY_HANDLER_CPPTOC_H_
15 | #pragma once
16 |
17 | #ifndef USING_CEF_SHARED
18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only")
19 | #else // USING_CEF_SHARED
20 |
21 | #include "include/cef_display_handler.h"
22 | #include "include/capi/cef_display_handler_capi.h"
23 | #include "libcef_dll/cpptoc/cpptoc.h"
24 |
25 | // Wrap a C++ class with a C structure.
26 | // This class may be instantiated and accessed wrapper-side only.
27 | class CefDisplayHandlerCppToC
28 | : public CefCppToC {
30 | public:
31 | CefDisplayHandlerCppToC();
32 | };
33 |
34 | #endif // USING_CEF_SHARED
35 | #endif // CEF_LIBCEF_DLL_CPPTOC_DISPLAY_HANDLER_CPPTOC_H_
36 |
--------------------------------------------------------------------------------
/libcef_dll/cpptoc/domvisitor_cpptoc.cc:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2016 The Chromium Embedded Framework Authors. All rights
2 | // reserved. Use of this source code is governed by a BSD-style license that
3 | // can be found in the LICENSE file.
4 | //
5 | // ---------------------------------------------------------------------------
6 | //
7 | // This file was generated by the CEF translator tool. If making changes by
8 | // hand only do so within the body of existing method and function
9 | // implementations. See the translator.README.txt file in the tools directory
10 | // for more information.
11 | //
12 |
13 | #include "libcef_dll/cpptoc/domvisitor_cpptoc.h"
14 | #include "libcef_dll/ctocpp/domdocument_ctocpp.h"
15 |
16 |
17 | namespace {
18 |
19 | // MEMBER FUNCTIONS - Body may be edited by hand.
20 |
21 | void CEF_CALLBACK domvisitor_visit(struct _cef_domvisitor_t* self,
22 | struct _cef_domdocument_t* document) {
23 | // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
24 |
25 | DCHECK(self);
26 | if (!self)
27 | return;
28 | // Verify param: document; type: refptr_diff
29 | DCHECK(document);
30 | if (!document)
31 | return;
32 |
33 | // Execute
34 | CefDOMVisitorCppToC::Get(self)->Visit(
35 | CefDOMDocumentCToCpp::Wrap(document));
36 | }
37 |
38 | } // namespace
39 |
40 |
41 | // CONSTRUCTOR - Do not edit by hand.
42 |
43 | CefDOMVisitorCppToC::CefDOMVisitorCppToC() {
44 | GetStruct()->visit = domvisitor_visit;
45 | }
46 |
47 | template<> CefRefPtr CefCppToC::UnwrapDerived(CefWrapperType type,
49 | cef_domvisitor_t* s) {
50 | NOTREACHED() << "Unexpected class type: " << type;
51 | return NULL;
52 | }
53 |
54 | #ifndef NDEBUG
55 | template<> base::AtomicRefCount CefCppToC::DebugObjCt = 0;
57 | #endif
58 |
59 | template<> CefWrapperType CefCppToC::kWrapperType = WT_DOMVISITOR;
61 |
--------------------------------------------------------------------------------
/libcef_dll/cpptoc/domvisitor_cpptoc.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2016 The Chromium Embedded Framework Authors. All rights
2 | // reserved. Use of this source code is governed by a BSD-style license that
3 | // can be found in the LICENSE file.
4 | //
5 | // ---------------------------------------------------------------------------
6 | //
7 | // This file was generated by the CEF translator tool. If making changes by
8 | // hand only do so within the body of existing method and function
9 | // implementations. See the translator.README.txt file in the tools directory
10 | // for more information.
11 | //
12 |
13 | #ifndef CEF_LIBCEF_DLL_CPPTOC_DOMVISITOR_CPPTOC_H_
14 | #define CEF_LIBCEF_DLL_CPPTOC_DOMVISITOR_CPPTOC_H_
15 | #pragma once
16 |
17 | #ifndef USING_CEF_SHARED
18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only")
19 | #else // USING_CEF_SHARED
20 |
21 | #include "include/cef_dom.h"
22 | #include "include/capi/cef_dom_capi.h"
23 | #include "libcef_dll/cpptoc/cpptoc.h"
24 |
25 | // Wrap a C++ class with a C structure.
26 | // This class may be instantiated and accessed wrapper-side only.
27 | class CefDOMVisitorCppToC
28 | : public CefCppToC {
29 | public:
30 | CefDOMVisitorCppToC();
31 | };
32 |
33 | #endif // USING_CEF_SHARED
34 | #endif // CEF_LIBCEF_DLL_CPPTOC_DOMVISITOR_CPPTOC_H_
35 |
--------------------------------------------------------------------------------
/libcef_dll/cpptoc/download_handler_cpptoc.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2016 The Chromium Embedded Framework Authors. All rights
2 | // reserved. Use of this source code is governed by a BSD-style license that
3 | // can be found in the LICENSE file.
4 | //
5 | // ---------------------------------------------------------------------------
6 | //
7 | // This file was generated by the CEF translator tool. If making changes by
8 | // hand only do so within the body of existing method and function
9 | // implementations. See the translator.README.txt file in the tools directory
10 | // for more information.
11 | //
12 |
13 | #ifndef CEF_LIBCEF_DLL_CPPTOC_DOWNLOAD_HANDLER_CPPTOC_H_
14 | #define CEF_LIBCEF_DLL_CPPTOC_DOWNLOAD_HANDLER_CPPTOC_H_
15 | #pragma once
16 |
17 | #ifndef USING_CEF_SHARED
18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only")
19 | #else // USING_CEF_SHARED
20 |
21 | #include "include/cef_download_handler.h"
22 | #include "include/capi/cef_download_handler_capi.h"
23 | #include "libcef_dll/cpptoc/cpptoc.h"
24 |
25 | // Wrap a C++ class with a C structure.
26 | // This class may be instantiated and accessed wrapper-side only.
27 | class CefDownloadHandlerCppToC
28 | : public CefCppToC {
30 | public:
31 | CefDownloadHandlerCppToC();
32 | };
33 |
34 | #endif // USING_CEF_SHARED
35 | #endif // CEF_LIBCEF_DLL_CPPTOC_DOWNLOAD_HANDLER_CPPTOC_H_
36 |
--------------------------------------------------------------------------------
/libcef_dll/cpptoc/drag_handler_cpptoc.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2016 The Chromium Embedded Framework Authors. All rights
2 | // reserved. Use of this source code is governed by a BSD-style license that
3 | // can be found in the LICENSE file.
4 | //
5 | // ---------------------------------------------------------------------------
6 | //
7 | // This file was generated by the CEF translator tool. If making changes by
8 | // hand only do so within the body of existing method and function
9 | // implementations. See the translator.README.txt file in the tools directory
10 | // for more information.
11 | //
12 |
13 | #ifndef CEF_LIBCEF_DLL_CPPTOC_DRAG_HANDLER_CPPTOC_H_
14 | #define CEF_LIBCEF_DLL_CPPTOC_DRAG_HANDLER_CPPTOC_H_
15 | #pragma once
16 |
17 | #ifndef USING_CEF_SHARED
18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only")
19 | #else // USING_CEF_SHARED
20 |
21 | #include "include/cef_drag_handler.h"
22 | #include "include/capi/cef_drag_handler_capi.h"
23 | #include "libcef_dll/cpptoc/cpptoc.h"
24 |
25 | // Wrap a C++ class with a C structure.
26 | // This class may be instantiated and accessed wrapper-side only.
27 | class CefDragHandlerCppToC
28 | : public CefCppToC {
30 | public:
31 | CefDragHandlerCppToC();
32 | };
33 |
34 | #endif // USING_CEF_SHARED
35 | #endif // CEF_LIBCEF_DLL_CPPTOC_DRAG_HANDLER_CPPTOC_H_
36 |
--------------------------------------------------------------------------------
/libcef_dll/cpptoc/end_tracing_callback_cpptoc.cc:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2016 The Chromium Embedded Framework Authors. All rights
2 | // reserved. Use of this source code is governed by a BSD-style license that
3 | // can be found in the LICENSE file.
4 | //
5 | // ---------------------------------------------------------------------------
6 | //
7 | // This file was generated by the CEF translator tool. If making changes by
8 | // hand only do so within the body of existing method and function
9 | // implementations. See the translator.README.txt file in the tools directory
10 | // for more information.
11 | //
12 |
13 | #include "libcef_dll/cpptoc/end_tracing_callback_cpptoc.h"
14 |
15 |
16 | namespace {
17 |
18 | // MEMBER FUNCTIONS - Body may be edited by hand.
19 |
20 | void CEF_CALLBACK end_tracing_callback_on_end_tracing_complete(
21 | struct _cef_end_tracing_callback_t* self,
22 | const cef_string_t* tracing_file) {
23 | // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
24 |
25 | DCHECK(self);
26 | if (!self)
27 | return;
28 | // Verify param: tracing_file; type: string_byref_const
29 | DCHECK(tracing_file);
30 | if (!tracing_file)
31 | return;
32 |
33 | // Execute
34 | CefEndTracingCallbackCppToC::Get(self)->OnEndTracingComplete(
35 | CefString(tracing_file));
36 | }
37 |
38 | } // namespace
39 |
40 |
41 | // CONSTRUCTOR - Do not edit by hand.
42 |
43 | CefEndTracingCallbackCppToC::CefEndTracingCallbackCppToC() {
44 | GetStruct()->on_end_tracing_complete =
45 | end_tracing_callback_on_end_tracing_complete;
46 | }
47 |
48 | template<> CefRefPtr CefCppToC::UnwrapDerived(
50 | CefWrapperType type, cef_end_tracing_callback_t* s) {
51 | NOTREACHED() << "Unexpected class type: " << type;
52 | return NULL;
53 | }
54 |
55 | #ifndef NDEBUG
56 | template<> base::AtomicRefCount CefCppToC::DebugObjCt = 0;
58 | #endif
59 |
60 | template<> CefWrapperType CefCppToC::kWrapperType =
62 | WT_END_TRACING_CALLBACK;
63 |
--------------------------------------------------------------------------------
/libcef_dll/cpptoc/end_tracing_callback_cpptoc.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2016 The Chromium Embedded Framework Authors. All rights
2 | // reserved. Use of this source code is governed by a BSD-style license that
3 | // can be found in the LICENSE file.
4 | //
5 | // ---------------------------------------------------------------------------
6 | //
7 | // This file was generated by the CEF translator tool. If making changes by
8 | // hand only do so within the body of existing method and function
9 | // implementations. See the translator.README.txt file in the tools directory
10 | // for more information.
11 | //
12 |
13 | #ifndef CEF_LIBCEF_DLL_CPPTOC_END_TRACING_CALLBACK_CPPTOC_H_
14 | #define CEF_LIBCEF_DLL_CPPTOC_END_TRACING_CALLBACK_CPPTOC_H_
15 | #pragma once
16 |
17 | #ifndef USING_CEF_SHARED
18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only")
19 | #else // USING_CEF_SHARED
20 |
21 | #include "include/cef_trace.h"
22 | #include "include/capi/cef_trace_capi.h"
23 | #include "libcef_dll/cpptoc/cpptoc.h"
24 |
25 | // Wrap a C++ class with a C structure.
26 | // This class may be instantiated and accessed wrapper-side only.
27 | class CefEndTracingCallbackCppToC
28 | : public CefCppToC {
30 | public:
31 | CefEndTracingCallbackCppToC();
32 | };
33 |
34 | #endif // USING_CEF_SHARED
35 | #endif // CEF_LIBCEF_DLL_CPPTOC_END_TRACING_CALLBACK_CPPTOC_H_
36 |
--------------------------------------------------------------------------------
/libcef_dll/cpptoc/find_handler_cpptoc.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2016 The Chromium Embedded Framework Authors. All rights
2 | // reserved. Use of this source code is governed by a BSD-style license that
3 | // can be found in the LICENSE file.
4 | //
5 | // ---------------------------------------------------------------------------
6 | //
7 | // This file was generated by the CEF translator tool. If making changes by
8 | // hand only do so within the body of existing method and function
9 | // implementations. See the translator.README.txt file in the tools directory
10 | // for more information.
11 | //
12 |
13 | #ifndef CEF_LIBCEF_DLL_CPPTOC_FIND_HANDLER_CPPTOC_H_
14 | #define CEF_LIBCEF_DLL_CPPTOC_FIND_HANDLER_CPPTOC_H_
15 | #pragma once
16 |
17 | #ifndef USING_CEF_SHARED
18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only")
19 | #else // USING_CEF_SHARED
20 |
21 | #include "include/cef_find_handler.h"
22 | #include "include/capi/cef_find_handler_capi.h"
23 | #include "libcef_dll/cpptoc/cpptoc.h"
24 |
25 | // Wrap a C++ class with a C structure.
26 | // This class may be instantiated and accessed wrapper-side only.
27 | class CefFindHandlerCppToC
28 | : public CefCppToC {
30 | public:
31 | CefFindHandlerCppToC();
32 | };
33 |
34 | #endif // USING_CEF_SHARED
35 | #endif // CEF_LIBCEF_DLL_CPPTOC_FIND_HANDLER_CPPTOC_H_
36 |
--------------------------------------------------------------------------------
/libcef_dll/cpptoc/focus_handler_cpptoc.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2016 The Chromium Embedded Framework Authors. All rights
2 | // reserved. Use of this source code is governed by a BSD-style license that
3 | // can be found in the LICENSE file.
4 | //
5 | // ---------------------------------------------------------------------------
6 | //
7 | // This file was generated by the CEF translator tool. If making changes by
8 | // hand only do so within the body of existing method and function
9 | // implementations. See the translator.README.txt file in the tools directory
10 | // for more information.
11 | //
12 |
13 | #ifndef CEF_LIBCEF_DLL_CPPTOC_FOCUS_HANDLER_CPPTOC_H_
14 | #define CEF_LIBCEF_DLL_CPPTOC_FOCUS_HANDLER_CPPTOC_H_
15 | #pragma once
16 |
17 | #ifndef USING_CEF_SHARED
18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only")
19 | #else // USING_CEF_SHARED
20 |
21 | #include "include/cef_focus_handler.h"
22 | #include "include/capi/cef_focus_handler_capi.h"
23 | #include "libcef_dll/cpptoc/cpptoc.h"
24 |
25 | // Wrap a C++ class with a C structure.
26 | // This class may be instantiated and accessed wrapper-side only.
27 | class CefFocusHandlerCppToC
28 | : public CefCppToC {
30 | public:
31 | CefFocusHandlerCppToC();
32 | };
33 |
34 | #endif // USING_CEF_SHARED
35 | #endif // CEF_LIBCEF_DLL_CPPTOC_FOCUS_HANDLER_CPPTOC_H_
36 |
--------------------------------------------------------------------------------
/libcef_dll/cpptoc/geolocation_handler_cpptoc.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2016 The Chromium Embedded Framework Authors. All rights
2 | // reserved. Use of this source code is governed by a BSD-style license that
3 | // can be found in the LICENSE file.
4 | //
5 | // ---------------------------------------------------------------------------
6 | //
7 | // This file was generated by the CEF translator tool. If making changes by
8 | // hand only do so within the body of existing method and function
9 | // implementations. See the translator.README.txt file in the tools directory
10 | // for more information.
11 | //
12 |
13 | #ifndef CEF_LIBCEF_DLL_CPPTOC_GEOLOCATION_HANDLER_CPPTOC_H_
14 | #define CEF_LIBCEF_DLL_CPPTOC_GEOLOCATION_HANDLER_CPPTOC_H_
15 | #pragma once
16 |
17 | #ifndef USING_CEF_SHARED
18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only")
19 | #else // USING_CEF_SHARED
20 |
21 | #include "include/cef_geolocation_handler.h"
22 | #include "include/capi/cef_geolocation_handler_capi.h"
23 | #include "libcef_dll/cpptoc/cpptoc.h"
24 |
25 | // Wrap a C++ class with a C structure.
26 | // This class may be instantiated and accessed wrapper-side only.
27 | class CefGeolocationHandlerCppToC
28 | : public CefCppToC {
30 | public:
31 | CefGeolocationHandlerCppToC();
32 | };
33 |
34 | #endif // USING_CEF_SHARED
35 | #endif // CEF_LIBCEF_DLL_CPPTOC_GEOLOCATION_HANDLER_CPPTOC_H_
36 |
--------------------------------------------------------------------------------
/libcef_dll/cpptoc/get_geolocation_callback_cpptoc.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2016 The Chromium Embedded Framework Authors. All rights
2 | // reserved. Use of this source code is governed by a BSD-style license that
3 | // can be found in the LICENSE file.
4 | //
5 | // ---------------------------------------------------------------------------
6 | //
7 | // This file was generated by the CEF translator tool. If making changes by
8 | // hand only do so within the body of existing method and function
9 | // implementations. See the translator.README.txt file in the tools directory
10 | // for more information.
11 | //
12 |
13 | #ifndef CEF_LIBCEF_DLL_CPPTOC_GET_GEOLOCATION_CALLBACK_CPPTOC_H_
14 | #define CEF_LIBCEF_DLL_CPPTOC_GET_GEOLOCATION_CALLBACK_CPPTOC_H_
15 | #pragma once
16 |
17 | #ifndef USING_CEF_SHARED
18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only")
19 | #else // USING_CEF_SHARED
20 |
21 | #include "include/cef_geolocation.h"
22 | #include "include/capi/cef_geolocation_capi.h"
23 | #include "libcef_dll/cpptoc/cpptoc.h"
24 |
25 | // Wrap a C++ class with a C structure.
26 | // This class may be instantiated and accessed wrapper-side only.
27 | class CefGetGeolocationCallbackCppToC
28 | : public CefCppToC {
30 | public:
31 | CefGetGeolocationCallbackCppToC();
32 | };
33 |
34 | #endif // USING_CEF_SHARED
35 | #endif // CEF_LIBCEF_DLL_CPPTOC_GET_GEOLOCATION_CALLBACK_CPPTOC_H_
36 |
--------------------------------------------------------------------------------
/libcef_dll/cpptoc/jsdialog_handler_cpptoc.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2016 The Chromium Embedded Framework Authors. All rights
2 | // reserved. Use of this source code is governed by a BSD-style license that
3 | // can be found in the LICENSE file.
4 | //
5 | // ---------------------------------------------------------------------------
6 | //
7 | // This file was generated by the CEF translator tool. If making changes by
8 | // hand only do so within the body of existing method and function
9 | // implementations. See the translator.README.txt file in the tools directory
10 | // for more information.
11 | //
12 |
13 | #ifndef CEF_LIBCEF_DLL_CPPTOC_JSDIALOG_HANDLER_CPPTOC_H_
14 | #define CEF_LIBCEF_DLL_CPPTOC_JSDIALOG_HANDLER_CPPTOC_H_
15 | #pragma once
16 |
17 | #ifndef USING_CEF_SHARED
18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only")
19 | #else // USING_CEF_SHARED
20 |
21 | #include "include/cef_jsdialog_handler.h"
22 | #include "include/capi/cef_jsdialog_handler_capi.h"
23 | #include "libcef_dll/cpptoc/cpptoc.h"
24 |
25 | // Wrap a C++ class with a C structure.
26 | // This class may be instantiated and accessed wrapper-side only.
27 | class CefJSDialogHandlerCppToC
28 | : public CefCppToC {
30 | public:
31 | CefJSDialogHandlerCppToC();
32 | };
33 |
34 | #endif // USING_CEF_SHARED
35 | #endif // CEF_LIBCEF_DLL_CPPTOC_JSDIALOG_HANDLER_CPPTOC_H_
36 |
--------------------------------------------------------------------------------
/libcef_dll/cpptoc/keyboard_handler_cpptoc.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2016 The Chromium Embedded Framework Authors. All rights
2 | // reserved. Use of this source code is governed by a BSD-style license that
3 | // can be found in the LICENSE file.
4 | //
5 | // ---------------------------------------------------------------------------
6 | //
7 | // This file was generated by the CEF translator tool. If making changes by
8 | // hand only do so within the body of existing method and function
9 | // implementations. See the translator.README.txt file in the tools directory
10 | // for more information.
11 | //
12 |
13 | #ifndef CEF_LIBCEF_DLL_CPPTOC_KEYBOARD_HANDLER_CPPTOC_H_
14 | #define CEF_LIBCEF_DLL_CPPTOC_KEYBOARD_HANDLER_CPPTOC_H_
15 | #pragma once
16 |
17 | #ifndef USING_CEF_SHARED
18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only")
19 | #else // USING_CEF_SHARED
20 |
21 | #include "include/cef_keyboard_handler.h"
22 | #include "include/capi/cef_keyboard_handler_capi.h"
23 | #include "libcef_dll/cpptoc/cpptoc.h"
24 |
25 | // Wrap a C++ class with a C structure.
26 | // This class may be instantiated and accessed wrapper-side only.
27 | class CefKeyboardHandlerCppToC
28 | : public CefCppToC {
30 | public:
31 | CefKeyboardHandlerCppToC();
32 | };
33 |
34 | #endif // USING_CEF_SHARED
35 | #endif // CEF_LIBCEF_DLL_CPPTOC_KEYBOARD_HANDLER_CPPTOC_H_
36 |
--------------------------------------------------------------------------------
/libcef_dll/cpptoc/life_span_handler_cpptoc.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2016 The Chromium Embedded Framework Authors. All rights
2 | // reserved. Use of this source code is governed by a BSD-style license that
3 | // can be found in the LICENSE file.
4 | //
5 | // ---------------------------------------------------------------------------
6 | //
7 | // This file was generated by the CEF translator tool. If making changes by
8 | // hand only do so within the body of existing method and function
9 | // implementations. See the translator.README.txt file in the tools directory
10 | // for more information.
11 | //
12 |
13 | #ifndef CEF_LIBCEF_DLL_CPPTOC_LIFE_SPAN_HANDLER_CPPTOC_H_
14 | #define CEF_LIBCEF_DLL_CPPTOC_LIFE_SPAN_HANDLER_CPPTOC_H_
15 | #pragma once
16 |
17 | #ifndef USING_CEF_SHARED
18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only")
19 | #else // USING_CEF_SHARED
20 |
21 | #include "include/cef_life_span_handler.h"
22 | #include "include/capi/cef_life_span_handler_capi.h"
23 | #include "include/cef_client.h"
24 | #include "include/capi/cef_client_capi.h"
25 | #include "libcef_dll/cpptoc/cpptoc.h"
26 |
27 | // Wrap a C++ class with a C structure.
28 | // This class may be instantiated and accessed wrapper-side only.
29 | class CefLifeSpanHandlerCppToC
30 | : public CefCppToC {
32 | public:
33 | CefLifeSpanHandlerCppToC();
34 | };
35 |
36 | #endif // USING_CEF_SHARED
37 | #endif // CEF_LIBCEF_DLL_CPPTOC_LIFE_SPAN_HANDLER_CPPTOC_H_
38 |
--------------------------------------------------------------------------------
/libcef_dll/cpptoc/load_handler_cpptoc.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2016 The Chromium Embedded Framework Authors. All rights
2 | // reserved. Use of this source code is governed by a BSD-style license that
3 | // can be found in the LICENSE file.
4 | //
5 | // ---------------------------------------------------------------------------
6 | //
7 | // This file was generated by the CEF translator tool. If making changes by
8 | // hand only do so within the body of existing method and function
9 | // implementations. See the translator.README.txt file in the tools directory
10 | // for more information.
11 | //
12 |
13 | #ifndef CEF_LIBCEF_DLL_CPPTOC_LOAD_HANDLER_CPPTOC_H_
14 | #define CEF_LIBCEF_DLL_CPPTOC_LOAD_HANDLER_CPPTOC_H_
15 | #pragma once
16 |
17 | #ifndef USING_CEF_SHARED
18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only")
19 | #else // USING_CEF_SHARED
20 |
21 | #include "include/cef_load_handler.h"
22 | #include "include/capi/cef_load_handler_capi.h"
23 | #include "libcef_dll/cpptoc/cpptoc.h"
24 |
25 | // Wrap a C++ class with a C structure.
26 | // This class may be instantiated and accessed wrapper-side only.
27 | class CefLoadHandlerCppToC
28 | : public CefCppToC {
30 | public:
31 | CefLoadHandlerCppToC();
32 | };
33 |
34 | #endif // USING_CEF_SHARED
35 | #endif // CEF_LIBCEF_DLL_CPPTOC_LOAD_HANDLER_CPPTOC_H_
36 |
--------------------------------------------------------------------------------
/libcef_dll/cpptoc/navigation_entry_visitor_cpptoc.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2016 The Chromium Embedded Framework Authors. All rights
2 | // reserved. Use of this source code is governed by a BSD-style license that
3 | // can be found in the LICENSE file.
4 | //
5 | // ---------------------------------------------------------------------------
6 | //
7 | // This file was generated by the CEF translator tool. If making changes by
8 | // hand only do so within the body of existing method and function
9 | // implementations. See the translator.README.txt file in the tools directory
10 | // for more information.
11 | //
12 |
13 | #ifndef CEF_LIBCEF_DLL_CPPTOC_NAVIGATION_ENTRY_VISITOR_CPPTOC_H_
14 | #define CEF_LIBCEF_DLL_CPPTOC_NAVIGATION_ENTRY_VISITOR_CPPTOC_H_
15 | #pragma once
16 |
17 | #ifndef USING_CEF_SHARED
18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only")
19 | #else // USING_CEF_SHARED
20 |
21 | #include "include/cef_browser.h"
22 | #include "include/capi/cef_browser_capi.h"
23 | #include "include/cef_client.h"
24 | #include "include/capi/cef_client_capi.h"
25 | #include "libcef_dll/cpptoc/cpptoc.h"
26 |
27 | // Wrap a C++ class with a C structure.
28 | // This class may be instantiated and accessed wrapper-side only.
29 | class CefNavigationEntryVisitorCppToC
30 | : public CefCppToC {
32 | public:
33 | CefNavigationEntryVisitorCppToC();
34 | };
35 |
36 | #endif // USING_CEF_SHARED
37 | #endif // CEF_LIBCEF_DLL_CPPTOC_NAVIGATION_ENTRY_VISITOR_CPPTOC_H_
38 |
--------------------------------------------------------------------------------
/libcef_dll/cpptoc/pdf_print_callback_cpptoc.cc:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2016 The Chromium Embedded Framework Authors. All rights
2 | // reserved. Use of this source code is governed by a BSD-style license that
3 | // can be found in the LICENSE file.
4 | //
5 | // ---------------------------------------------------------------------------
6 | //
7 | // This file was generated by the CEF translator tool. If making changes by
8 | // hand only do so within the body of existing method and function
9 | // implementations. See the translator.README.txt file in the tools directory
10 | // for more information.
11 | //
12 |
13 | #include "libcef_dll/cpptoc/pdf_print_callback_cpptoc.h"
14 |
15 |
16 | namespace {
17 |
18 | // MEMBER FUNCTIONS - Body may be edited by hand.
19 |
20 | void CEF_CALLBACK pdf_print_callback_on_pdf_print_finished(
21 | struct _cef_pdf_print_callback_t* self, const cef_string_t* path, int ok) {
22 | // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
23 |
24 | DCHECK(self);
25 | if (!self)
26 | return;
27 | // Verify param: path; type: string_byref_const
28 | DCHECK(path);
29 | if (!path)
30 | return;
31 |
32 | // Execute
33 | CefPdfPrintCallbackCppToC::Get(self)->OnPdfPrintFinished(
34 | CefString(path),
35 | ok?true:false);
36 | }
37 |
38 | } // namespace
39 |
40 |
41 | // CONSTRUCTOR - Do not edit by hand.
42 |
43 | CefPdfPrintCallbackCppToC::CefPdfPrintCallbackCppToC() {
44 | GetStruct()->on_pdf_print_finished = pdf_print_callback_on_pdf_print_finished;
45 | }
46 |
47 | template<> CefRefPtr CefCppToC::UnwrapDerived(
49 | CefWrapperType type, cef_pdf_print_callback_t* s) {
50 | NOTREACHED() << "Unexpected class type: " << type;
51 | return NULL;
52 | }
53 |
54 | #ifndef NDEBUG
55 | template<> base::AtomicRefCount CefCppToC::DebugObjCt = 0;
57 | #endif
58 |
59 | template<> CefWrapperType CefCppToC::kWrapperType =
61 | WT_PDF_PRINT_CALLBACK;
62 |
--------------------------------------------------------------------------------
/libcef_dll/cpptoc/pdf_print_callback_cpptoc.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2016 The Chromium Embedded Framework Authors. All rights
2 | // reserved. Use of this source code is governed by a BSD-style license that
3 | // can be found in the LICENSE file.
4 | //
5 | // ---------------------------------------------------------------------------
6 | //
7 | // This file was generated by the CEF translator tool. If making changes by
8 | // hand only do so within the body of existing method and function
9 | // implementations. See the translator.README.txt file in the tools directory
10 | // for more information.
11 | //
12 |
13 | #ifndef CEF_LIBCEF_DLL_CPPTOC_PDF_PRINT_CALLBACK_CPPTOC_H_
14 | #define CEF_LIBCEF_DLL_CPPTOC_PDF_PRINT_CALLBACK_CPPTOC_H_
15 | #pragma once
16 |
17 | #ifndef USING_CEF_SHARED
18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only")
19 | #else // USING_CEF_SHARED
20 |
21 | #include "include/cef_browser.h"
22 | #include "include/capi/cef_browser_capi.h"
23 | #include "include/cef_client.h"
24 | #include "include/capi/cef_client_capi.h"
25 | #include "libcef_dll/cpptoc/cpptoc.h"
26 |
27 | // Wrap a C++ class with a C structure.
28 | // This class may be instantiated and accessed wrapper-side only.
29 | class CefPdfPrintCallbackCppToC
30 | : public CefCppToC {
32 | public:
33 | CefPdfPrintCallbackCppToC();
34 | };
35 |
36 | #endif // USING_CEF_SHARED
37 | #endif // CEF_LIBCEF_DLL_CPPTOC_PDF_PRINT_CALLBACK_CPPTOC_H_
38 |
--------------------------------------------------------------------------------
/libcef_dll/cpptoc/print_handler_cpptoc.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2016 The Chromium Embedded Framework Authors. All rights
2 | // reserved. Use of this source code is governed by a BSD-style license that
3 | // can be found in the LICENSE file.
4 | //
5 | // ---------------------------------------------------------------------------
6 | //
7 | // This file was generated by the CEF translator tool. If making changes by
8 | // hand only do so within the body of existing method and function
9 | // implementations. See the translator.README.txt file in the tools directory
10 | // for more information.
11 | //
12 |
13 | #ifndef CEF_LIBCEF_DLL_CPPTOC_PRINT_HANDLER_CPPTOC_H_
14 | #define CEF_LIBCEF_DLL_CPPTOC_PRINT_HANDLER_CPPTOC_H_
15 | #pragma once
16 |
17 | #ifndef USING_CEF_SHARED
18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only")
19 | #else // USING_CEF_SHARED
20 |
21 | #include "include/cef_print_handler.h"
22 | #include "include/capi/cef_print_handler_capi.h"
23 | #include "libcef_dll/cpptoc/cpptoc.h"
24 |
25 | // Wrap a C++ class with a C structure.
26 | // This class may be instantiated and accessed wrapper-side only.
27 | class CefPrintHandlerCppToC
28 | : public CefCppToC {
30 | public:
31 | CefPrintHandlerCppToC();
32 | };
33 |
34 | #endif // USING_CEF_SHARED
35 | #endif // CEF_LIBCEF_DLL_CPPTOC_PRINT_HANDLER_CPPTOC_H_
36 |
--------------------------------------------------------------------------------
/libcef_dll/cpptoc/read_handler_cpptoc.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2016 The Chromium Embedded Framework Authors. All rights
2 | // reserved. Use of this source code is governed by a BSD-style license that
3 | // can be found in the LICENSE file.
4 | //
5 | // ---------------------------------------------------------------------------
6 | //
7 | // This file was generated by the CEF translator tool. If making changes by
8 | // hand only do so within the body of existing method and function
9 | // implementations. See the translator.README.txt file in the tools directory
10 | // for more information.
11 | //
12 |
13 | #ifndef CEF_LIBCEF_DLL_CPPTOC_READ_HANDLER_CPPTOC_H_
14 | #define CEF_LIBCEF_DLL_CPPTOC_READ_HANDLER_CPPTOC_H_
15 | #pragma once
16 |
17 | #ifndef USING_CEF_SHARED
18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only")
19 | #else // USING_CEF_SHARED
20 |
21 | #include "include/cef_stream.h"
22 | #include "include/capi/cef_stream_capi.h"
23 | #include "libcef_dll/cpptoc/cpptoc.h"
24 |
25 | // Wrap a C++ class with a C structure.
26 | // This class may be instantiated and accessed wrapper-side only.
27 | class CefReadHandlerCppToC
28 | : public CefCppToC {
30 | public:
31 | CefReadHandlerCppToC();
32 | };
33 |
34 | #endif // USING_CEF_SHARED
35 | #endif // CEF_LIBCEF_DLL_CPPTOC_READ_HANDLER_CPPTOC_H_
36 |
--------------------------------------------------------------------------------
/libcef_dll/cpptoc/render_handler_cpptoc.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2016 The Chromium Embedded Framework Authors. All rights
2 | // reserved. Use of this source code is governed by a BSD-style license that
3 | // can be found in the LICENSE file.
4 | //
5 | // ---------------------------------------------------------------------------
6 | //
7 | // This file was generated by the CEF translator tool. If making changes by
8 | // hand only do so within the body of existing method and function
9 | // implementations. See the translator.README.txt file in the tools directory
10 | // for more information.
11 | //
12 |
13 | #ifndef CEF_LIBCEF_DLL_CPPTOC_RENDER_HANDLER_CPPTOC_H_
14 | #define CEF_LIBCEF_DLL_CPPTOC_RENDER_HANDLER_CPPTOC_H_
15 | #pragma once
16 |
17 | #ifndef USING_CEF_SHARED
18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only")
19 | #else // USING_CEF_SHARED
20 |
21 | #include "include/cef_render_handler.h"
22 | #include "include/capi/cef_render_handler_capi.h"
23 | #include "libcef_dll/cpptoc/cpptoc.h"
24 |
25 | // Wrap a C++ class with a C structure.
26 | // This class may be instantiated and accessed wrapper-side only.
27 | class CefRenderHandlerCppToC
28 | : public CefCppToC {
30 | public:
31 | CefRenderHandlerCppToC();
32 | };
33 |
34 | #endif // USING_CEF_SHARED
35 | #endif // CEF_LIBCEF_DLL_CPPTOC_RENDER_HANDLER_CPPTOC_H_
36 |
--------------------------------------------------------------------------------
/libcef_dll/cpptoc/render_process_handler_cpptoc.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2016 The Chromium Embedded Framework Authors. All rights
2 | // reserved. Use of this source code is governed by a BSD-style license that
3 | // can be found in the LICENSE file.
4 | //
5 | // ---------------------------------------------------------------------------
6 | //
7 | // This file was generated by the CEF translator tool. If making changes by
8 | // hand only do so within the body of existing method and function
9 | // implementations. See the translator.README.txt file in the tools directory
10 | // for more information.
11 | //
12 |
13 | #ifndef CEF_LIBCEF_DLL_CPPTOC_RENDER_PROCESS_HANDLER_CPPTOC_H_
14 | #define CEF_LIBCEF_DLL_CPPTOC_RENDER_PROCESS_HANDLER_CPPTOC_H_
15 | #pragma once
16 |
17 | #ifndef USING_CEF_SHARED
18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only")
19 | #else // USING_CEF_SHARED
20 |
21 | #include "include/cef_render_process_handler.h"
22 | #include "include/capi/cef_render_process_handler_capi.h"
23 | #include "libcef_dll/cpptoc/cpptoc.h"
24 |
25 | // Wrap a C++ class with a C structure.
26 | // This class may be instantiated and accessed wrapper-side only.
27 | class CefRenderProcessHandlerCppToC
28 | : public CefCppToC {
30 | public:
31 | CefRenderProcessHandlerCppToC();
32 | };
33 |
34 | #endif // USING_CEF_SHARED
35 | #endif // CEF_LIBCEF_DLL_CPPTOC_RENDER_PROCESS_HANDLER_CPPTOC_H_
36 |
--------------------------------------------------------------------------------
/libcef_dll/cpptoc/request_context_handler_cpptoc.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2016 The Chromium Embedded Framework Authors. All rights
2 | // reserved. Use of this source code is governed by a BSD-style license that
3 | // can be found in the LICENSE file.
4 | //
5 | // ---------------------------------------------------------------------------
6 | //
7 | // This file was generated by the CEF translator tool. If making changes by
8 | // hand only do so within the body of existing method and function
9 | // implementations. See the translator.README.txt file in the tools directory
10 | // for more information.
11 | //
12 |
13 | #ifndef CEF_LIBCEF_DLL_CPPTOC_REQUEST_CONTEXT_HANDLER_CPPTOC_H_
14 | #define CEF_LIBCEF_DLL_CPPTOC_REQUEST_CONTEXT_HANDLER_CPPTOC_H_
15 | #pragma once
16 |
17 | #ifndef USING_CEF_SHARED
18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only")
19 | #else // USING_CEF_SHARED
20 |
21 | #include "include/cef_request_context_handler.h"
22 | #include "include/capi/cef_request_context_handler_capi.h"
23 | #include "libcef_dll/cpptoc/cpptoc.h"
24 |
25 | // Wrap a C++ class with a C structure.
26 | // This class may be instantiated and accessed wrapper-side only.
27 | class CefRequestContextHandlerCppToC
28 | : public CefCppToC {
30 | public:
31 | CefRequestContextHandlerCppToC();
32 | };
33 |
34 | #endif // USING_CEF_SHARED
35 | #endif // CEF_LIBCEF_DLL_CPPTOC_REQUEST_CONTEXT_HANDLER_CPPTOC_H_
36 |
--------------------------------------------------------------------------------
/libcef_dll/cpptoc/request_handler_cpptoc.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2016 The Chromium Embedded Framework Authors. All rights
2 | // reserved. Use of this source code is governed by a BSD-style license that
3 | // can be found in the LICENSE file.
4 | //
5 | // ---------------------------------------------------------------------------
6 | //
7 | // This file was generated by the CEF translator tool. If making changes by
8 | // hand only do so within the body of existing method and function
9 | // implementations. See the translator.README.txt file in the tools directory
10 | // for more information.
11 | //
12 |
13 | #ifndef CEF_LIBCEF_DLL_CPPTOC_REQUEST_HANDLER_CPPTOC_H_
14 | #define CEF_LIBCEF_DLL_CPPTOC_REQUEST_HANDLER_CPPTOC_H_
15 | #pragma once
16 |
17 | #ifndef USING_CEF_SHARED
18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only")
19 | #else // USING_CEF_SHARED
20 |
21 | #include "include/cef_request_handler.h"
22 | #include "include/capi/cef_request_handler_capi.h"
23 | #include "libcef_dll/cpptoc/cpptoc.h"
24 |
25 | // Wrap a C++ class with a C structure.
26 | // This class may be instantiated and accessed wrapper-side only.
27 | class CefRequestHandlerCppToC
28 | : public CefCppToC {
30 | public:
31 | CefRequestHandlerCppToC();
32 | };
33 |
34 | #endif // USING_CEF_SHARED
35 | #endif // CEF_LIBCEF_DLL_CPPTOC_REQUEST_HANDLER_CPPTOC_H_
36 |
--------------------------------------------------------------------------------
/libcef_dll/cpptoc/resolve_callback_cpptoc.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2016 The Chromium Embedded Framework Authors. All rights
2 | // reserved. Use of this source code is governed by a BSD-style license that
3 | // can be found in the LICENSE file.
4 | //
5 | // ---------------------------------------------------------------------------
6 | //
7 | // This file was generated by the CEF translator tool. If making changes by
8 | // hand only do so within the body of existing method and function
9 | // implementations. See the translator.README.txt file in the tools directory
10 | // for more information.
11 | //
12 |
13 | #ifndef CEF_LIBCEF_DLL_CPPTOC_RESOLVE_CALLBACK_CPPTOC_H_
14 | #define CEF_LIBCEF_DLL_CPPTOC_RESOLVE_CALLBACK_CPPTOC_H_
15 | #pragma once
16 |
17 | #ifndef USING_CEF_SHARED
18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only")
19 | #else // USING_CEF_SHARED
20 |
21 | #include "include/cef_request_context.h"
22 | #include "include/capi/cef_request_context_capi.h"
23 | #include "include/cef_scheme.h"
24 | #include "include/capi/cef_scheme_capi.h"
25 | #include "libcef_dll/cpptoc/cpptoc.h"
26 |
27 | // Wrap a C++ class with a C structure.
28 | // This class may be instantiated and accessed wrapper-side only.
29 | class CefResolveCallbackCppToC
30 | : public CefCppToC {
32 | public:
33 | CefResolveCallbackCppToC();
34 | };
35 |
36 | #endif // USING_CEF_SHARED
37 | #endif // CEF_LIBCEF_DLL_CPPTOC_RESOLVE_CALLBACK_CPPTOC_H_
38 |
--------------------------------------------------------------------------------
/libcef_dll/cpptoc/resource_bundle_handler_cpptoc.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2016 The Chromium Embedded Framework Authors. All rights
2 | // reserved. Use of this source code is governed by a BSD-style license that
3 | // can be found in the LICENSE file.
4 | //
5 | // ---------------------------------------------------------------------------
6 | //
7 | // This file was generated by the CEF translator tool. If making changes by
8 | // hand only do so within the body of existing method and function
9 | // implementations. See the translator.README.txt file in the tools directory
10 | // for more information.
11 | //
12 |
13 | #ifndef CEF_LIBCEF_DLL_CPPTOC_RESOURCE_BUNDLE_HANDLER_CPPTOC_H_
14 | #define CEF_LIBCEF_DLL_CPPTOC_RESOURCE_BUNDLE_HANDLER_CPPTOC_H_
15 | #pragma once
16 |
17 | #ifndef USING_CEF_SHARED
18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only")
19 | #else // USING_CEF_SHARED
20 |
21 | #include "include/cef_resource_bundle_handler.h"
22 | #include "include/capi/cef_resource_bundle_handler_capi.h"
23 | #include "libcef_dll/cpptoc/cpptoc.h"
24 |
25 | // Wrap a C++ class with a C structure.
26 | // This class may be instantiated and accessed wrapper-side only.
27 | class CefResourceBundleHandlerCppToC
28 | : public CefCppToC {
30 | public:
31 | CefResourceBundleHandlerCppToC();
32 | };
33 |
34 | #endif // USING_CEF_SHARED
35 | #endif // CEF_LIBCEF_DLL_CPPTOC_RESOURCE_BUNDLE_HANDLER_CPPTOC_H_
36 |
--------------------------------------------------------------------------------
/libcef_dll/cpptoc/resource_handler_cpptoc.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2016 The Chromium Embedded Framework Authors. All rights
2 | // reserved. Use of this source code is governed by a BSD-style license that
3 | // can be found in the LICENSE file.
4 | //
5 | // ---------------------------------------------------------------------------
6 | //
7 | // This file was generated by the CEF translator tool. If making changes by
8 | // hand only do so within the body of existing method and function
9 | // implementations. See the translator.README.txt file in the tools directory
10 | // for more information.
11 | //
12 |
13 | #ifndef CEF_LIBCEF_DLL_CPPTOC_RESOURCE_HANDLER_CPPTOC_H_
14 | #define CEF_LIBCEF_DLL_CPPTOC_RESOURCE_HANDLER_CPPTOC_H_
15 | #pragma once
16 |
17 | #ifndef USING_CEF_SHARED
18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only")
19 | #else // USING_CEF_SHARED
20 |
21 | #include "include/cef_resource_handler.h"
22 | #include "include/capi/cef_resource_handler_capi.h"
23 | #include "libcef_dll/cpptoc/cpptoc.h"
24 |
25 | // Wrap a C++ class with a C structure.
26 | // This class may be instantiated and accessed wrapper-side only.
27 | class CefResourceHandlerCppToC
28 | : public CefCppToC {
30 | public:
31 | CefResourceHandlerCppToC();
32 | };
33 |
34 | #endif // USING_CEF_SHARED
35 | #endif // CEF_LIBCEF_DLL_CPPTOC_RESOURCE_HANDLER_CPPTOC_H_
36 |
--------------------------------------------------------------------------------
/libcef_dll/cpptoc/response_filter_cpptoc.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2016 The Chromium Embedded Framework Authors. All rights
2 | // reserved. Use of this source code is governed by a BSD-style license that
3 | // can be found in the LICENSE file.
4 | //
5 | // ---------------------------------------------------------------------------
6 | //
7 | // This file was generated by the CEF translator tool. If making changes by
8 | // hand only do so within the body of existing method and function
9 | // implementations. See the translator.README.txt file in the tools directory
10 | // for more information.
11 | //
12 |
13 | #ifndef CEF_LIBCEF_DLL_CPPTOC_RESPONSE_FILTER_CPPTOC_H_
14 | #define CEF_LIBCEF_DLL_CPPTOC_RESPONSE_FILTER_CPPTOC_H_
15 | #pragma once
16 |
17 | #ifndef USING_CEF_SHARED
18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only")
19 | #else // USING_CEF_SHARED
20 |
21 | #include "include/cef_response_filter.h"
22 | #include "include/capi/cef_response_filter_capi.h"
23 | #include "libcef_dll/cpptoc/cpptoc.h"
24 |
25 | // Wrap a C++ class with a C structure.
26 | // This class may be instantiated and accessed wrapper-side only.
27 | class CefResponseFilterCppToC
28 | : public CefCppToC {
30 | public:
31 | CefResponseFilterCppToC();
32 | };
33 |
34 | #endif // USING_CEF_SHARED
35 | #endif // CEF_LIBCEF_DLL_CPPTOC_RESPONSE_FILTER_CPPTOC_H_
36 |
--------------------------------------------------------------------------------
/libcef_dll/cpptoc/run_file_dialog_callback_cpptoc.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2016 The Chromium Embedded Framework Authors. All rights
2 | // reserved. Use of this source code is governed by a BSD-style license that
3 | // can be found in the LICENSE file.
4 | //
5 | // ---------------------------------------------------------------------------
6 | //
7 | // This file was generated by the CEF translator tool. If making changes by
8 | // hand only do so within the body of existing method and function
9 | // implementations. See the translator.README.txt file in the tools directory
10 | // for more information.
11 | //
12 |
13 | #ifndef CEF_LIBCEF_DLL_CPPTOC_RUN_FILE_DIALOG_CALLBACK_CPPTOC_H_
14 | #define CEF_LIBCEF_DLL_CPPTOC_RUN_FILE_DIALOG_CALLBACK_CPPTOC_H_
15 | #pragma once
16 |
17 | #ifndef USING_CEF_SHARED
18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only")
19 | #else // USING_CEF_SHARED
20 |
21 | #include "include/cef_browser.h"
22 | #include "include/capi/cef_browser_capi.h"
23 | #include "include/cef_client.h"
24 | #include "include/capi/cef_client_capi.h"
25 | #include "libcef_dll/cpptoc/cpptoc.h"
26 |
27 | // Wrap a C++ class with a C structure.
28 | // This class may be instantiated and accessed wrapper-side only.
29 | class CefRunFileDialogCallbackCppToC
30 | : public CefCppToC {
32 | public:
33 | CefRunFileDialogCallbackCppToC();
34 | };
35 |
36 | #endif // USING_CEF_SHARED
37 | #endif // CEF_LIBCEF_DLL_CPPTOC_RUN_FILE_DIALOG_CALLBACK_CPPTOC_H_
38 |
--------------------------------------------------------------------------------
/libcef_dll/cpptoc/scheme_handler_factory_cpptoc.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2016 The Chromium Embedded Framework Authors. All rights
2 | // reserved. Use of this source code is governed by a BSD-style license that
3 | // can be found in the LICENSE file.
4 | //
5 | // ---------------------------------------------------------------------------
6 | //
7 | // This file was generated by the CEF translator tool. If making changes by
8 | // hand only do so within the body of existing method and function
9 | // implementations. See the translator.README.txt file in the tools directory
10 | // for more information.
11 | //
12 |
13 | #ifndef CEF_LIBCEF_DLL_CPPTOC_SCHEME_HANDLER_FACTORY_CPPTOC_H_
14 | #define CEF_LIBCEF_DLL_CPPTOC_SCHEME_HANDLER_FACTORY_CPPTOC_H_
15 | #pragma once
16 |
17 | #ifndef USING_CEF_SHARED
18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only")
19 | #else // USING_CEF_SHARED
20 |
21 | #include "include/cef_scheme.h"
22 | #include "include/capi/cef_scheme_capi.h"
23 | #include "libcef_dll/cpptoc/cpptoc.h"
24 |
25 | // Wrap a C++ class with a C structure.
26 | // This class may be instantiated and accessed wrapper-side only.
27 | class CefSchemeHandlerFactoryCppToC
28 | : public CefCppToC {
30 | public:
31 | CefSchemeHandlerFactoryCppToC();
32 | };
33 |
34 | #endif // USING_CEF_SHARED
35 | #endif // CEF_LIBCEF_DLL_CPPTOC_SCHEME_HANDLER_FACTORY_CPPTOC_H_
36 |
--------------------------------------------------------------------------------
/libcef_dll/cpptoc/set_cookie_callback_cpptoc.cc:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2016 The Chromium Embedded Framework Authors. All rights
2 | // reserved. Use of this source code is governed by a BSD-style license that
3 | // can be found in the LICENSE file.
4 | //
5 | // ---------------------------------------------------------------------------
6 | //
7 | // This file was generated by the CEF translator tool. If making changes by
8 | // hand only do so within the body of existing method and function
9 | // implementations. See the translator.README.txt file in the tools directory
10 | // for more information.
11 | //
12 |
13 | #include "libcef_dll/cpptoc/set_cookie_callback_cpptoc.h"
14 |
15 |
16 | namespace {
17 |
18 | // MEMBER FUNCTIONS - Body may be edited by hand.
19 |
20 | void CEF_CALLBACK set_cookie_callback_on_complete(
21 | struct _cef_set_cookie_callback_t* self, int success) {
22 | // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
23 |
24 | DCHECK(self);
25 | if (!self)
26 | return;
27 |
28 | // Execute
29 | CefSetCookieCallbackCppToC::Get(self)->OnComplete(
30 | success?true:false);
31 | }
32 |
33 | } // namespace
34 |
35 |
36 | // CONSTRUCTOR - Do not edit by hand.
37 |
38 | CefSetCookieCallbackCppToC::CefSetCookieCallbackCppToC() {
39 | GetStruct()->on_complete = set_cookie_callback_on_complete;
40 | }
41 |
42 | template<> CefRefPtr CefCppToC::UnwrapDerived(
44 | CefWrapperType type, cef_set_cookie_callback_t* s) {
45 | NOTREACHED() << "Unexpected class type: " << type;
46 | return NULL;
47 | }
48 |
49 | #ifndef NDEBUG
50 | template<> base::AtomicRefCount CefCppToC::DebugObjCt = 0;
52 | #endif
53 |
54 | template<> CefWrapperType CefCppToC::kWrapperType =
56 | WT_SET_COOKIE_CALLBACK;
57 |
--------------------------------------------------------------------------------
/libcef_dll/cpptoc/set_cookie_callback_cpptoc.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2016 The Chromium Embedded Framework Authors. All rights
2 | // reserved. Use of this source code is governed by a BSD-style license that
3 | // can be found in the LICENSE file.
4 | //
5 | // ---------------------------------------------------------------------------
6 | //
7 | // This file was generated by the CEF translator tool. If making changes by
8 | // hand only do so within the body of existing method and function
9 | // implementations. See the translator.README.txt file in the tools directory
10 | // for more information.
11 | //
12 |
13 | #ifndef CEF_LIBCEF_DLL_CPPTOC_SET_COOKIE_CALLBACK_CPPTOC_H_
14 | #define CEF_LIBCEF_DLL_CPPTOC_SET_COOKIE_CALLBACK_CPPTOC_H_
15 | #pragma once
16 |
17 | #ifndef USING_CEF_SHARED
18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only")
19 | #else // USING_CEF_SHARED
20 |
21 | #include "include/cef_cookie.h"
22 | #include "include/capi/cef_cookie_capi.h"
23 | #include "libcef_dll/cpptoc/cpptoc.h"
24 |
25 | // Wrap a C++ class with a C structure.
26 | // This class may be instantiated and accessed wrapper-side only.
27 | class CefSetCookieCallbackCppToC
28 | : public CefCppToC {
30 | public:
31 | CefSetCookieCallbackCppToC();
32 | };
33 |
34 | #endif // USING_CEF_SHARED
35 | #endif // CEF_LIBCEF_DLL_CPPTOC_SET_COOKIE_CALLBACK_CPPTOC_H_
36 |
--------------------------------------------------------------------------------
/libcef_dll/cpptoc/string_visitor_cpptoc.cc:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2016 The Chromium Embedded Framework Authors. All rights
2 | // reserved. Use of this source code is governed by a BSD-style license that
3 | // can be found in the LICENSE file.
4 | //
5 | // ---------------------------------------------------------------------------
6 | //
7 | // This file was generated by the CEF translator tool. If making changes by
8 | // hand only do so within the body of existing method and function
9 | // implementations. See the translator.README.txt file in the tools directory
10 | // for more information.
11 | //
12 |
13 | #include "libcef_dll/cpptoc/string_visitor_cpptoc.h"
14 |
15 |
16 | namespace {
17 |
18 | // MEMBER FUNCTIONS - Body may be edited by hand.
19 |
20 | void CEF_CALLBACK string_visitor_visit(struct _cef_string_visitor_t* self,
21 | const cef_string_t* string) {
22 | // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
23 |
24 | DCHECK(self);
25 | if (!self)
26 | return;
27 | // Unverified params: string
28 |
29 | // Execute
30 | CefStringVisitorCppToC::Get(self)->Visit(
31 | CefString(string));
32 | }
33 |
34 | } // namespace
35 |
36 |
37 | // CONSTRUCTOR - Do not edit by hand.
38 |
39 | CefStringVisitorCppToC::CefStringVisitorCppToC() {
40 | GetStruct()->visit = string_visitor_visit;
41 | }
42 |
43 | template<> CefRefPtr CefCppToC::UnwrapDerived(CefWrapperType type,
45 | cef_string_visitor_t* s) {
46 | NOTREACHED() << "Unexpected class type: " << type;
47 | return NULL;
48 | }
49 |
50 | #ifndef NDEBUG
51 | template<> base::AtomicRefCount CefCppToC::DebugObjCt = 0;
53 | #endif
54 |
55 | template<> CefWrapperType CefCppToC::kWrapperType = WT_STRING_VISITOR;
57 |
--------------------------------------------------------------------------------
/libcef_dll/cpptoc/string_visitor_cpptoc.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2016 The Chromium Embedded Framework Authors. All rights
2 | // reserved. Use of this source code is governed by a BSD-style license that
3 | // can be found in the LICENSE file.
4 | //
5 | // ---------------------------------------------------------------------------
6 | //
7 | // This file was generated by the CEF translator tool. If making changes by
8 | // hand only do so within the body of existing method and function
9 | // implementations. See the translator.README.txt file in the tools directory
10 | // for more information.
11 | //
12 |
13 | #ifndef CEF_LIBCEF_DLL_CPPTOC_STRING_VISITOR_CPPTOC_H_
14 | #define CEF_LIBCEF_DLL_CPPTOC_STRING_VISITOR_CPPTOC_H_
15 | #pragma once
16 |
17 | #ifndef USING_CEF_SHARED
18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only")
19 | #else // USING_CEF_SHARED
20 |
21 | #include "include/cef_string_visitor.h"
22 | #include "include/capi/cef_string_visitor_capi.h"
23 | #include "libcef_dll/cpptoc/cpptoc.h"
24 |
25 | // Wrap a C++ class with a C structure.
26 | // This class may be instantiated and accessed wrapper-side only.
27 | class CefStringVisitorCppToC
28 | : public CefCppToC {
30 | public:
31 | CefStringVisitorCppToC();
32 | };
33 |
34 | #endif // USING_CEF_SHARED
35 | #endif // CEF_LIBCEF_DLL_CPPTOC_STRING_VISITOR_CPPTOC_H_
36 |
--------------------------------------------------------------------------------
/libcef_dll/cpptoc/task_cpptoc.cc:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2016 The Chromium Embedded Framework Authors. All rights
2 | // reserved. Use of this source code is governed by a BSD-style license that
3 | // can be found in the LICENSE file.
4 | //
5 | // ---------------------------------------------------------------------------
6 | //
7 | // This file was generated by the CEF translator tool. If making changes by
8 | // hand only do so within the body of existing method and function
9 | // implementations. See the translator.README.txt file in the tools directory
10 | // for more information.
11 | //
12 |
13 | #include "libcef_dll/cpptoc/task_cpptoc.h"
14 |
15 |
16 | namespace {
17 |
18 | // MEMBER FUNCTIONS - Body may be edited by hand.
19 |
20 | void CEF_CALLBACK task_execute(struct _cef_task_t* self) {
21 | // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
22 |
23 | DCHECK(self);
24 | if (!self)
25 | return;
26 |
27 | // Execute
28 | CefTaskCppToC::Get(self)->Execute();
29 | }
30 |
31 | } // namespace
32 |
33 |
34 | // CONSTRUCTOR - Do not edit by hand.
35 |
36 | CefTaskCppToC::CefTaskCppToC() {
37 | GetStruct()->execute = task_execute;
38 | }
39 |
40 | template<> CefRefPtr CefCppToC::UnwrapDerived(CefWrapperType type, cef_task_t* s) {
42 | NOTREACHED() << "Unexpected class type: " << type;
43 | return NULL;
44 | }
45 |
46 | #ifndef NDEBUG
47 | template<> base::AtomicRefCount CefCppToC::DebugObjCt = 0;
49 | #endif
50 |
51 | template<> CefWrapperType CefCppToC::kWrapperType = WT_TASK;
53 |
--------------------------------------------------------------------------------
/libcef_dll/cpptoc/task_cpptoc.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2016 The Chromium Embedded Framework Authors. All rights
2 | // reserved. Use of this source code is governed by a BSD-style license that
3 | // can be found in the LICENSE file.
4 | //
5 | // ---------------------------------------------------------------------------
6 | //
7 | // This file was generated by the CEF translator tool. If making changes by
8 | // hand only do so within the body of existing method and function
9 | // implementations. See the translator.README.txt file in the tools directory
10 | // for more information.
11 | //
12 |
13 | #ifndef CEF_LIBCEF_DLL_CPPTOC_TASK_CPPTOC_H_
14 | #define CEF_LIBCEF_DLL_CPPTOC_TASK_CPPTOC_H_
15 | #pragma once
16 |
17 | #ifndef USING_CEF_SHARED
18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only")
19 | #else // USING_CEF_SHARED
20 |
21 | #include "include/cef_task.h"
22 | #include "include/capi/cef_task_capi.h"
23 | #include "libcef_dll/cpptoc/cpptoc.h"
24 |
25 | // Wrap a C++ class with a C structure.
26 | // This class may be instantiated and accessed wrapper-side only.
27 | class CefTaskCppToC
28 | : public CefCppToC {
29 | public:
30 | CefTaskCppToC();
31 | };
32 |
33 | #endif // USING_CEF_SHARED
34 | #endif // CEF_LIBCEF_DLL_CPPTOC_TASK_CPPTOC_H_
35 |
--------------------------------------------------------------------------------
/libcef_dll/cpptoc/urlrequest_client_cpptoc.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2016 The Chromium Embedded Framework Authors. All rights
2 | // reserved. Use of this source code is governed by a BSD-style license that
3 | // can be found in the LICENSE file.
4 | //
5 | // ---------------------------------------------------------------------------
6 | //
7 | // This file was generated by the CEF translator tool. If making changes by
8 | // hand only do so within the body of existing method and function
9 | // implementations. See the translator.README.txt file in the tools directory
10 | // for more information.
11 | //
12 |
13 | #ifndef CEF_LIBCEF_DLL_CPPTOC_URLREQUEST_CLIENT_CPPTOC_H_
14 | #define CEF_LIBCEF_DLL_CPPTOC_URLREQUEST_CLIENT_CPPTOC_H_
15 | #pragma once
16 |
17 | #ifndef USING_CEF_SHARED
18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only")
19 | #else // USING_CEF_SHARED
20 |
21 | #include "include/cef_urlrequest.h"
22 | #include "include/capi/cef_urlrequest_capi.h"
23 | #include "libcef_dll/cpptoc/cpptoc.h"
24 |
25 | // Wrap a C++ class with a C structure.
26 | // This class may be instantiated and accessed wrapper-side only.
27 | class CefURLRequestClientCppToC
28 | : public CefCppToC {
30 | public:
31 | CefURLRequestClientCppToC();
32 | };
33 |
34 | #endif // USING_CEF_SHARED
35 | #endif // CEF_LIBCEF_DLL_CPPTOC_URLREQUEST_CLIENT_CPPTOC_H_
36 |
--------------------------------------------------------------------------------
/libcef_dll/cpptoc/v8accessor_cpptoc.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2016 The Chromium Embedded Framework Authors. All rights
2 | // reserved. Use of this source code is governed by a BSD-style license that
3 | // can be found in the LICENSE file.
4 | //
5 | // ---------------------------------------------------------------------------
6 | //
7 | // This file was generated by the CEF translator tool. If making changes by
8 | // hand only do so within the body of existing method and function
9 | // implementations. See the translator.README.txt file in the tools directory
10 | // for more information.
11 | //
12 |
13 | #ifndef CEF_LIBCEF_DLL_CPPTOC_V8ACCESSOR_CPPTOC_H_
14 | #define CEF_LIBCEF_DLL_CPPTOC_V8ACCESSOR_CPPTOC_H_
15 | #pragma once
16 |
17 | #ifndef USING_CEF_SHARED
18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only")
19 | #else // USING_CEF_SHARED
20 |
21 | #include "include/cef_v8.h"
22 | #include "include/capi/cef_v8_capi.h"
23 | #include "libcef_dll/cpptoc/cpptoc.h"
24 |
25 | // Wrap a C++ class with a C structure.
26 | // This class may be instantiated and accessed wrapper-side only.
27 | class CefV8AccessorCppToC
28 | : public CefCppToC {
29 | public:
30 | CefV8AccessorCppToC();
31 | };
32 |
33 | #endif // USING_CEF_SHARED
34 | #endif // CEF_LIBCEF_DLL_CPPTOC_V8ACCESSOR_CPPTOC_H_
35 |
--------------------------------------------------------------------------------
/libcef_dll/cpptoc/v8handler_cpptoc.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2016 The Chromium Embedded Framework Authors. All rights
2 | // reserved. Use of this source code is governed by a BSD-style license that
3 | // can be found in the LICENSE file.
4 | //
5 | // ---------------------------------------------------------------------------
6 | //
7 | // This file was generated by the CEF translator tool. If making changes by
8 | // hand only do so within the body of existing method and function
9 | // implementations. See the translator.README.txt file in the tools directory
10 | // for more information.
11 | //
12 |
13 | #ifndef CEF_LIBCEF_DLL_CPPTOC_V8HANDLER_CPPTOC_H_
14 | #define CEF_LIBCEF_DLL_CPPTOC_V8HANDLER_CPPTOC_H_
15 | #pragma once
16 |
17 | #ifndef USING_CEF_SHARED
18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only")
19 | #else // USING_CEF_SHARED
20 |
21 | #include "include/cef_v8.h"
22 | #include "include/capi/cef_v8_capi.h"
23 | #include "libcef_dll/cpptoc/cpptoc.h"
24 |
25 | // Wrap a C++ class with a C structure.
26 | // This class may be instantiated and accessed wrapper-side only.
27 | class CefV8HandlerCppToC
28 | : public CefCppToC {
29 | public:
30 | CefV8HandlerCppToC();
31 | };
32 |
33 | #endif // USING_CEF_SHARED
34 | #endif // CEF_LIBCEF_DLL_CPPTOC_V8HANDLER_CPPTOC_H_
35 |
--------------------------------------------------------------------------------
/libcef_dll/cpptoc/web_plugin_info_visitor_cpptoc.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2016 The Chromium Embedded Framework Authors. All rights
2 | // reserved. Use of this source code is governed by a BSD-style license that
3 | // can be found in the LICENSE file.
4 | //
5 | // ---------------------------------------------------------------------------
6 | //
7 | // This file was generated by the CEF translator tool. If making changes by
8 | // hand only do so within the body of existing method and function
9 | // implementations. See the translator.README.txt file in the tools directory
10 | // for more information.
11 | //
12 |
13 | #ifndef CEF_LIBCEF_DLL_CPPTOC_WEB_PLUGIN_INFO_VISITOR_CPPTOC_H_
14 | #define CEF_LIBCEF_DLL_CPPTOC_WEB_PLUGIN_INFO_VISITOR_CPPTOC_H_
15 | #pragma once
16 |
17 | #ifndef USING_CEF_SHARED
18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only")
19 | #else // USING_CEF_SHARED
20 |
21 | #include "include/cef_web_plugin.h"
22 | #include "include/capi/cef_web_plugin_capi.h"
23 | #include "include/cef_browser.h"
24 | #include "include/capi/cef_browser_capi.h"
25 | #include "libcef_dll/cpptoc/cpptoc.h"
26 |
27 | // Wrap a C++ class with a C structure.
28 | // This class may be instantiated and accessed wrapper-side only.
29 | class CefWebPluginInfoVisitorCppToC
30 | : public CefCppToC {
32 | public:
33 | CefWebPluginInfoVisitorCppToC();
34 | };
35 |
36 | #endif // USING_CEF_SHARED
37 | #endif // CEF_LIBCEF_DLL_CPPTOC_WEB_PLUGIN_INFO_VISITOR_CPPTOC_H_
38 |
--------------------------------------------------------------------------------
/libcef_dll/cpptoc/web_plugin_unstable_callback_cpptoc.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2016 The Chromium Embedded Framework Authors. All rights
2 | // reserved. Use of this source code is governed by a BSD-style license that
3 | // can be found in the LICENSE file.
4 | //
5 | // ---------------------------------------------------------------------------
6 | //
7 | // This file was generated by the CEF translator tool. If making changes by
8 | // hand only do so within the body of existing method and function
9 | // implementations. See the translator.README.txt file in the tools directory
10 | // for more information.
11 | //
12 |
13 | #ifndef CEF_LIBCEF_DLL_CPPTOC_WEB_PLUGIN_UNSTABLE_CALLBACK_CPPTOC_H_
14 | #define CEF_LIBCEF_DLL_CPPTOC_WEB_PLUGIN_UNSTABLE_CALLBACK_CPPTOC_H_
15 | #pragma once
16 |
17 | #ifndef USING_CEF_SHARED
18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only")
19 | #else // USING_CEF_SHARED
20 |
21 | #include "include/cef_web_plugin.h"
22 | #include "include/capi/cef_web_plugin_capi.h"
23 | #include "include/cef_browser.h"
24 | #include "include/capi/cef_browser_capi.h"
25 | #include "libcef_dll/cpptoc/cpptoc.h"
26 |
27 | // Wrap a C++ class with a C structure.
28 | // This class may be instantiated and accessed wrapper-side only.
29 | class CefWebPluginUnstableCallbackCppToC
30 | : public CefCppToC {
32 | public:
33 | CefWebPluginUnstableCallbackCppToC();
34 | };
35 |
36 | #endif // USING_CEF_SHARED
37 | #endif // CEF_LIBCEF_DLL_CPPTOC_WEB_PLUGIN_UNSTABLE_CALLBACK_CPPTOC_H_
38 |
--------------------------------------------------------------------------------
/libcef_dll/cpptoc/write_handler_cpptoc.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2016 The Chromium Embedded Framework Authors. All rights
2 | // reserved. Use of this source code is governed by a BSD-style license that
3 | // can be found in the LICENSE file.
4 | //
5 | // ---------------------------------------------------------------------------
6 | //
7 | // This file was generated by the CEF translator tool. If making changes by
8 | // hand only do so within the body of existing method and function
9 | // implementations. See the translator.README.txt file in the tools directory
10 | // for more information.
11 | //
12 |
13 | #ifndef CEF_LIBCEF_DLL_CPPTOC_WRITE_HANDLER_CPPTOC_H_
14 | #define CEF_LIBCEF_DLL_CPPTOC_WRITE_HANDLER_CPPTOC_H_
15 | #pragma once
16 |
17 | #ifndef USING_CEF_SHARED
18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only")
19 | #else // USING_CEF_SHARED
20 |
21 | #include "include/cef_stream.h"
22 | #include "include/capi/cef_stream_capi.h"
23 | #include "libcef_dll/cpptoc/cpptoc.h"
24 |
25 | // Wrap a C++ class with a C structure.
26 | // This class may be instantiated and accessed wrapper-side only.
27 | class CefWriteHandlerCppToC
28 | : public CefCppToC {
30 | public:
31 | CefWriteHandlerCppToC();
32 | };
33 |
34 | #endif // USING_CEF_SHARED
35 | #endif // CEF_LIBCEF_DLL_CPPTOC_WRITE_HANDLER_CPPTOC_H_
36 |
--------------------------------------------------------------------------------
/libcef_dll/ctocpp/auth_callback_ctocpp.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2016 The Chromium Embedded Framework Authors. All rights
2 | // reserved. Use of this source code is governed by a BSD-style license that
3 | // can be found in the LICENSE file.
4 | //
5 | // ---------------------------------------------------------------------------
6 | //
7 | // This file was generated by the CEF translator tool. If making changes by
8 | // hand only do so within the body of existing method and function
9 | // implementations. See the translator.README.txt file in the tools directory
10 | // for more information.
11 | //
12 |
13 | #ifndef CEF_LIBCEF_DLL_CTOCPP_AUTH_CALLBACK_CTOCPP_H_
14 | #define CEF_LIBCEF_DLL_CTOCPP_AUTH_CALLBACK_CTOCPP_H_
15 | #pragma once
16 |
17 | #ifndef USING_CEF_SHARED
18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only")
19 | #else // USING_CEF_SHARED
20 |
21 | #include "include/cef_auth_callback.h"
22 | #include "include/capi/cef_auth_callback_capi.h"
23 | #include "libcef_dll/ctocpp/ctocpp.h"
24 |
25 | // Wrap a C structure with a C++ class.
26 | // This class may be instantiated and accessed wrapper-side only.
27 | class CefAuthCallbackCToCpp
28 | : public CefCToCpp {
30 | public:
31 | CefAuthCallbackCToCpp();
32 |
33 | // CefAuthCallback methods.
34 | void Continue(const CefString& username, const CefString& password) OVERRIDE;
35 | void Cancel() OVERRIDE;
36 | };
37 |
38 | #endif // USING_CEF_SHARED
39 | #endif // CEF_LIBCEF_DLL_CTOCPP_AUTH_CALLBACK_CTOCPP_H_
40 |
--------------------------------------------------------------------------------
/libcef_dll/ctocpp/before_download_callback_ctocpp.cc:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2016 The Chromium Embedded Framework Authors. All rights
2 | // reserved. Use of this source code is governed by a BSD-style license that
3 | // can be found in the LICENSE file.
4 | //
5 | // ---------------------------------------------------------------------------
6 | //
7 | // This file was generated by the CEF translator tool. If making changes by
8 | // hand only do so within the body of existing method and function
9 | // implementations. See the translator.README.txt file in the tools directory
10 | // for more information.
11 | //
12 |
13 | #include "libcef_dll/ctocpp/before_download_callback_ctocpp.h"
14 |
15 |
16 | // VIRTUAL METHODS - Body may be edited by hand.
17 |
18 | void CefBeforeDownloadCallbackCToCpp::Continue(const CefString& download_path,
19 | bool show_dialog) {
20 | cef_before_download_callback_t* _struct = GetStruct();
21 | if (CEF_MEMBER_MISSING(_struct, cont))
22 | return;
23 |
24 | // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
25 |
26 | // Unverified params: download_path
27 |
28 | // Execute
29 | _struct->cont(_struct,
30 | download_path.GetStruct(),
31 | show_dialog);
32 | }
33 |
34 |
35 | // CONSTRUCTOR - Do not edit by hand.
36 |
37 | CefBeforeDownloadCallbackCToCpp::CefBeforeDownloadCallbackCToCpp() {
38 | }
39 |
40 | template<> cef_before_download_callback_t* CefCToCpp::UnwrapDerived(
42 | CefWrapperType type, CefBeforeDownloadCallback* c) {
43 | NOTREACHED() << "Unexpected class type: " << type;
44 | return NULL;
45 | }
46 |
47 | #ifndef NDEBUG
48 | template<> base::AtomicRefCount CefCToCpp::DebugObjCt =
50 | 0;
51 | #endif
52 |
53 | template<> CefWrapperType CefCToCpp::kWrapperType =
55 | WT_BEFORE_DOWNLOAD_CALLBACK;
56 |
--------------------------------------------------------------------------------
/libcef_dll/ctocpp/before_download_callback_ctocpp.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2016 The Chromium Embedded Framework Authors. All rights
2 | // reserved. Use of this source code is governed by a BSD-style license that
3 | // can be found in the LICENSE file.
4 | //
5 | // ---------------------------------------------------------------------------
6 | //
7 | // This file was generated by the CEF translator tool. If making changes by
8 | // hand only do so within the body of existing method and function
9 | // implementations. See the translator.README.txt file in the tools directory
10 | // for more information.
11 | //
12 |
13 | #ifndef CEF_LIBCEF_DLL_CTOCPP_BEFORE_DOWNLOAD_CALLBACK_CTOCPP_H_
14 | #define CEF_LIBCEF_DLL_CTOCPP_BEFORE_DOWNLOAD_CALLBACK_CTOCPP_H_
15 | #pragma once
16 |
17 | #ifndef USING_CEF_SHARED
18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only")
19 | #else // USING_CEF_SHARED
20 |
21 | #include "include/cef_download_handler.h"
22 | #include "include/capi/cef_download_handler_capi.h"
23 | #include "libcef_dll/ctocpp/ctocpp.h"
24 |
25 | // Wrap a C structure with a C++ class.
26 | // This class may be instantiated and accessed wrapper-side only.
27 | class CefBeforeDownloadCallbackCToCpp
28 | : public CefCToCpp {
30 | public:
31 | CefBeforeDownloadCallbackCToCpp();
32 |
33 | // CefBeforeDownloadCallback methods.
34 | void Continue(const CefString& download_path, bool show_dialog) OVERRIDE;
35 | };
36 |
37 | #endif // USING_CEF_SHARED
38 | #endif // CEF_LIBCEF_DLL_CTOCPP_BEFORE_DOWNLOAD_CALLBACK_CTOCPP_H_
39 |
--------------------------------------------------------------------------------
/libcef_dll/ctocpp/binary_value_ctocpp.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2016 The Chromium Embedded Framework Authors. All rights
2 | // reserved. Use of this source code is governed by a BSD-style license that
3 | // can be found in the LICENSE file.
4 | //
5 | // ---------------------------------------------------------------------------
6 | //
7 | // This file was generated by the CEF translator tool. If making changes by
8 | // hand only do so within the body of existing method and function
9 | // implementations. See the translator.README.txt file in the tools directory
10 | // for more information.
11 | //
12 |
13 | #ifndef CEF_LIBCEF_DLL_CTOCPP_BINARY_VALUE_CTOCPP_H_
14 | #define CEF_LIBCEF_DLL_CTOCPP_BINARY_VALUE_CTOCPP_H_
15 | #pragma once
16 |
17 | #ifndef USING_CEF_SHARED
18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only")
19 | #else // USING_CEF_SHARED
20 |
21 | #include "include/cef_values.h"
22 | #include "include/capi/cef_values_capi.h"
23 | #include "libcef_dll/ctocpp/ctocpp.h"
24 |
25 | // Wrap a C structure with a C++ class.
26 | // This class may be instantiated and accessed wrapper-side only.
27 | class CefBinaryValueCToCpp
28 | : public CefCToCpp {
30 | public:
31 | CefBinaryValueCToCpp();
32 |
33 | // CefBinaryValue methods.
34 | bool IsValid() OVERRIDE;
35 | bool IsOwned() OVERRIDE;
36 | bool IsSame(CefRefPtr that) OVERRIDE;
37 | bool IsEqual(CefRefPtr that) OVERRIDE;
38 | CefRefPtr Copy() OVERRIDE;
39 | size_t GetSize() OVERRIDE;
40 | size_t GetData(void* buffer, size_t buffer_size, size_t data_offset) OVERRIDE;
41 | };
42 |
43 | #endif // USING_CEF_SHARED
44 | #endif // CEF_LIBCEF_DLL_CTOCPP_BINARY_VALUE_CTOCPP_H_
45 |
--------------------------------------------------------------------------------
/libcef_dll/ctocpp/callback_ctocpp.cc:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2016 The Chromium Embedded Framework Authors. All rights
2 | // reserved. Use of this source code is governed by a BSD-style license that
3 | // can be found in the LICENSE file.
4 | //
5 | // ---------------------------------------------------------------------------
6 | //
7 | // This file was generated by the CEF translator tool. If making changes by
8 | // hand only do so within the body of existing method and function
9 | // implementations. See the translator.README.txt file in the tools directory
10 | // for more information.
11 | //
12 |
13 | #include "libcef_dll/ctocpp/callback_ctocpp.h"
14 |
15 |
16 | // VIRTUAL METHODS - Body may be edited by hand.
17 |
18 | void CefCallbackCToCpp::Continue() {
19 | cef_callback_t* _struct = GetStruct();
20 | if (CEF_MEMBER_MISSING(_struct, cont))
21 | return;
22 |
23 | // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
24 |
25 | // Execute
26 | _struct->cont(_struct);
27 | }
28 |
29 | void CefCallbackCToCpp::Cancel() {
30 | cef_callback_t* _struct = GetStruct();
31 | if (CEF_MEMBER_MISSING(_struct, cancel))
32 | return;
33 |
34 | // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
35 |
36 | // Execute
37 | _struct->cancel(_struct);
38 | }
39 |
40 |
41 | // CONSTRUCTOR - Do not edit by hand.
42 |
43 | CefCallbackCToCpp::CefCallbackCToCpp() {
44 | }
45 |
46 | template<> cef_callback_t* CefCToCpp::UnwrapDerived(CefWrapperType type, CefCallback* c) {
48 | NOTREACHED() << "Unexpected class type: " << type;
49 | return NULL;
50 | }
51 |
52 | #ifndef NDEBUG
53 | template<> base::AtomicRefCount CefCToCpp::DebugObjCt = 0;
55 | #endif
56 |
57 | template<> CefWrapperType CefCToCpp::kWrapperType = WT_CALLBACK;
59 |
--------------------------------------------------------------------------------
/libcef_dll/ctocpp/callback_ctocpp.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2016 The Chromium Embedded Framework Authors. All rights
2 | // reserved. Use of this source code is governed by a BSD-style license that
3 | // can be found in the LICENSE file.
4 | //
5 | // ---------------------------------------------------------------------------
6 | //
7 | // This file was generated by the CEF translator tool. If making changes by
8 | // hand only do so within the body of existing method and function
9 | // implementations. See the translator.README.txt file in the tools directory
10 | // for more information.
11 | //
12 |
13 | #ifndef CEF_LIBCEF_DLL_CTOCPP_CALLBACK_CTOCPP_H_
14 | #define CEF_LIBCEF_DLL_CTOCPP_CALLBACK_CTOCPP_H_
15 | #pragma once
16 |
17 | #ifndef USING_CEF_SHARED
18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only")
19 | #else // USING_CEF_SHARED
20 |
21 | #include "include/cef_callback.h"
22 | #include "include/capi/cef_callback_capi.h"
23 | #include "libcef_dll/ctocpp/ctocpp.h"
24 |
25 | // Wrap a C structure with a C++ class.
26 | // This class may be instantiated and accessed wrapper-side only.
27 | class CefCallbackCToCpp
28 | : public CefCToCpp {
29 | public:
30 | CefCallbackCToCpp();
31 |
32 | // CefCallback methods.
33 | void Continue() OVERRIDE;
34 | void Cancel() OVERRIDE;
35 | };
36 |
37 | #endif // USING_CEF_SHARED
38 | #endif // CEF_LIBCEF_DLL_CTOCPP_CALLBACK_CTOCPP_H_
39 |
--------------------------------------------------------------------------------
/libcef_dll/ctocpp/domdocument_ctocpp.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2016 The Chromium Embedded Framework Authors. All rights
2 | // reserved. Use of this source code is governed by a BSD-style license that
3 | // can be found in the LICENSE file.
4 | //
5 | // ---------------------------------------------------------------------------
6 | //
7 | // This file was generated by the CEF translator tool. If making changes by
8 | // hand only do so within the body of existing method and function
9 | // implementations. See the translator.README.txt file in the tools directory
10 | // for more information.
11 | //
12 |
13 | #ifndef CEF_LIBCEF_DLL_CTOCPP_DOMDOCUMENT_CTOCPP_H_
14 | #define CEF_LIBCEF_DLL_CTOCPP_DOMDOCUMENT_CTOCPP_H_
15 | #pragma once
16 |
17 | #ifndef USING_CEF_SHARED
18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only")
19 | #else // USING_CEF_SHARED
20 |
21 | #include "include/cef_dom.h"
22 | #include "include/capi/cef_dom_capi.h"
23 | #include "libcef_dll/ctocpp/ctocpp.h"
24 |
25 | // Wrap a C structure with a C++ class.
26 | // This class may be instantiated and accessed wrapper-side only.
27 | class CefDOMDocumentCToCpp
28 | : public CefCToCpp {
30 | public:
31 | CefDOMDocumentCToCpp();
32 |
33 | // CefDOMDocument methods.
34 | Type GetType() OVERRIDE;
35 | CefRefPtr GetDocument() OVERRIDE;
36 | CefRefPtr GetBody() OVERRIDE;
37 | CefRefPtr GetHead() OVERRIDE;
38 | CefString GetTitle() OVERRIDE;
39 | CefRefPtr GetElementById(const CefString& id) OVERRIDE;
40 | CefRefPtr GetFocusedNode() OVERRIDE;
41 | bool HasSelection() OVERRIDE;
42 | int GetSelectionStartOffset() OVERRIDE;
43 | int GetSelectionEndOffset() OVERRIDE;
44 | CefString GetSelectionAsMarkup() OVERRIDE;
45 | CefString GetSelectionAsText() OVERRIDE;
46 | CefString GetBaseURL() OVERRIDE;
47 | CefString GetCompleteURL(const CefString& partialURL) OVERRIDE;
48 | };
49 |
50 | #endif // USING_CEF_SHARED
51 | #endif // CEF_LIBCEF_DLL_CTOCPP_DOMDOCUMENT_CTOCPP_H_
52 |
--------------------------------------------------------------------------------
/libcef_dll/ctocpp/download_item_callback_ctocpp.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2016 The Chromium Embedded Framework Authors. All rights
2 | // reserved. Use of this source code is governed by a BSD-style license that
3 | // can be found in the LICENSE file.
4 | //
5 | // ---------------------------------------------------------------------------
6 | //
7 | // This file was generated by the CEF translator tool. If making changes by
8 | // hand only do so within the body of existing method and function
9 | // implementations. See the translator.README.txt file in the tools directory
10 | // for more information.
11 | //
12 |
13 | #ifndef CEF_LIBCEF_DLL_CTOCPP_DOWNLOAD_ITEM_CALLBACK_CTOCPP_H_
14 | #define CEF_LIBCEF_DLL_CTOCPP_DOWNLOAD_ITEM_CALLBACK_CTOCPP_H_
15 | #pragma once
16 |
17 | #ifndef USING_CEF_SHARED
18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only")
19 | #else // USING_CEF_SHARED
20 |
21 | #include "include/cef_download_handler.h"
22 | #include "include/capi/cef_download_handler_capi.h"
23 | #include "libcef_dll/ctocpp/ctocpp.h"
24 |
25 | // Wrap a C structure with a C++ class.
26 | // This class may be instantiated and accessed wrapper-side only.
27 | class CefDownloadItemCallbackCToCpp
28 | : public CefCToCpp {
30 | public:
31 | CefDownloadItemCallbackCToCpp();
32 |
33 | // CefDownloadItemCallback methods.
34 | void Cancel() OVERRIDE;
35 | void Pause() OVERRIDE;
36 | void Resume() OVERRIDE;
37 | };
38 |
39 | #endif // USING_CEF_SHARED
40 | #endif // CEF_LIBCEF_DLL_CTOCPP_DOWNLOAD_ITEM_CALLBACK_CTOCPP_H_
41 |
--------------------------------------------------------------------------------
/libcef_dll/ctocpp/download_item_ctocpp.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2016 The Chromium Embedded Framework Authors. All rights
2 | // reserved. Use of this source code is governed by a BSD-style license that
3 | // can be found in the LICENSE file.
4 | //
5 | // ---------------------------------------------------------------------------
6 | //
7 | // This file was generated by the CEF translator tool. If making changes by
8 | // hand only do so within the body of existing method and function
9 | // implementations. See the translator.README.txt file in the tools directory
10 | // for more information.
11 | //
12 |
13 | #ifndef CEF_LIBCEF_DLL_CTOCPP_DOWNLOAD_ITEM_CTOCPP_H_
14 | #define CEF_LIBCEF_DLL_CTOCPP_DOWNLOAD_ITEM_CTOCPP_H_
15 | #pragma once
16 |
17 | #ifndef USING_CEF_SHARED
18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only")
19 | #else // USING_CEF_SHARED
20 |
21 | #include "include/cef_download_item.h"
22 | #include "include/capi/cef_download_item_capi.h"
23 | #include "libcef_dll/ctocpp/ctocpp.h"
24 |
25 | // Wrap a C structure with a C++ class.
26 | // This class may be instantiated and accessed wrapper-side only.
27 | class CefDownloadItemCToCpp
28 | : public CefCToCpp {
30 | public:
31 | CefDownloadItemCToCpp();
32 |
33 | // CefDownloadItem methods.
34 | bool IsValid() OVERRIDE;
35 | bool IsInProgress() OVERRIDE;
36 | bool IsComplete() OVERRIDE;
37 | bool IsCanceled() OVERRIDE;
38 | int64 GetCurrentSpeed() OVERRIDE;
39 | int GetPercentComplete() OVERRIDE;
40 | int64 GetTotalBytes() OVERRIDE;
41 | int64 GetReceivedBytes() OVERRIDE;
42 | CefTime GetStartTime() OVERRIDE;
43 | CefTime GetEndTime() OVERRIDE;
44 | CefString GetFullPath() OVERRIDE;
45 | uint32 GetId() OVERRIDE;
46 | CefString GetURL() OVERRIDE;
47 | CefString GetOriginalUrl() OVERRIDE;
48 | CefString GetSuggestedFileName() OVERRIDE;
49 | CefString GetContentDisposition() OVERRIDE;
50 | CefString GetMimeType() OVERRIDE;
51 | };
52 |
53 | #endif // USING_CEF_SHARED
54 | #endif // CEF_LIBCEF_DLL_CTOCPP_DOWNLOAD_ITEM_CTOCPP_H_
55 |
--------------------------------------------------------------------------------
/libcef_dll/ctocpp/file_dialog_callback_ctocpp.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2016 The Chromium Embedded Framework Authors. All rights
2 | // reserved. Use of this source code is governed by a BSD-style license that
3 | // can be found in the LICENSE file.
4 | //
5 | // ---------------------------------------------------------------------------
6 | //
7 | // This file was generated by the CEF translator tool. If making changes by
8 | // hand only do so within the body of existing method and function
9 | // implementations. See the translator.README.txt file in the tools directory
10 | // for more information.
11 | //
12 |
13 | #ifndef CEF_LIBCEF_DLL_CTOCPP_FILE_DIALOG_CALLBACK_CTOCPP_H_
14 | #define CEF_LIBCEF_DLL_CTOCPP_FILE_DIALOG_CALLBACK_CTOCPP_H_
15 | #pragma once
16 |
17 | #ifndef USING_CEF_SHARED
18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only")
19 | #else // USING_CEF_SHARED
20 |
21 | #include
22 | #include "include/cef_dialog_handler.h"
23 | #include "include/capi/cef_dialog_handler_capi.h"
24 | #include "libcef_dll/ctocpp/ctocpp.h"
25 |
26 | // Wrap a C structure with a C++ class.
27 | // This class may be instantiated and accessed wrapper-side only.
28 | class CefFileDialogCallbackCToCpp
29 | : public CefCToCpp {
31 | public:
32 | CefFileDialogCallbackCToCpp();
33 |
34 | // CefFileDialogCallback methods.
35 | void Continue(int selected_accept_filter,
36 | const std::vector& file_paths) OVERRIDE;
37 | void Cancel() OVERRIDE;
38 | };
39 |
40 | #endif // USING_CEF_SHARED
41 | #endif // CEF_LIBCEF_DLL_CTOCPP_FILE_DIALOG_CALLBACK_CTOCPP_H_
42 |
--------------------------------------------------------------------------------
/libcef_dll/ctocpp/geolocation_callback_ctocpp.cc:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2016 The Chromium Embedded Framework Authors. All rights
2 | // reserved. Use of this source code is governed by a BSD-style license that
3 | // can be found in the LICENSE file.
4 | //
5 | // ---------------------------------------------------------------------------
6 | //
7 | // This file was generated by the CEF translator tool. If making changes by
8 | // hand only do so within the body of existing method and function
9 | // implementations. See the translator.README.txt file in the tools directory
10 | // for more information.
11 | //
12 |
13 | #include "libcef_dll/ctocpp/geolocation_callback_ctocpp.h"
14 |
15 |
16 | // VIRTUAL METHODS - Body may be edited by hand.
17 |
18 | void CefGeolocationCallbackCToCpp::Continue(bool allow) {
19 | cef_geolocation_callback_t* _struct = GetStruct();
20 | if (CEF_MEMBER_MISSING(_struct, cont))
21 | return;
22 |
23 | // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
24 |
25 | // Execute
26 | _struct->cont(_struct,
27 | allow);
28 | }
29 |
30 |
31 | // CONSTRUCTOR - Do not edit by hand.
32 |
33 | CefGeolocationCallbackCToCpp::CefGeolocationCallbackCToCpp() {
34 | }
35 |
36 | template<> cef_geolocation_callback_t* CefCToCpp::UnwrapDerived(
38 | CefWrapperType type, CefGeolocationCallback* c) {
39 | NOTREACHED() << "Unexpected class type: " << type;
40 | return NULL;
41 | }
42 |
43 | #ifndef NDEBUG
44 | template<> base::AtomicRefCount CefCToCpp::DebugObjCt = 0;
46 | #endif
47 |
48 | template<> CefWrapperType CefCToCpp::kWrapperType =
50 | WT_GEOLOCATION_CALLBACK;
51 |
--------------------------------------------------------------------------------
/libcef_dll/ctocpp/geolocation_callback_ctocpp.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2016 The Chromium Embedded Framework Authors. All rights
2 | // reserved. Use of this source code is governed by a BSD-style license that
3 | // can be found in the LICENSE file.
4 | //
5 | // ---------------------------------------------------------------------------
6 | //
7 | // This file was generated by the CEF translator tool. If making changes by
8 | // hand only do so within the body of existing method and function
9 | // implementations. See the translator.README.txt file in the tools directory
10 | // for more information.
11 | //
12 |
13 | #ifndef CEF_LIBCEF_DLL_CTOCPP_GEOLOCATION_CALLBACK_CTOCPP_H_
14 | #define CEF_LIBCEF_DLL_CTOCPP_GEOLOCATION_CALLBACK_CTOCPP_H_
15 | #pragma once
16 |
17 | #ifndef USING_CEF_SHARED
18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only")
19 | #else // USING_CEF_SHARED
20 |
21 | #include "include/cef_geolocation_handler.h"
22 | #include "include/capi/cef_geolocation_handler_capi.h"
23 | #include "libcef_dll/ctocpp/ctocpp.h"
24 |
25 | // Wrap a C structure with a C++ class.
26 | // This class may be instantiated and accessed wrapper-side only.
27 | class CefGeolocationCallbackCToCpp
28 | : public CefCToCpp {
30 | public:
31 | CefGeolocationCallbackCToCpp();
32 |
33 | // CefGeolocationCallback methods.
34 | void Continue(bool allow) OVERRIDE;
35 | };
36 |
37 | #endif // USING_CEF_SHARED
38 | #endif // CEF_LIBCEF_DLL_CTOCPP_GEOLOCATION_CALLBACK_CTOCPP_H_
39 |
--------------------------------------------------------------------------------
/libcef_dll/ctocpp/jsdialog_callback_ctocpp.cc:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2016 The Chromium Embedded Framework Authors. All rights
2 | // reserved. Use of this source code is governed by a BSD-style license that
3 | // can be found in the LICENSE file.
4 | //
5 | // ---------------------------------------------------------------------------
6 | //
7 | // This file was generated by the CEF translator tool. If making changes by
8 | // hand only do so within the body of existing method and function
9 | // implementations. See the translator.README.txt file in the tools directory
10 | // for more information.
11 | //
12 |
13 | #include "libcef_dll/ctocpp/jsdialog_callback_ctocpp.h"
14 |
15 |
16 | // VIRTUAL METHODS - Body may be edited by hand.
17 |
18 | void CefJSDialogCallbackCToCpp::Continue(bool success,
19 | const CefString& user_input) {
20 | cef_jsdialog_callback_t* _struct = GetStruct();
21 | if (CEF_MEMBER_MISSING(_struct, cont))
22 | return;
23 |
24 | // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
25 |
26 | // Unverified params: user_input
27 |
28 | // Execute
29 | _struct->cont(_struct,
30 | success,
31 | user_input.GetStruct());
32 | }
33 |
34 |
35 | // CONSTRUCTOR - Do not edit by hand.
36 |
37 | CefJSDialogCallbackCToCpp::CefJSDialogCallbackCToCpp() {
38 | }
39 |
40 | template<> cef_jsdialog_callback_t* CefCToCpp::UnwrapDerived(
42 | CefWrapperType type, CefJSDialogCallback* c) {
43 | NOTREACHED() << "Unexpected class type: " << type;
44 | return NULL;
45 | }
46 |
47 | #ifndef NDEBUG
48 | template<> base::AtomicRefCount CefCToCpp::DebugObjCt = 0;
50 | #endif
51 |
52 | template<> CefWrapperType CefCToCpp::kWrapperType =
54 | WT_JSDIALOG_CALLBACK;
55 |
--------------------------------------------------------------------------------
/libcef_dll/ctocpp/jsdialog_callback_ctocpp.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2016 The Chromium Embedded Framework Authors. All rights
2 | // reserved. Use of this source code is governed by a BSD-style license that
3 | // can be found in the LICENSE file.
4 | //
5 | // ---------------------------------------------------------------------------
6 | //
7 | // This file was generated by the CEF translator tool. If making changes by
8 | // hand only do so within the body of existing method and function
9 | // implementations. See the translator.README.txt file in the tools directory
10 | // for more information.
11 | //
12 |
13 | #ifndef CEF_LIBCEF_DLL_CTOCPP_JSDIALOG_CALLBACK_CTOCPP_H_
14 | #define CEF_LIBCEF_DLL_CTOCPP_JSDIALOG_CALLBACK_CTOCPP_H_
15 | #pragma once
16 |
17 | #ifndef USING_CEF_SHARED
18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only")
19 | #else // USING_CEF_SHARED
20 |
21 | #include "include/cef_jsdialog_handler.h"
22 | #include "include/capi/cef_jsdialog_handler_capi.h"
23 | #include "libcef_dll/ctocpp/ctocpp.h"
24 |
25 | // Wrap a C structure with a C++ class.
26 | // This class may be instantiated and accessed wrapper-side only.
27 | class CefJSDialogCallbackCToCpp
28 | : public CefCToCpp {
30 | public:
31 | CefJSDialogCallbackCToCpp();
32 |
33 | // CefJSDialogCallback methods.
34 | void Continue(bool success, const CefString& user_input) OVERRIDE;
35 | };
36 |
37 | #endif // USING_CEF_SHARED
38 | #endif // CEF_LIBCEF_DLL_CTOCPP_JSDIALOG_CALLBACK_CTOCPP_H_
39 |
--------------------------------------------------------------------------------
/libcef_dll/ctocpp/navigation_entry_ctocpp.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2016 The Chromium Embedded Framework Authors. All rights
2 | // reserved. Use of this source code is governed by a BSD-style license that
3 | // can be found in the LICENSE file.
4 | //
5 | // ---------------------------------------------------------------------------
6 | //
7 | // This file was generated by the CEF translator tool. If making changes by
8 | // hand only do so within the body of existing method and function
9 | // implementations. See the translator.README.txt file in the tools directory
10 | // for more information.
11 | //
12 |
13 | #ifndef CEF_LIBCEF_DLL_CTOCPP_NAVIGATION_ENTRY_CTOCPP_H_
14 | #define CEF_LIBCEF_DLL_CTOCPP_NAVIGATION_ENTRY_CTOCPP_H_
15 | #pragma once
16 |
17 | #ifndef USING_CEF_SHARED
18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only")
19 | #else // USING_CEF_SHARED
20 |
21 | #include "include/cef_navigation_entry.h"
22 | #include "include/capi/cef_navigation_entry_capi.h"
23 | #include "libcef_dll/ctocpp/ctocpp.h"
24 |
25 | // Wrap a C structure with a C++ class.
26 | // This class may be instantiated and accessed wrapper-side only.
27 | class CefNavigationEntryCToCpp
28 | : public CefCToCpp {
30 | public:
31 | CefNavigationEntryCToCpp();
32 |
33 | // CefNavigationEntry methods.
34 | bool IsValid() OVERRIDE;
35 | CefString GetURL() OVERRIDE;
36 | CefString GetDisplayURL() OVERRIDE;
37 | CefString GetOriginalURL() OVERRIDE;
38 | CefString GetTitle() OVERRIDE;
39 | TransitionType GetTransitionType() OVERRIDE;
40 | bool HasPostData() OVERRIDE;
41 | CefTime GetCompletionTime() OVERRIDE;
42 | int GetHttpStatusCode() OVERRIDE;
43 | };
44 |
45 | #endif // USING_CEF_SHARED
46 | #endif // CEF_LIBCEF_DLL_CTOCPP_NAVIGATION_ENTRY_CTOCPP_H_
47 |
--------------------------------------------------------------------------------
/libcef_dll/ctocpp/post_data_ctocpp.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2016 The Chromium Embedded Framework Authors. All rights
2 | // reserved. Use of this source code is governed by a BSD-style license that
3 | // can be found in the LICENSE file.
4 | //
5 | // ---------------------------------------------------------------------------
6 | //
7 | // This file was generated by the CEF translator tool. If making changes by
8 | // hand only do so within the body of existing method and function
9 | // implementations. See the translator.README.txt file in the tools directory
10 | // for more information.
11 | //
12 |
13 | #ifndef CEF_LIBCEF_DLL_CTOCPP_POST_DATA_CTOCPP_H_
14 | #define CEF_LIBCEF_DLL_CTOCPP_POST_DATA_CTOCPP_H_
15 | #pragma once
16 |
17 | #ifndef USING_CEF_SHARED
18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only")
19 | #else // USING_CEF_SHARED
20 |
21 | #include "include/cef_request.h"
22 | #include "include/capi/cef_request_capi.h"
23 | #include "libcef_dll/ctocpp/ctocpp.h"
24 |
25 | // Wrap a C structure with a C++ class.
26 | // This class may be instantiated and accessed wrapper-side only.
27 | class CefPostDataCToCpp
28 | : public CefCToCpp {
29 | public:
30 | CefPostDataCToCpp();
31 |
32 | // CefPostData methods.
33 | bool IsReadOnly() OVERRIDE;
34 | bool HasExcludedElements() OVERRIDE;
35 | size_t GetElementCount() OVERRIDE;
36 | void GetElements(ElementVector& elements) OVERRIDE;
37 | bool RemoveElement(CefRefPtr element) OVERRIDE;
38 | bool AddElement(CefRefPtr element) OVERRIDE;
39 | void RemoveElements() OVERRIDE;
40 | };
41 |
42 | #endif // USING_CEF_SHARED
43 | #endif // CEF_LIBCEF_DLL_CTOCPP_POST_DATA_CTOCPP_H_
44 |
--------------------------------------------------------------------------------
/libcef_dll/ctocpp/post_data_element_ctocpp.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2016 The Chromium Embedded Framework Authors. All rights
2 | // reserved. Use of this source code is governed by a BSD-style license that
3 | // can be found in the LICENSE file.
4 | //
5 | // ---------------------------------------------------------------------------
6 | //
7 | // This file was generated by the CEF translator tool. If making changes by
8 | // hand only do so within the body of existing method and function
9 | // implementations. See the translator.README.txt file in the tools directory
10 | // for more information.
11 | //
12 |
13 | #ifndef CEF_LIBCEF_DLL_CTOCPP_POST_DATA_ELEMENT_CTOCPP_H_
14 | #define CEF_LIBCEF_DLL_CTOCPP_POST_DATA_ELEMENT_CTOCPP_H_
15 | #pragma once
16 |
17 | #ifndef USING_CEF_SHARED
18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only")
19 | #else // USING_CEF_SHARED
20 |
21 | #include "include/cef_request.h"
22 | #include "include/capi/cef_request_capi.h"
23 | #include "libcef_dll/ctocpp/ctocpp.h"
24 |
25 | // Wrap a C structure with a C++ class.
26 | // This class may be instantiated and accessed wrapper-side only.
27 | class CefPostDataElementCToCpp
28 | : public CefCToCpp {
30 | public:
31 | CefPostDataElementCToCpp();
32 |
33 | // CefPostDataElement methods.
34 | bool IsReadOnly() OVERRIDE;
35 | void SetToEmpty() OVERRIDE;
36 | void SetToFile(const CefString& fileName) OVERRIDE;
37 | void SetToBytes(size_t size, const void* bytes) OVERRIDE;
38 | Type GetType() OVERRIDE;
39 | CefString GetFile() OVERRIDE;
40 | size_t GetBytesCount() OVERRIDE;
41 | size_t GetBytes(size_t size, void* bytes) OVERRIDE;
42 | };
43 |
44 | #endif // USING_CEF_SHARED
45 | #endif // CEF_LIBCEF_DLL_CTOCPP_POST_DATA_ELEMENT_CTOCPP_H_
46 |
--------------------------------------------------------------------------------
/libcef_dll/ctocpp/print_dialog_callback_ctocpp.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2016 The Chromium Embedded Framework Authors. All rights
2 | // reserved. Use of this source code is governed by a BSD-style license that
3 | // can be found in the LICENSE file.
4 | //
5 | // ---------------------------------------------------------------------------
6 | //
7 | // This file was generated by the CEF translator tool. If making changes by
8 | // hand only do so within the body of existing method and function
9 | // implementations. See the translator.README.txt file in the tools directory
10 | // for more information.
11 | //
12 |
13 | #ifndef CEF_LIBCEF_DLL_CTOCPP_PRINT_DIALOG_CALLBACK_CTOCPP_H_
14 | #define CEF_LIBCEF_DLL_CTOCPP_PRINT_DIALOG_CALLBACK_CTOCPP_H_
15 | #pragma once
16 |
17 | #ifndef USING_CEF_SHARED
18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only")
19 | #else // USING_CEF_SHARED
20 |
21 | #include "include/cef_print_handler.h"
22 | #include "include/capi/cef_print_handler_capi.h"
23 | #include "libcef_dll/ctocpp/ctocpp.h"
24 |
25 | // Wrap a C structure with a C++ class.
26 | // This class may be instantiated and accessed wrapper-side only.
27 | class CefPrintDialogCallbackCToCpp
28 | : public CefCToCpp {
30 | public:
31 | CefPrintDialogCallbackCToCpp();
32 |
33 | // CefPrintDialogCallback methods.
34 | void Continue(CefRefPtr settings) OVERRIDE;
35 | void Cancel() OVERRIDE;
36 | };
37 |
38 | #endif // USING_CEF_SHARED
39 | #endif // CEF_LIBCEF_DLL_CTOCPP_PRINT_DIALOG_CALLBACK_CTOCPP_H_
40 |
--------------------------------------------------------------------------------
/libcef_dll/ctocpp/print_job_callback_ctocpp.cc:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2016 The Chromium Embedded Framework Authors. All rights
2 | // reserved. Use of this source code is governed by a BSD-style license that
3 | // can be found in the LICENSE file.
4 | //
5 | // ---------------------------------------------------------------------------
6 | //
7 | // This file was generated by the CEF translator tool. If making changes by
8 | // hand only do so within the body of existing method and function
9 | // implementations. See the translator.README.txt file in the tools directory
10 | // for more information.
11 | //
12 |
13 | #include "libcef_dll/ctocpp/print_job_callback_ctocpp.h"
14 |
15 |
16 | // VIRTUAL METHODS - Body may be edited by hand.
17 |
18 | void CefPrintJobCallbackCToCpp::Continue() {
19 | cef_print_job_callback_t* _struct = GetStruct();
20 | if (CEF_MEMBER_MISSING(_struct, cont))
21 | return;
22 |
23 | // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
24 |
25 | // Execute
26 | _struct->cont(_struct);
27 | }
28 |
29 |
30 | // CONSTRUCTOR - Do not edit by hand.
31 |
32 | CefPrintJobCallbackCToCpp::CefPrintJobCallbackCToCpp() {
33 | }
34 |
35 | template<> cef_print_job_callback_t* CefCToCpp::UnwrapDerived(
37 | CefWrapperType type, CefPrintJobCallback* c) {
38 | NOTREACHED() << "Unexpected class type: " << type;
39 | return NULL;
40 | }
41 |
42 | #ifndef NDEBUG
43 | template<> base::AtomicRefCount CefCToCpp::DebugObjCt = 0;
45 | #endif
46 |
47 | template<> CefWrapperType CefCToCpp::kWrapperType =
49 | WT_PRINT_JOB_CALLBACK;
50 |
--------------------------------------------------------------------------------
/libcef_dll/ctocpp/print_job_callback_ctocpp.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2016 The Chromium Embedded Framework Authors. All rights
2 | // reserved. Use of this source code is governed by a BSD-style license that
3 | // can be found in the LICENSE file.
4 | //
5 | // ---------------------------------------------------------------------------
6 | //
7 | // This file was generated by the CEF translator tool. If making changes by
8 | // hand only do so within the body of existing method and function
9 | // implementations. See the translator.README.txt file in the tools directory
10 | // for more information.
11 | //
12 |
13 | #ifndef CEF_LIBCEF_DLL_CTOCPP_PRINT_JOB_CALLBACK_CTOCPP_H_
14 | #define CEF_LIBCEF_DLL_CTOCPP_PRINT_JOB_CALLBACK_CTOCPP_H_
15 | #pragma once
16 |
17 | #ifndef USING_CEF_SHARED
18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only")
19 | #else // USING_CEF_SHARED
20 |
21 | #include "include/cef_print_handler.h"
22 | #include "include/capi/cef_print_handler_capi.h"
23 | #include "libcef_dll/ctocpp/ctocpp.h"
24 |
25 | // Wrap a C structure with a C++ class.
26 | // This class may be instantiated and accessed wrapper-side only.
27 | class CefPrintJobCallbackCToCpp
28 | : public CefCToCpp {
30 | public:
31 | CefPrintJobCallbackCToCpp();
32 |
33 | // CefPrintJobCallback methods.
34 | void Continue() OVERRIDE;
35 | };
36 |
37 | #endif // USING_CEF_SHARED
38 | #endif // CEF_LIBCEF_DLL_CTOCPP_PRINT_JOB_CALLBACK_CTOCPP_H_
39 |
--------------------------------------------------------------------------------
/libcef_dll/ctocpp/process_message_ctocpp.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2016 The Chromium Embedded Framework Authors. All rights
2 | // reserved. Use of this source code is governed by a BSD-style license that
3 | // can be found in the LICENSE file.
4 | //
5 | // ---------------------------------------------------------------------------
6 | //
7 | // This file was generated by the CEF translator tool. If making changes by
8 | // hand only do so within the body of existing method and function
9 | // implementations. See the translator.README.txt file in the tools directory
10 | // for more information.
11 | //
12 |
13 | #ifndef CEF_LIBCEF_DLL_CTOCPP_PROCESS_MESSAGE_CTOCPP_H_
14 | #define CEF_LIBCEF_DLL_CTOCPP_PROCESS_MESSAGE_CTOCPP_H_
15 | #pragma once
16 |
17 | #ifndef USING_CEF_SHARED
18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only")
19 | #else // USING_CEF_SHARED
20 |
21 | #include "include/cef_process_message.h"
22 | #include "include/capi/cef_process_message_capi.h"
23 | #include "libcef_dll/ctocpp/ctocpp.h"
24 |
25 | // Wrap a C structure with a C++ class.
26 | // This class may be instantiated and accessed wrapper-side only.
27 | class CefProcessMessageCToCpp
28 | : public CefCToCpp {
30 | public:
31 | CefProcessMessageCToCpp();
32 |
33 | // CefProcessMessage methods.
34 | bool IsValid() OVERRIDE;
35 | bool IsReadOnly() OVERRIDE;
36 | CefRefPtr Copy() OVERRIDE;
37 | CefString GetName() OVERRIDE;
38 | CefRefPtr GetArgumentList() OVERRIDE;
39 | };
40 |
41 | #endif // USING_CEF_SHARED
42 | #endif // CEF_LIBCEF_DLL_CTOCPP_PROCESS_MESSAGE_CTOCPP_H_
43 |
--------------------------------------------------------------------------------
/libcef_dll/ctocpp/request_callback_ctocpp.cc:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2016 The Chromium Embedded Framework Authors. All rights
2 | // reserved. Use of this source code is governed by a BSD-style license that
3 | // can be found in the LICENSE file.
4 | //
5 | // ---------------------------------------------------------------------------
6 | //
7 | // This file was generated by the CEF translator tool. If making changes by
8 | // hand only do so within the body of existing method and function
9 | // implementations. See the translator.README.txt file in the tools directory
10 | // for more information.
11 | //
12 |
13 | #include "libcef_dll/ctocpp/request_callback_ctocpp.h"
14 |
15 |
16 | // VIRTUAL METHODS - Body may be edited by hand.
17 |
18 | void CefRequestCallbackCToCpp::Continue(bool allow) {
19 | cef_request_callback_t* _struct = GetStruct();
20 | if (CEF_MEMBER_MISSING(_struct, cont))
21 | return;
22 |
23 | // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
24 |
25 | // Execute
26 | _struct->cont(_struct,
27 | allow);
28 | }
29 |
30 | void CefRequestCallbackCToCpp::Cancel() {
31 | cef_request_callback_t* _struct = GetStruct();
32 | if (CEF_MEMBER_MISSING(_struct, cancel))
33 | return;
34 |
35 | // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
36 |
37 | // Execute
38 | _struct->cancel(_struct);
39 | }
40 |
41 |
42 | // CONSTRUCTOR - Do not edit by hand.
43 |
44 | CefRequestCallbackCToCpp::CefRequestCallbackCToCpp() {
45 | }
46 |
47 | template<> cef_request_callback_t* CefCToCpp::UnwrapDerived(
49 | CefWrapperType type, CefRequestCallback* c) {
50 | NOTREACHED() << "Unexpected class type: " << type;
51 | return NULL;
52 | }
53 |
54 | #ifndef NDEBUG
55 | template<> base::AtomicRefCount CefCToCpp::DebugObjCt = 0;
57 | #endif
58 |
59 | template<> CefWrapperType CefCToCpp::kWrapperType =
61 | WT_REQUEST_CALLBACK;
62 |
--------------------------------------------------------------------------------
/libcef_dll/ctocpp/request_callback_ctocpp.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2016 The Chromium Embedded Framework Authors. All rights
2 | // reserved. Use of this source code is governed by a BSD-style license that
3 | // can be found in the LICENSE file.
4 | //
5 | // ---------------------------------------------------------------------------
6 | //
7 | // This file was generated by the CEF translator tool. If making changes by
8 | // hand only do so within the body of existing method and function
9 | // implementations. See the translator.README.txt file in the tools directory
10 | // for more information.
11 | //
12 |
13 | #ifndef CEF_LIBCEF_DLL_CTOCPP_REQUEST_CALLBACK_CTOCPP_H_
14 | #define CEF_LIBCEF_DLL_CTOCPP_REQUEST_CALLBACK_CTOCPP_H_
15 | #pragma once
16 |
17 | #ifndef USING_CEF_SHARED
18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only")
19 | #else // USING_CEF_SHARED
20 |
21 | #include "include/cef_request_handler.h"
22 | #include "include/capi/cef_request_handler_capi.h"
23 | #include "libcef_dll/ctocpp/ctocpp.h"
24 |
25 | // Wrap a C structure with a C++ class.
26 | // This class may be instantiated and accessed wrapper-side only.
27 | class CefRequestCallbackCToCpp
28 | : public CefCToCpp {
30 | public:
31 | CefRequestCallbackCToCpp();
32 |
33 | // CefRequestCallback methods.
34 | void Continue(bool allow) OVERRIDE;
35 | void Cancel() OVERRIDE;
36 | };
37 |
38 | #endif // USING_CEF_SHARED
39 | #endif // CEF_LIBCEF_DLL_CTOCPP_REQUEST_CALLBACK_CTOCPP_H_
40 |
--------------------------------------------------------------------------------
/libcef_dll/ctocpp/resource_bundle_ctocpp.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2016 The Chromium Embedded Framework Authors. All rights
2 | // reserved. Use of this source code is governed by a BSD-style license that
3 | // can be found in the LICENSE file.
4 | //
5 | // ---------------------------------------------------------------------------
6 | //
7 | // This file was generated by the CEF translator tool. If making changes by
8 | // hand only do so within the body of existing method and function
9 | // implementations. See the translator.README.txt file in the tools directory
10 | // for more information.
11 | //
12 |
13 | #ifndef CEF_LIBCEF_DLL_CTOCPP_RESOURCE_BUNDLE_CTOCPP_H_
14 | #define CEF_LIBCEF_DLL_CTOCPP_RESOURCE_BUNDLE_CTOCPP_H_
15 | #pragma once
16 |
17 | #ifndef USING_CEF_SHARED
18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only")
19 | #else // USING_CEF_SHARED
20 |
21 | #include "include/cef_resource_bundle.h"
22 | #include "include/capi/cef_resource_bundle_capi.h"
23 | #include "libcef_dll/ctocpp/ctocpp.h"
24 |
25 | // Wrap a C structure with a C++ class.
26 | // This class may be instantiated and accessed wrapper-side only.
27 | class CefResourceBundleCToCpp
28 | : public CefCToCpp {
30 | public:
31 | CefResourceBundleCToCpp();
32 |
33 | // CefResourceBundle methods.
34 | CefString GetLocalizedString(int string_id) OVERRIDE;
35 | bool GetDataResource(int resource_id, void*& data,
36 | size_t& data_size) OVERRIDE;
37 | bool GetDataResourceForScale(int resource_id, ScaleFactor scale_factor,
38 | void*& data, size_t& data_size) OVERRIDE;
39 | };
40 |
41 | #endif // USING_CEF_SHARED
42 | #endif // CEF_LIBCEF_DLL_CTOCPP_RESOURCE_BUNDLE_CTOCPP_H_
43 |
--------------------------------------------------------------------------------
/libcef_dll/ctocpp/response_ctocpp.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2016 The Chromium Embedded Framework Authors. All rights
2 | // reserved. Use of this source code is governed by a BSD-style license that
3 | // can be found in the LICENSE file.
4 | //
5 | // ---------------------------------------------------------------------------
6 | //
7 | // This file was generated by the CEF translator tool. If making changes by
8 | // hand only do so within the body of existing method and function
9 | // implementations. See the translator.README.txt file in the tools directory
10 | // for more information.
11 | //
12 |
13 | #ifndef CEF_LIBCEF_DLL_CTOCPP_RESPONSE_CTOCPP_H_
14 | #define CEF_LIBCEF_DLL_CTOCPP_RESPONSE_CTOCPP_H_
15 | #pragma once
16 |
17 | #ifndef USING_CEF_SHARED
18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only")
19 | #else // USING_CEF_SHARED
20 |
21 | #include "include/cef_response.h"
22 | #include "include/capi/cef_response_capi.h"
23 | #include "libcef_dll/ctocpp/ctocpp.h"
24 |
25 | // Wrap a C structure with a C++ class.
26 | // This class may be instantiated and accessed wrapper-side only.
27 | class CefResponseCToCpp
28 | : public CefCToCpp {
29 | public:
30 | CefResponseCToCpp();
31 |
32 | // CefResponse methods.
33 | bool IsReadOnly() OVERRIDE;
34 | int GetStatus() OVERRIDE;
35 | void SetStatus(int status) OVERRIDE;
36 | CefString GetStatusText() OVERRIDE;
37 | void SetStatusText(const CefString& statusText) OVERRIDE;
38 | CefString GetMimeType() OVERRIDE;
39 | void SetMimeType(const CefString& mimeType) OVERRIDE;
40 | CefString GetHeader(const CefString& name) OVERRIDE;
41 | void GetHeaderMap(HeaderMap& headerMap) OVERRIDE;
42 | void SetHeaderMap(const HeaderMap& headerMap) OVERRIDE;
43 | };
44 |
45 | #endif // USING_CEF_SHARED
46 | #endif // CEF_LIBCEF_DLL_CTOCPP_RESPONSE_CTOCPP_H_
47 |
--------------------------------------------------------------------------------
/libcef_dll/ctocpp/run_context_menu_callback_ctocpp.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2016 The Chromium Embedded Framework Authors. All rights
2 | // reserved. Use of this source code is governed by a BSD-style license that
3 | // can be found in the LICENSE file.
4 | //
5 | // ---------------------------------------------------------------------------
6 | //
7 | // This file was generated by the CEF translator tool. If making changes by
8 | // hand only do so within the body of existing method and function
9 | // implementations. See the translator.README.txt file in the tools directory
10 | // for more information.
11 | //
12 |
13 | #ifndef CEF_LIBCEF_DLL_CTOCPP_RUN_CONTEXT_MENU_CALLBACK_CTOCPP_H_
14 | #define CEF_LIBCEF_DLL_CTOCPP_RUN_CONTEXT_MENU_CALLBACK_CTOCPP_H_
15 | #pragma once
16 |
17 | #ifndef USING_CEF_SHARED
18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only")
19 | #else // USING_CEF_SHARED
20 |
21 | #include "include/cef_context_menu_handler.h"
22 | #include "include/capi/cef_context_menu_handler_capi.h"
23 | #include "libcef_dll/ctocpp/ctocpp.h"
24 |
25 | // Wrap a C structure with a C++ class.
26 | // This class may be instantiated and accessed wrapper-side only.
27 | class CefRunContextMenuCallbackCToCpp
28 | : public CefCToCpp {
30 | public:
31 | CefRunContextMenuCallbackCToCpp();
32 |
33 | // CefRunContextMenuCallback methods.
34 | void Continue(int command_id, EventFlags event_flags) OVERRIDE;
35 | void Cancel() OVERRIDE;
36 | };
37 |
38 | #endif // USING_CEF_SHARED
39 | #endif // CEF_LIBCEF_DLL_CTOCPP_RUN_CONTEXT_MENU_CALLBACK_CTOCPP_H_
40 |
--------------------------------------------------------------------------------
/libcef_dll/ctocpp/scheme_registrar_ctocpp.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2016 The Chromium Embedded Framework Authors. All rights
2 | // reserved. Use of this source code is governed by a BSD-style license that
3 | // can be found in the LICENSE file.
4 | //
5 | // ---------------------------------------------------------------------------
6 | //
7 | // This file was generated by the CEF translator tool. If making changes by
8 | // hand only do so within the body of existing method and function
9 | // implementations. See the translator.README.txt file in the tools directory
10 | // for more information.
11 | //
12 |
13 | #ifndef CEF_LIBCEF_DLL_CTOCPP_SCHEME_REGISTRAR_CTOCPP_H_
14 | #define CEF_LIBCEF_DLL_CTOCPP_SCHEME_REGISTRAR_CTOCPP_H_
15 | #pragma once
16 |
17 | #ifndef USING_CEF_SHARED
18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only")
19 | #else // USING_CEF_SHARED
20 |
21 | #include "include/cef_scheme.h"
22 | #include "include/capi/cef_scheme_capi.h"
23 | #include "libcef_dll/ctocpp/ctocpp.h"
24 |
25 | // Wrap a C structure with a C++ class.
26 | // This class may be instantiated and accessed wrapper-side only.
27 | class CefSchemeRegistrarCToCpp
28 | : public CefCToCpp {
30 | public:
31 | CefSchemeRegistrarCToCpp();
32 |
33 | // CefSchemeRegistrar methods.
34 | bool AddCustomScheme(const CefString& scheme_name, bool is_standard,
35 | bool is_local, bool is_display_isolated) OVERRIDE;
36 | };
37 |
38 | #endif // USING_CEF_SHARED
39 | #endif // CEF_LIBCEF_DLL_CTOCPP_SCHEME_REGISTRAR_CTOCPP_H_
40 |
--------------------------------------------------------------------------------
/libcef_dll/ctocpp/sslcert_principal_ctocpp.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2016 The Chromium Embedded Framework Authors. All rights
2 | // reserved. Use of this source code is governed by a BSD-style license that
3 | // can be found in the LICENSE file.
4 | //
5 | // ---------------------------------------------------------------------------
6 | //
7 | // This file was generated by the CEF translator tool. If making changes by
8 | // hand only do so within the body of existing method and function
9 | // implementations. See the translator.README.txt file in the tools directory
10 | // for more information.
11 | //
12 |
13 | #ifndef CEF_LIBCEF_DLL_CTOCPP_SSLCERT_PRINCIPAL_CTOCPP_H_
14 | #define CEF_LIBCEF_DLL_CTOCPP_SSLCERT_PRINCIPAL_CTOCPP_H_
15 | #pragma once
16 |
17 | #ifndef USING_CEF_SHARED
18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only")
19 | #else // USING_CEF_SHARED
20 |
21 | #include
22 | #include "include/cef_ssl_info.h"
23 | #include "include/capi/cef_ssl_info_capi.h"
24 | #include "libcef_dll/ctocpp/ctocpp.h"
25 |
26 | // Wrap a C structure with a C++ class.
27 | // This class may be instantiated and accessed wrapper-side only.
28 | class CefSSLCertPrincipalCToCpp
29 | : public CefCToCpp {
31 | public:
32 | CefSSLCertPrincipalCToCpp();
33 |
34 | // CefSSLCertPrincipal methods.
35 | CefString GetDisplayName() OVERRIDE;
36 | CefString GetCommonName() OVERRIDE;
37 | CefString GetLocalityName() OVERRIDE;
38 | CefString GetStateOrProvinceName() OVERRIDE;
39 | CefString GetCountryName() OVERRIDE;
40 | void GetStreetAddresses(std::vector& addresses) OVERRIDE;
41 | void GetOrganizationNames(std::vector& names) OVERRIDE;
42 | void GetOrganizationUnitNames(std::vector& names) OVERRIDE;
43 | void GetDomainComponents(std::vector& components) OVERRIDE;
44 | };
45 |
46 | #endif // USING_CEF_SHARED
47 | #endif // CEF_LIBCEF_DLL_CTOCPP_SSLCERT_PRINCIPAL_CTOCPP_H_
48 |
--------------------------------------------------------------------------------
/libcef_dll/ctocpp/sslinfo_ctocpp.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2016 The Chromium Embedded Framework Authors. All rights
2 | // reserved. Use of this source code is governed by a BSD-style license that
3 | // can be found in the LICENSE file.
4 | //
5 | // ---------------------------------------------------------------------------
6 | //
7 | // This file was generated by the CEF translator tool. If making changes by
8 | // hand only do so within the body of existing method and function
9 | // implementations. See the translator.README.txt file in the tools directory
10 | // for more information.
11 | //
12 |
13 | #ifndef CEF_LIBCEF_DLL_CTOCPP_SSLINFO_CTOCPP_H_
14 | #define CEF_LIBCEF_DLL_CTOCPP_SSLINFO_CTOCPP_H_
15 | #pragma once
16 |
17 | #ifndef USING_CEF_SHARED
18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only")
19 | #else // USING_CEF_SHARED
20 |
21 | #include "include/cef_ssl_info.h"
22 | #include "include/capi/cef_ssl_info_capi.h"
23 | #include "libcef_dll/ctocpp/ctocpp.h"
24 |
25 | // Wrap a C structure with a C++ class.
26 | // This class may be instantiated and accessed wrapper-side only.
27 | class CefSSLInfoCToCpp
28 | : public CefCToCpp {
29 | public:
30 | CefSSLInfoCToCpp();
31 |
32 | // CefSSLInfo methods.
33 | cef_cert_status_t GetCertStatus() OVERRIDE;
34 | bool IsCertStatusError() OVERRIDE;
35 | bool IsCertStatusMinorError() OVERRIDE;
36 | CefRefPtr GetSubject() OVERRIDE;
37 | CefRefPtr GetIssuer() OVERRIDE;
38 | CefRefPtr GetSerialNumber() OVERRIDE;
39 | CefTime GetValidStart() OVERRIDE;
40 | CefTime GetValidExpiry() OVERRIDE;
41 | CefRefPtr GetDEREncoded() OVERRIDE;
42 | CefRefPtr GetPEMEncoded() OVERRIDE;
43 | size_t GetIssuerChainSize() OVERRIDE;
44 | void GetDEREncodedIssuerChain(IssuerChainBinaryList& chain) OVERRIDE;
45 | void GetPEMEncodedIssuerChain(IssuerChainBinaryList& chain) OVERRIDE;
46 | };
47 |
48 | #endif // USING_CEF_SHARED
49 | #endif // CEF_LIBCEF_DLL_CTOCPP_SSLINFO_CTOCPP_H_
50 |
--------------------------------------------------------------------------------
/libcef_dll/ctocpp/stream_reader_ctocpp.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2016 The Chromium Embedded Framework Authors. All rights
2 | // reserved. Use of this source code is governed by a BSD-style license that
3 | // can be found in the LICENSE file.
4 | //
5 | // ---------------------------------------------------------------------------
6 | //
7 | // This file was generated by the CEF translator tool. If making changes by
8 | // hand only do so within the body of existing method and function
9 | // implementations. See the translator.README.txt file in the tools directory
10 | // for more information.
11 | //
12 |
13 | #ifndef CEF_LIBCEF_DLL_CTOCPP_STREAM_READER_CTOCPP_H_
14 | #define CEF_LIBCEF_DLL_CTOCPP_STREAM_READER_CTOCPP_H_
15 | #pragma once
16 |
17 | #ifndef USING_CEF_SHARED
18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only")
19 | #else // USING_CEF_SHARED
20 |
21 | #include "include/cef_stream.h"
22 | #include "include/capi/cef_stream_capi.h"
23 | #include "libcef_dll/ctocpp/ctocpp.h"
24 |
25 | // Wrap a C structure with a C++ class.
26 | // This class may be instantiated and accessed wrapper-side only.
27 | class CefStreamReaderCToCpp
28 | : public CefCToCpp {
30 | public:
31 | CefStreamReaderCToCpp();
32 |
33 | // CefStreamReader methods.
34 | size_t Read(void* ptr, size_t size, size_t n) OVERRIDE;
35 | int Seek(int64 offset, int whence) OVERRIDE;
36 | int64 Tell() OVERRIDE;
37 | int Eof() OVERRIDE;
38 | bool MayBlock() OVERRIDE;
39 | };
40 |
41 | #endif // USING_CEF_SHARED
42 | #endif // CEF_LIBCEF_DLL_CTOCPP_STREAM_READER_CTOCPP_H_
43 |
--------------------------------------------------------------------------------
/libcef_dll/ctocpp/stream_writer_ctocpp.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2016 The Chromium Embedded Framework Authors. All rights
2 | // reserved. Use of this source code is governed by a BSD-style license that
3 | // can be found in the LICENSE file.
4 | //
5 | // ---------------------------------------------------------------------------
6 | //
7 | // This file was generated by the CEF translator tool. If making changes by
8 | // hand only do so within the body of existing method and function
9 | // implementations. See the translator.README.txt file in the tools directory
10 | // for more information.
11 | //
12 |
13 | #ifndef CEF_LIBCEF_DLL_CTOCPP_STREAM_WRITER_CTOCPP_H_
14 | #define CEF_LIBCEF_DLL_CTOCPP_STREAM_WRITER_CTOCPP_H_
15 | #pragma once
16 |
17 | #ifndef USING_CEF_SHARED
18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only")
19 | #else // USING_CEF_SHARED
20 |
21 | #include "include/cef_stream.h"
22 | #include "include/capi/cef_stream_capi.h"
23 | #include "libcef_dll/ctocpp/ctocpp.h"
24 |
25 | // Wrap a C structure with a C++ class.
26 | // This class may be instantiated and accessed wrapper-side only.
27 | class CefStreamWriterCToCpp
28 | : public CefCToCpp {
30 | public:
31 | CefStreamWriterCToCpp();
32 |
33 | // CefStreamWriter methods.
34 | size_t Write(const void* ptr, size_t size, size_t n) OVERRIDE;
35 | int Seek(int64 offset, int whence) OVERRIDE;
36 | int64 Tell() OVERRIDE;
37 | int Flush() OVERRIDE;
38 | bool MayBlock() OVERRIDE;
39 | };
40 |
41 | #endif // USING_CEF_SHARED
42 | #endif // CEF_LIBCEF_DLL_CTOCPP_STREAM_WRITER_CTOCPP_H_
43 |
--------------------------------------------------------------------------------
/libcef_dll/ctocpp/task_runner_ctocpp.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2016 The Chromium Embedded Framework Authors. All rights
2 | // reserved. Use of this source code is governed by a BSD-style license that
3 | // can be found in the LICENSE file.
4 | //
5 | // ---------------------------------------------------------------------------
6 | //
7 | // This file was generated by the CEF translator tool. If making changes by
8 | // hand only do so within the body of existing method and function
9 | // implementations. See the translator.README.txt file in the tools directory
10 | // for more information.
11 | //
12 |
13 | #ifndef CEF_LIBCEF_DLL_CTOCPP_TASK_RUNNER_CTOCPP_H_
14 | #define CEF_LIBCEF_DLL_CTOCPP_TASK_RUNNER_CTOCPP_H_
15 | #pragma once
16 |
17 | #ifndef USING_CEF_SHARED
18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only")
19 | #else // USING_CEF_SHARED
20 |
21 | #include "include/cef_task.h"
22 | #include "include/capi/cef_task_capi.h"
23 | #include "libcef_dll/ctocpp/ctocpp.h"
24 |
25 | // Wrap a C structure with a C++ class.
26 | // This class may be instantiated and accessed wrapper-side only.
27 | class CefTaskRunnerCToCpp
28 | : public CefCToCpp {
29 | public:
30 | CefTaskRunnerCToCpp();
31 |
32 | // CefTaskRunner methods.
33 | bool IsSame(CefRefPtr that) OVERRIDE;
34 | bool BelongsToCurrentThread() OVERRIDE;
35 | bool BelongsToThread(CefThreadId threadId) OVERRIDE;
36 | bool PostTask(CefRefPtr task) OVERRIDE;
37 | bool PostDelayedTask(CefRefPtr task, int64 delay_ms) OVERRIDE;
38 | };
39 |
40 | #endif // USING_CEF_SHARED
41 | #endif // CEF_LIBCEF_DLL_CTOCPP_TASK_RUNNER_CTOCPP_H_
42 |
--------------------------------------------------------------------------------
/libcef_dll/ctocpp/urlrequest_ctocpp.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2016 The Chromium Embedded Framework Authors. All rights
2 | // reserved. Use of this source code is governed by a BSD-style license that
3 | // can be found in the LICENSE file.
4 | //
5 | // ---------------------------------------------------------------------------
6 | //
7 | // This file was generated by the CEF translator tool. If making changes by
8 | // hand only do so within the body of existing method and function
9 | // implementations. See the translator.README.txt file in the tools directory
10 | // for more information.
11 | //
12 |
13 | #ifndef CEF_LIBCEF_DLL_CTOCPP_URLREQUEST_CTOCPP_H_
14 | #define CEF_LIBCEF_DLL_CTOCPP_URLREQUEST_CTOCPP_H_
15 | #pragma once
16 |
17 | #ifndef USING_CEF_SHARED
18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only")
19 | #else // USING_CEF_SHARED
20 |
21 | #include "include/cef_urlrequest.h"
22 | #include "include/capi/cef_urlrequest_capi.h"
23 | #include "libcef_dll/ctocpp/ctocpp.h"
24 |
25 | // Wrap a C structure with a C++ class.
26 | // This class may be instantiated and accessed wrapper-side only.
27 | class CefURLRequestCToCpp
28 | : public CefCToCpp {
29 | public:
30 | CefURLRequestCToCpp();
31 |
32 | // CefURLRequest methods.
33 | CefRefPtr GetRequest() OVERRIDE;
34 | CefRefPtr GetClient() OVERRIDE;
35 | Status GetRequestStatus() OVERRIDE;
36 | ErrorCode GetRequestError() OVERRIDE;
37 | CefRefPtr GetResponse() OVERRIDE;
38 | void Cancel() OVERRIDE;
39 | };
40 |
41 | #endif // USING_CEF_SHARED
42 | #endif // CEF_LIBCEF_DLL_CTOCPP_URLREQUEST_CTOCPP_H_
43 |
--------------------------------------------------------------------------------
/libcef_dll/ctocpp/v8context_ctocpp.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2016 The Chromium Embedded Framework Authors. All rights
2 | // reserved. Use of this source code is governed by a BSD-style license that
3 | // can be found in the LICENSE file.
4 | //
5 | // ---------------------------------------------------------------------------
6 | //
7 | // This file was generated by the CEF translator tool. If making changes by
8 | // hand only do so within the body of existing method and function
9 | // implementations. See the translator.README.txt file in the tools directory
10 | // for more information.
11 | //
12 |
13 | #ifndef CEF_LIBCEF_DLL_CTOCPP_V8CONTEXT_CTOCPP_H_
14 | #define CEF_LIBCEF_DLL_CTOCPP_V8CONTEXT_CTOCPP_H_
15 | #pragma once
16 |
17 | #ifndef USING_CEF_SHARED
18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only")
19 | #else // USING_CEF_SHARED
20 |
21 | #include "include/cef_v8.h"
22 | #include "include/capi/cef_v8_capi.h"
23 | #include "libcef_dll/ctocpp/ctocpp.h"
24 |
25 | // Wrap a C structure with a C++ class.
26 | // This class may be instantiated and accessed wrapper-side only.
27 | class CefV8ContextCToCpp
28 | : public CefCToCpp {
29 | public:
30 | CefV8ContextCToCpp();
31 |
32 | // CefV8Context methods.
33 | CefRefPtr GetTaskRunner() OVERRIDE;
34 | bool IsValid() OVERRIDE;
35 | CefRefPtr GetBrowser() OVERRIDE;
36 | CefRefPtr GetFrame() OVERRIDE;
37 | CefRefPtr GetGlobal() OVERRIDE;
38 | bool Enter() OVERRIDE;
39 | bool Exit() OVERRIDE;
40 | bool IsSame(CefRefPtr that) OVERRIDE;
41 | bool Eval(const CefString& code, CefRefPtr& retval,
42 | CefRefPtr& exception) OVERRIDE;
43 | };
44 |
45 | #endif // USING_CEF_SHARED
46 | #endif // CEF_LIBCEF_DLL_CTOCPP_V8CONTEXT_CTOCPP_H_
47 |
--------------------------------------------------------------------------------
/libcef_dll/ctocpp/v8exception_ctocpp.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2016 The Chromium Embedded Framework Authors. All rights
2 | // reserved. Use of this source code is governed by a BSD-style license that
3 | // can be found in the LICENSE file.
4 | //
5 | // ---------------------------------------------------------------------------
6 | //
7 | // This file was generated by the CEF translator tool. If making changes by
8 | // hand only do so within the body of existing method and function
9 | // implementations. See the translator.README.txt file in the tools directory
10 | // for more information.
11 | //
12 |
13 | #ifndef CEF_LIBCEF_DLL_CTOCPP_V8EXCEPTION_CTOCPP_H_
14 | #define CEF_LIBCEF_DLL_CTOCPP_V8EXCEPTION_CTOCPP_H_
15 | #pragma once
16 |
17 | #ifndef USING_CEF_SHARED
18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only")
19 | #else // USING_CEF_SHARED
20 |
21 | #include "include/cef_v8.h"
22 | #include "include/capi/cef_v8_capi.h"
23 | #include "libcef_dll/ctocpp/ctocpp.h"
24 |
25 | // Wrap a C structure with a C++ class.
26 | // This class may be instantiated and accessed wrapper-side only.
27 | class CefV8ExceptionCToCpp
28 | : public CefCToCpp {
30 | public:
31 | CefV8ExceptionCToCpp();
32 |
33 | // CefV8Exception methods.
34 | CefString GetMessage() OVERRIDE;
35 | CefString GetSourceLine() OVERRIDE;
36 | CefString GetScriptResourceName() OVERRIDE;
37 | int GetLineNumber() OVERRIDE;
38 | int GetStartPosition() OVERRIDE;
39 | int GetEndPosition() OVERRIDE;
40 | int GetStartColumn() OVERRIDE;
41 | int GetEndColumn() OVERRIDE;
42 | };
43 |
44 | #endif // USING_CEF_SHARED
45 | #endif // CEF_LIBCEF_DLL_CTOCPP_V8EXCEPTION_CTOCPP_H_
46 |
--------------------------------------------------------------------------------
/libcef_dll/ctocpp/v8stack_frame_ctocpp.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2016 The Chromium Embedded Framework Authors. All rights
2 | // reserved. Use of this source code is governed by a BSD-style license that
3 | // can be found in the LICENSE file.
4 | //
5 | // ---------------------------------------------------------------------------
6 | //
7 | // This file was generated by the CEF translator tool. If making changes by
8 | // hand only do so within the body of existing method and function
9 | // implementations. See the translator.README.txt file in the tools directory
10 | // for more information.
11 | //
12 |
13 | #ifndef CEF_LIBCEF_DLL_CTOCPP_V8STACK_FRAME_CTOCPP_H_
14 | #define CEF_LIBCEF_DLL_CTOCPP_V8STACK_FRAME_CTOCPP_H_
15 | #pragma once
16 |
17 | #ifndef USING_CEF_SHARED
18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only")
19 | #else // USING_CEF_SHARED
20 |
21 | #include "include/cef_v8.h"
22 | #include "include/capi/cef_v8_capi.h"
23 | #include "libcef_dll/ctocpp/ctocpp.h"
24 |
25 | // Wrap a C structure with a C++ class.
26 | // This class may be instantiated and accessed wrapper-side only.
27 | class CefV8StackFrameCToCpp
28 | : public CefCToCpp {
30 | public:
31 | CefV8StackFrameCToCpp();
32 |
33 | // CefV8StackFrame methods.
34 | bool IsValid() OVERRIDE;
35 | CefString GetScriptName() OVERRIDE;
36 | CefString GetScriptNameOrSourceURL() OVERRIDE;
37 | CefString GetFunctionName() OVERRIDE;
38 | int GetLineNumber() OVERRIDE;
39 | int GetColumn() OVERRIDE;
40 | bool IsEval() OVERRIDE;
41 | bool IsConstructor() OVERRIDE;
42 | };
43 |
44 | #endif // USING_CEF_SHARED
45 | #endif // CEF_LIBCEF_DLL_CTOCPP_V8STACK_FRAME_CTOCPP_H_
46 |
--------------------------------------------------------------------------------
/libcef_dll/ctocpp/v8stack_trace_ctocpp.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2016 The Chromium Embedded Framework Authors. All rights
2 | // reserved. Use of this source code is governed by a BSD-style license that
3 | // can be found in the LICENSE file.
4 | //
5 | // ---------------------------------------------------------------------------
6 | //
7 | // This file was generated by the CEF translator tool. If making changes by
8 | // hand only do so within the body of existing method and function
9 | // implementations. See the translator.README.txt file in the tools directory
10 | // for more information.
11 | //
12 |
13 | #ifndef CEF_LIBCEF_DLL_CTOCPP_V8STACK_TRACE_CTOCPP_H_
14 | #define CEF_LIBCEF_DLL_CTOCPP_V8STACK_TRACE_CTOCPP_H_
15 | #pragma once
16 |
17 | #ifndef USING_CEF_SHARED
18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only")
19 | #else // USING_CEF_SHARED
20 |
21 | #include "include/cef_v8.h"
22 | #include "include/capi/cef_v8_capi.h"
23 | #include "libcef_dll/ctocpp/ctocpp.h"
24 |
25 | // Wrap a C structure with a C++ class.
26 | // This class may be instantiated and accessed wrapper-side only.
27 | class CefV8StackTraceCToCpp
28 | : public CefCToCpp {
30 | public:
31 | CefV8StackTraceCToCpp();
32 |
33 | // CefV8StackTrace methods.
34 | bool IsValid() OVERRIDE;
35 | int GetFrameCount() OVERRIDE;
36 | CefRefPtr GetFrame(int index) OVERRIDE;
37 | };
38 |
39 | #endif // USING_CEF_SHARED
40 | #endif // CEF_LIBCEF_DLL_CTOCPP_V8STACK_TRACE_CTOCPP_H_
41 |
--------------------------------------------------------------------------------
/libcef_dll/ctocpp/web_plugin_info_ctocpp.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2016 The Chromium Embedded Framework Authors. All rights
2 | // reserved. Use of this source code is governed by a BSD-style license that
3 | // can be found in the LICENSE file.
4 | //
5 | // ---------------------------------------------------------------------------
6 | //
7 | // This file was generated by the CEF translator tool. If making changes by
8 | // hand only do so within the body of existing method and function
9 | // implementations. See the translator.README.txt file in the tools directory
10 | // for more information.
11 | //
12 |
13 | #ifndef CEF_LIBCEF_DLL_CTOCPP_WEB_PLUGIN_INFO_CTOCPP_H_
14 | #define CEF_LIBCEF_DLL_CTOCPP_WEB_PLUGIN_INFO_CTOCPP_H_
15 | #pragma once
16 |
17 | #ifndef USING_CEF_SHARED
18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only")
19 | #else // USING_CEF_SHARED
20 |
21 | #include "include/cef_web_plugin.h"
22 | #include "include/capi/cef_web_plugin_capi.h"
23 | #include "include/cef_browser.h"
24 | #include "include/capi/cef_browser_capi.h"
25 | #include "libcef_dll/ctocpp/ctocpp.h"
26 |
27 | // Wrap a C structure with a C++ class.
28 | // This class may be instantiated and accessed wrapper-side only.
29 | class CefWebPluginInfoCToCpp
30 | : public CefCToCpp {
32 | public:
33 | CefWebPluginInfoCToCpp();
34 |
35 | // CefWebPluginInfo methods.
36 | CefString GetName() OVERRIDE;
37 | CefString GetPath() OVERRIDE;
38 | CefString GetVersion() OVERRIDE;
39 | CefString GetDescription() OVERRIDE;
40 | };
41 |
42 | #endif // USING_CEF_SHARED
43 | #endif // CEF_LIBCEF_DLL_CTOCPP_WEB_PLUGIN_INFO_CTOCPP_H_
44 |
--------------------------------------------------------------------------------
/libcef_dll/ctocpp/zip_reader_ctocpp.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2016 The Chromium Embedded Framework Authors. All rights
2 | // reserved. Use of this source code is governed by a BSD-style license that
3 | // can be found in the LICENSE file.
4 | //
5 | // ---------------------------------------------------------------------------
6 | //
7 | // This file was generated by the CEF translator tool. If making changes by
8 | // hand only do so within the body of existing method and function
9 | // implementations. See the translator.README.txt file in the tools directory
10 | // for more information.
11 | //
12 |
13 | #ifndef CEF_LIBCEF_DLL_CTOCPP_ZIP_READER_CTOCPP_H_
14 | #define CEF_LIBCEF_DLL_CTOCPP_ZIP_READER_CTOCPP_H_
15 | #pragma once
16 |
17 | #ifndef USING_CEF_SHARED
18 | #pragma message("Warning: "__FILE__" may be accessed wrapper-side only")
19 | #else // USING_CEF_SHARED
20 |
21 | #include "include/cef_zip_reader.h"
22 | #include "include/capi/cef_zip_reader_capi.h"
23 | #include "libcef_dll/ctocpp/ctocpp.h"
24 |
25 | // Wrap a C structure with a C++ class.
26 | // This class may be instantiated and accessed wrapper-side only.
27 | class CefZipReaderCToCpp
28 | : public CefCToCpp {
29 | public:
30 | CefZipReaderCToCpp();
31 |
32 | // CefZipReader methods.
33 | bool MoveToFirstFile() OVERRIDE;
34 | bool MoveToNextFile() OVERRIDE;
35 | bool MoveToFile(const CefString& fileName, bool caseSensitive) OVERRIDE;
36 | bool Close() OVERRIDE;
37 | CefString GetFileName() OVERRIDE;
38 | int64 GetFileSize() OVERRIDE;
39 | CefTime GetFileLastModified() OVERRIDE;
40 | bool OpenFile(const CefString& password) OVERRIDE;
41 | bool CloseFile() OVERRIDE;
42 | int ReadFile(void* buffer, size_t bufferSize) OVERRIDE;
43 | int64 Tell() OVERRIDE;
44 | bool Eof() OVERRIDE;
45 | };
46 |
47 | #endif // USING_CEF_SHARED
48 | #endif // CEF_LIBCEF_DLL_CTOCPP_ZIP_READER_CTOCPP_H_
49 |
--------------------------------------------------------------------------------
/libcef_dll/libcef_dll_wrapper.vcxproj.user:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/libcef_dll/resource.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/caozhiyi/DuiLib_c/92a26553c2be970015cc3a5d7cbfd5839a89387c/libcef_dll/resource.h
--------------------------------------------------------------------------------
/libcef_dll/transfer_util.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2009 The Chromium Embedded Framework Authors. All rights
2 | // reserved. Use of this source code is governed by a BSD-style license that
3 | // can be found in the LICENSE file.
4 |
5 | #ifndef CEF_LIBCEF_DLL_TRANSFER_UTIL_H_
6 | #define CEF_LIBCEF_DLL_TRANSFER_UTIL_H_
7 | #pragma once
8 |
9 | #include