├── .gitignore ├── BrowserHandlers.cc ├── BrowserHandlers.h ├── CEF ├── Release │ ├── libcef.lib │ └── libcef_dll_wrapper.lib └── 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_image_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_menu_model_delegate_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 │ └── views │ │ ├── cef_box_layout_capi.h │ │ ├── cef_browser_view_capi.h │ │ ├── cef_browser_view_delegate_capi.h │ │ ├── cef_button_capi.h │ │ ├── cef_button_delegate_capi.h │ │ ├── cef_display_capi.h │ │ ├── cef_fill_layout_capi.h │ │ ├── cef_label_button_capi.h │ │ ├── cef_layout_capi.h │ │ ├── cef_menu_button_capi.h │ │ ├── cef_menu_button_delegate_capi.h │ │ ├── cef_panel_capi.h │ │ ├── cef_panel_delegate_capi.h │ │ ├── cef_scroll_view_capi.h │ │ ├── cef_textfield_capi.h │ │ ├── cef_textfield_delegate_capi.h │ │ ├── cef_view_capi.h │ │ ├── cef_view_delegate_capi.h │ │ ├── cef_window_capi.h │ │ └── cef_window_delegate_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_image.h │ ├── cef_jsdialog_handler.h │ ├── cef_keyboard_handler.h │ ├── cef_life_span_handler.h │ ├── cef_load_handler.h │ ├── cef_menu_model.h │ ├── cef_menu_model_delegate.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_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 │ ├── views │ ├── cef_box_layout.h │ ├── cef_browser_view.h │ ├── cef_browser_view_delegate.h │ ├── cef_button.h │ ├── cef_button_delegate.h │ ├── cef_display.h │ ├── cef_fill_layout.h │ ├── cef_label_button.h │ ├── cef_layout.h │ ├── cef_menu_button.h │ ├── cef_menu_button_delegate.h │ ├── cef_panel.h │ ├── cef_panel_delegate.h │ ├── cef_scroll_view.h │ ├── cef_textfield.h │ ├── cef_textfield_delegate.h │ ├── cef_view.h │ ├── cef_view_delegate.h │ ├── cef_window.h │ └── cef_window_delegate.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 ├── CEFV8HandlerEx.cc ├── CEFV8HandlerEx.h ├── CEFWebkit.cc ├── CEFWebkit.h ├── CEFWebkitBrowser.cc ├── CEFWebkitBrowser.h ├── CEFWebkitBrowser.ico ├── CEFWebkitBrowser.rc ├── CEFWebkitBrowser.sln ├── CEFWebkitBrowser.vcxproj ├── CEFWebkitBrowser.vcxproj.filters ├── CEFWebkitBrowser.vcxproj.user ├── DuiLib ├── Control │ ├── UIActiveX.cpp │ ├── UIActiveX.h │ ├── UIAnimation.cpp │ ├── UIAnimation.h │ ├── UIButton.cpp │ ├── UIButton.h │ ├── UICheckBox.cpp │ ├── UICheckBox.h │ ├── UIColorPalette.cpp │ ├── UIColorPalette.h │ ├── UICombo.cpp │ ├── UICombo.h │ ├── UIComboBox.cpp │ ├── UIComboBox.h │ ├── UIDateTime.cpp │ ├── UIDateTime.h │ ├── UIEdit.cpp │ ├── UIEdit.h │ ├── UIFadeButton.cpp │ ├── UIFadeButton.h │ ├── UIFlash.cpp │ ├── UIFlash.h │ ├── UIHyperlink.cpp │ ├── UIHyperlink.h │ ├── UIIpAddress.cpp │ ├── UIIpAddress.h │ ├── UILabel.cpp │ ├── UILabel.h │ ├── UIList.cpp │ ├── UIList.h │ ├── UIMediaPlayer.cpp │ ├── UIMediaPlayer.h │ ├── UIOption.cpp │ ├── UIOption.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 │ ├── 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.vcproj ├── DuiLib.vcxproj ├── DuiLib.vcxproj.filters ├── Ex │ └── ShadowWindow.h ├── Layout │ ├── UIChildLayout.cpp │ ├── UIChildLayout.h │ ├── UIHorizontalLayout.cpp │ ├── UIHorizontalLayout.h │ ├── UITabLayout.cpp │ ├── UITabLayout.h │ ├── UITileLayout.cpp │ ├── UITileLayout.h │ ├── UIVerticalLayout.cpp │ └── UIVerticalLayout.h ├── StdAfx.cpp ├── StdAfx.h ├── UIlib.cpp ├── UIlib.h └── Utils │ ├── Flash11.tlb │ ├── FlashEventHandler.h │ ├── UIDelegate.cpp │ ├── UIDelegate.h │ ├── UnCompression.h │ ├── Utils.cpp │ ├── Utils.h │ ├── WebBrowserEventHandler.h │ ├── WinImplBase.cpp │ ├── WinImplBase.h │ ├── Zip │ ├── XUnZip.cpp │ ├── XUnZip.h │ └── XUnZipBase.h │ ├── downloadmgr.h │ ├── stb_image.c │ ├── stb_image.h │ ├── wmp.tlh │ └── wmp.tli ├── Entry.cc ├── HookFlash ├── EasyHook │ ├── EasyHook.dll │ ├── EasyHook32.dll │ ├── EasyHook32.lib │ ├── EasyHook64.dll │ ├── EasyHook64.lib │ ├── LICENSE │ ├── README.md │ └── easyhook.h ├── HookFlash.cpp ├── HookFlash.h ├── HookFlash.vcxproj ├── HookFlash.vcxproj.filters ├── HookFlash.vcxproj.user ├── ReadMe.txt ├── dllmain.cpp ├── stdafx.cpp ├── stdafx.h └── targetver.h ├── LICENSE ├── MiniDumper.cpp ├── MiniDumper.h ├── README.md ├── ReadMe.txt ├── Resource.h ├── bin ├── EasyHook32.dll ├── HookFlash.dll ├── Skin │ ├── CB_next -disable.png │ ├── CB_next.png │ ├── CB_previews-disable.png │ ├── CB_previews.png │ ├── Main-Tab.png │ ├── Search-Tab.png │ ├── URL-Tab.png │ ├── home-push.png │ ├── home.png │ ├── newtab.png │ ├── newtab_h.png │ ├── newtab_p.png │ ├── next-push.png │ ├── previews-push.png │ ├── refresh-push.png │ ├── refresh.png │ ├── skin.xml │ ├── tabbar_hover.png │ ├── tabbar_normal.png │ ├── tabbar_pushed.png │ ├── title_close.png │ ├── title_max.png │ ├── title_min.png │ └── title_restore.png ├── cef.pak ├── cef_100_percent.pak ├── cef_200_percent.pak ├── cef_extensions.pak ├── d3dcompiler_43.dll ├── d3dcompiler_47.dll ├── devtools_resources.pak ├── htmlexample │ ├── css │ │ ├── style.css │ │ ├── style_1_common.css │ │ ├── text.css │ │ └── tree.css │ ├── index.html │ └── src │ │ ├── css │ │ ├── style.css │ │ ├── text.css │ │ └── tree.css │ │ ├── images │ │ ├── POS-1.jpg │ │ ├── POS-2.jpg │ │ ├── POS-3.jpg │ │ ├── POS-4.jpg │ │ ├── POS-5.jpg │ │ ├── album-slider-arrow_box.png │ │ ├── album-slider-button.png │ │ ├── cover-.jpg │ │ ├── cover.jpg │ │ ├── logo-.png │ │ └── logo.png │ │ └── js │ │ ├── common.js │ │ ├── common52.js │ │ ├── fancybox │ │ ├── blank.gif │ │ ├── fancy_close.png │ │ ├── fancy_loading.png │ │ ├── fancy_nav_left.png │ │ ├── fancy_nav_right.png │ │ ├── fancy_shadow_e.png │ │ ├── fancy_shadow_n.png │ │ ├── fancy_shadow_ne.png │ │ ├── fancy_shadow_nw.png │ │ ├── fancy_shadow_s.png │ │ ├── fancy_shadow_se.png │ │ ├── fancy_shadow_sw.png │ │ ├── fancy_shadow_w.png │ │ ├── fancy_title_left.png │ │ ├── fancy_title_main.png │ │ ├── fancy_title_over.png │ │ ├── fancy_title_right.png │ │ ├── fancybox-x.png │ │ ├── fancybox-y.png │ │ ├── fancybox.png │ │ ├── jquery.easing-1.3.pack.js │ │ ├── jquery.fancybox-1.3.4.css │ │ ├── jquery.fancybox-1.3.4.js │ │ ├── jquery.fancybox-1.3.4.pack.js │ │ └── jquery.mousewheel-3.0.4.pack.js │ │ ├── jquery-1.4.2.min.js │ │ ├── jquery.albumSlider.min.js │ │ ├── scrolltop.js │ │ └── tree │ │ ├── img │ │ ├── base.gif │ │ ├── cd.gif │ │ ├── empty.gif │ │ ├── folder.gif │ │ ├── folderopen.gif │ │ ├── globe.gif │ │ ├── imgfolder.gif │ │ ├── join.gif │ │ ├── joinbottom.gif │ │ ├── line.gif │ │ ├── minus.gif │ │ ├── minusbottom.gif │ │ ├── musicfolder.gif │ │ ├── nolines_minus.gif │ │ ├── nolines_plus.gif │ │ ├── page.gif │ │ ├── page1.gif │ │ ├── plus.gif │ │ ├── plusbottom.gif │ │ ├── question.gif │ │ └── trash.gif │ │ ├── tree.css │ │ └── tree.js ├── icudtl.dat ├── libEGL.dll ├── libGLESv2.dll ├── libcef.dll ├── locales │ ├── am.pak │ ├── ar.pak │ ├── bg.pak │ ├── bn.pak │ ├── ca.pak │ ├── cs.pak │ ├── da.pak │ ├── de.pak │ ├── el.pak │ ├── en-GB.pak │ ├── en-US.pak │ ├── es-419.pak │ ├── es.pak │ ├── et.pak │ ├── fa.pak │ ├── fi.pak │ ├── fil.pak │ ├── fr.pak │ ├── gu.pak │ ├── he.pak │ ├── hi.pak │ ├── hr.pak │ ├── hu.pak │ ├── id.pak │ ├── it.pak │ ├── ja.pak │ ├── kn.pak │ ├── ko.pak │ ├── lt.pak │ ├── lv.pak │ ├── ml.pak │ ├── mr.pak │ ├── ms.pak │ ├── nb.pak │ ├── nl.pak │ ├── pl.pak │ ├── pt-BR.pak │ ├── pt-PT.pak │ ├── ro.pak │ ├── ru.pak │ ├── sk.pak │ ├── sl.pak │ ├── sr.pak │ ├── sv.pak │ ├── sw.pak │ ├── ta.pak │ ├── te.pak │ ├── th.pak │ ├── tr.pak │ ├── uk.pak │ ├── vi.pak │ ├── zh-CN.pak │ └── zh-TW.pak ├── natives_blob.bin ├── ppflash │ └── 18_0_0_209 │ │ ├── manifest.json │ │ └── pepflashplayer32_18_0_0_209.dll ├── snapshot_blob.bin ├── widevinecdmadapter.dll ├── 浏览器测试.rar └── 浏览器离线测试.rar ├── chromium命令行参数.docx ├── clientapp.cc ├── clientapp.h ├── show.png ├── small.ico ├── stdafx.cpp ├── stdafx.h └── targetver.h /.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled Object files 2 | *.slo 3 | *.lo 4 | *.o 5 | *.obj 6 | 7 | # Precompiled Headers 8 | *.gch 9 | *.pch 10 | 11 | # Compiled Dynamic libraries 12 | *.so 13 | *.dylib 14 | 15 | 16 | # Fortran module files 17 | *.mod 18 | *.smod 19 | 20 | # Compiled Static libraries 21 | *.lai 22 | *.la 23 | *.a 24 | 25 | 26 | # Executables 27 | *.exe 28 | *.out 29 | *.app 30 | -------------------------------------------------------------------------------- /BrowserHandlers.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/BrowserHandlers.cc -------------------------------------------------------------------------------- /BrowserHandlers.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/BrowserHandlers.h -------------------------------------------------------------------------------- /CEF/Release/libcef.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/CEF/Release/libcef.lib -------------------------------------------------------------------------------- /CEF/Release/libcef_dll_wrapper.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/CEF/Release/libcef_dll_wrapper.lib -------------------------------------------------------------------------------- /CEF/include/base/cef_callback_forward.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2014 Marshall A. Greenblatt. Portions copyright (c) 2011 2 | // Google Inc. All rights reserved. 3 | // 4 | // Redistribution and use in source and binary forms, with or without 5 | // modification, are permitted provided that the following conditions are 6 | // met: 7 | // 8 | // * Redistributions of source code must retain the above copyright 9 | // notice, this list of conditions and the following disclaimer. 10 | // * Redistributions in binary form must reproduce the above 11 | // copyright notice, this list of conditions and the following disclaimer 12 | // in the documentation and/or other materials provided with the 13 | // distribution. 14 | // * Neither the name of Google Inc. nor the name Chromium Embedded 15 | // Framework nor the names of its contributors may be used to endorse 16 | // or promote products derived from this software without specific prior 17 | // written permission. 18 | // 19 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 20 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 21 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 22 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 23 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 24 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 25 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 26 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 27 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 28 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 29 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 30 | 31 | #ifndef INCLUDE_BASE_CEF_CALLBACK_FORWARD_H_ 32 | #define INCLUDE_BASE_CEF_CALLBACK_FORWARD_H_ 33 | #pragma once 34 | 35 | #if defined(BASE_CALLBACK_FORWARD_H_) 36 | // Do nothing if the Chromium header has already been included. 37 | // This can happen in cases where Chromium code is used directly by the 38 | // client application. When using Chromium code directly always include 39 | // the Chromium header first to avoid type conflicts. 40 | #elif defined(USING_CHROMIUM_INCLUDES) 41 | // When building CEF include the Chromium header directly. 42 | #include "base/callback_forward.h" 43 | #else // !USING_CHROMIUM_INCLUDES 44 | // The following is substantially similar to the Chromium implementation. 45 | // If the Chromium implementation diverges the below implementation should be 46 | // updated to match. 47 | 48 | namespace base { 49 | 50 | template 51 | class Callback; 52 | 53 | typedef Callback Closure; 54 | 55 | } // namespace base 56 | 57 | #endif // !!USING_CHROMIUM_INCLUDES 58 | 59 | #endif // INCLUDE_BASE_CEF_CALLBACK_FORWARD_H_ 60 | -------------------------------------------------------------------------------- /CEF/include/base/internal/cef_thread_checker_impl.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011 Google Inc. All rights reserved. 2 | // 3 | // Redistribution and use in source and binary forms, with or without 4 | // modification, are permitted provided that the following conditions are 5 | // met: 6 | // 7 | // * Redistributions of source code must retain the above copyright 8 | // notice, this list of conditions and the following disclaimer. 9 | // * Redistributions in binary form must reproduce the above 10 | // copyright notice, this list of conditions and the following disclaimer 11 | // in the documentation and/or other materials provided with the 12 | // distribution. 13 | // * Neither the name of Google Inc. nor the name Chromium Embedded 14 | // Framework nor the names of its contributors may be used to endorse 15 | // or promote products derived from this software without specific prior 16 | // written permission. 17 | // 18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 19 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 20 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 21 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 22 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 23 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 24 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | 30 | // Do not include this header file directly. Use base/cef_thread_checker.h 31 | // instead. 32 | 33 | #ifndef CEF_INCLUDE_BASE_INTERNAL_THREAD_CHECKER_IMPL_H_ 34 | #define CEF_INCLUDE_BASE_INTERNAL_THREAD_CHECKER_IMPL_H_ 35 | 36 | #include "include/base/cef_lock.h" 37 | #include "include/base/cef_platform_thread.h" 38 | 39 | namespace base { 40 | namespace cef_internal { 41 | 42 | // Real implementation of ThreadChecker, for use in debug mode, or 43 | // for temporary use in release mode (e.g. to CHECK on a threading issue 44 | // seen only in the wild). 45 | // 46 | // Note: You should almost always use the ThreadChecker class to get the 47 | // right version for your build configuration. 48 | class ThreadCheckerImpl { 49 | public: 50 | ThreadCheckerImpl(); 51 | ~ThreadCheckerImpl(); 52 | 53 | bool CalledOnValidThread() const; 54 | 55 | // Changes the thread that is checked for in CalledOnValidThread. This may 56 | // be useful when an object may be created on one thread and then used 57 | // exclusively on another thread. 58 | void DetachFromThread(); 59 | 60 | private: 61 | void EnsureThreadIdAssigned() const; 62 | 63 | mutable base::Lock lock_; 64 | // This is mutable so that CalledOnValidThread can set it. 65 | // It's guarded by |lock_|. 66 | mutable PlatformThreadRef valid_thread_id_; 67 | }; 68 | 69 | } // namespace cef_internal 70 | } // namespace base 71 | 72 | #endif // CEF_INCLUDE_BASE_INTERNAL_THREAD_CHECKER_IMPL_H_ 73 | -------------------------------------------------------------------------------- /CEF/include/capi/cef_auth_callback_capi.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2016 Marshall A. Greenblatt. All rights reserved. 2 | // 3 | // Redistribution and use in source and binary forms, with or without 4 | // modification, are permitted provided that the following conditions are 5 | // met: 6 | // 7 | // * Redistributions of source code must retain the above copyright 8 | // notice, this list of conditions and the following disclaimer. 9 | // * Redistributions in binary form must reproduce the above 10 | // copyright notice, this list of conditions and the following disclaimer 11 | // in the documentation and/or other materials provided with the 12 | // distribution. 13 | // * Neither the name of Google Inc. nor the name Chromium Embedded 14 | // Framework nor the names of its contributors may be used to endorse 15 | // or promote products derived from this software without specific prior 16 | // written permission. 17 | // 18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 19 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 20 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 21 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 22 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 23 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 24 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | // 30 | // --------------------------------------------------------------------------- 31 | // 32 | // This file was generated by the CEF translator tool and should not edited 33 | // by hand. See the translator.README.txt file in the tools directory for 34 | // more information. 35 | // 36 | 37 | #ifndef CEF_INCLUDE_CAPI_CEF_AUTH_CALLBACK_CAPI_H_ 38 | #define CEF_INCLUDE_CAPI_CEF_AUTH_CALLBACK_CAPI_H_ 39 | #pragma once 40 | 41 | #include "include/capi/cef_base_capi.h" 42 | 43 | #ifdef __cplusplus 44 | extern "C" { 45 | #endif 46 | 47 | 48 | /// 49 | // Callback structure used for asynchronous continuation of authentication 50 | // requests. 51 | /// 52 | typedef struct _cef_auth_callback_t { 53 | /// 54 | // Base structure. 55 | /// 56 | cef_base_t base; 57 | 58 | /// 59 | // Continue the authentication request. 60 | /// 61 | void (CEF_CALLBACK *cont)(struct _cef_auth_callback_t* self, 62 | const cef_string_t* username, const cef_string_t* password); 63 | 64 | /// 65 | // Cancel the authentication request. 66 | /// 67 | void (CEF_CALLBACK *cancel)(struct _cef_auth_callback_t* self); 68 | } cef_auth_callback_t; 69 | 70 | 71 | #ifdef __cplusplus 72 | } 73 | #endif 74 | 75 | #endif // CEF_INCLUDE_CAPI_CEF_AUTH_CALLBACK_CAPI_H_ 76 | -------------------------------------------------------------------------------- /CEF/include/capi/cef_callback_capi.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2016 Marshall A. Greenblatt. All rights reserved. 2 | // 3 | // Redistribution and use in source and binary forms, with or without 4 | // modification, are permitted provided that the following conditions are 5 | // met: 6 | // 7 | // * Redistributions of source code must retain the above copyright 8 | // notice, this list of conditions and the following disclaimer. 9 | // * Redistributions in binary form must reproduce the above 10 | // copyright notice, this list of conditions and the following disclaimer 11 | // in the documentation and/or other materials provided with the 12 | // distribution. 13 | // * Neither the name of Google Inc. nor the name Chromium Embedded 14 | // Framework nor the names of its contributors may be used to endorse 15 | // or promote products derived from this software without specific prior 16 | // written permission. 17 | // 18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 19 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 20 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 21 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 22 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 23 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 24 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | // 30 | // --------------------------------------------------------------------------- 31 | // 32 | // This file was generated by the CEF translator tool and should not edited 33 | // by hand. See the translator.README.txt file in the tools directory for 34 | // more information. 35 | // 36 | 37 | #ifndef CEF_INCLUDE_CAPI_CEF_CALLBACK_CAPI_H_ 38 | #define CEF_INCLUDE_CAPI_CEF_CALLBACK_CAPI_H_ 39 | #pragma once 40 | 41 | #include "include/capi/cef_base_capi.h" 42 | 43 | #ifdef __cplusplus 44 | extern "C" { 45 | #endif 46 | 47 | 48 | /// 49 | // Generic callback structure used for asynchronous continuation. 50 | /// 51 | typedef struct _cef_callback_t { 52 | /// 53 | // Base structure. 54 | /// 55 | cef_base_t base; 56 | 57 | /// 58 | // Continue processing. 59 | /// 60 | void (CEF_CALLBACK *cont)(struct _cef_callback_t* self); 61 | 62 | /// 63 | // Cancel processing. 64 | /// 65 | void (CEF_CALLBACK *cancel)(struct _cef_callback_t* self); 66 | } cef_callback_t; 67 | 68 | 69 | /// 70 | // Generic callback structure used for asynchronous completion. 71 | /// 72 | typedef struct _cef_completion_callback_t { 73 | /// 74 | // Base structure. 75 | /// 76 | cef_base_t base; 77 | 78 | /// 79 | // Method that will be called once the task is complete. 80 | /// 81 | void (CEF_CALLBACK *on_complete)(struct _cef_completion_callback_t* self); 82 | } cef_completion_callback_t; 83 | 84 | 85 | #ifdef __cplusplus 86 | } 87 | #endif 88 | 89 | #endif // CEF_INCLUDE_CAPI_CEF_CALLBACK_CAPI_H_ 90 | -------------------------------------------------------------------------------- /CEF/include/capi/cef_find_handler_capi.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2016 Marshall A. Greenblatt. All rights reserved. 2 | // 3 | // Redistribution and use in source and binary forms, with or without 4 | // modification, are permitted provided that the following conditions are 5 | // met: 6 | // 7 | // * Redistributions of source code must retain the above copyright 8 | // notice, this list of conditions and the following disclaimer. 9 | // * Redistributions in binary form must reproduce the above 10 | // copyright notice, this list of conditions and the following disclaimer 11 | // in the documentation and/or other materials provided with the 12 | // distribution. 13 | // * Neither the name of Google Inc. nor the name Chromium Embedded 14 | // Framework nor the names of its contributors may be used to endorse 15 | // or promote products derived from this software without specific prior 16 | // written permission. 17 | // 18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 19 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 20 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 21 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 22 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 23 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 24 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | // 30 | // --------------------------------------------------------------------------- 31 | // 32 | // This file was generated by the CEF translator tool and should not edited 33 | // by hand. See the translator.README.txt file in the tools directory for 34 | // more information. 35 | // 36 | 37 | #ifndef CEF_INCLUDE_CAPI_CEF_FIND_HANDLER_CAPI_H_ 38 | #define CEF_INCLUDE_CAPI_CEF_FIND_HANDLER_CAPI_H_ 39 | #pragma once 40 | 41 | #include "include/capi/cef_base_capi.h" 42 | #include "include/capi/cef_browser_capi.h" 43 | 44 | #ifdef __cplusplus 45 | extern "C" { 46 | #endif 47 | 48 | 49 | /// 50 | // Implement this structure to handle events related to find results. The 51 | // functions of this structure will be called on the UI thread. 52 | /// 53 | typedef struct _cef_find_handler_t { 54 | /// 55 | // Base structure. 56 | /// 57 | cef_base_t base; 58 | 59 | /// 60 | // Called to report find results returned by cef_browser_host_t::find(). 61 | // |identifer| is the identifier passed to find(), |count| is the number of 62 | // matches currently identified, |selectionRect| is the location of where the 63 | // match was found (in window coordinates), |activeMatchOrdinal| is the 64 | // current position in the search results, and |finalUpdate| is true (1) if 65 | // this is the last find notification. 66 | /// 67 | void (CEF_CALLBACK *on_find_result)(struct _cef_find_handler_t* self, 68 | struct _cef_browser_t* browser, int identifier, int count, 69 | const cef_rect_t* selectionRect, int activeMatchOrdinal, 70 | int finalUpdate); 71 | } cef_find_handler_t; 72 | 73 | 74 | #ifdef __cplusplus 75 | } 76 | #endif 77 | 78 | #endif // CEF_INCLUDE_CAPI_CEF_FIND_HANDLER_CAPI_H_ 79 | -------------------------------------------------------------------------------- /CEF/include/capi/cef_geolocation_capi.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2016 Marshall A. Greenblatt. All rights reserved. 2 | // 3 | // Redistribution and use in source and binary forms, with or without 4 | // modification, are permitted provided that the following conditions are 5 | // met: 6 | // 7 | // * Redistributions of source code must retain the above copyright 8 | // notice, this list of conditions and the following disclaimer. 9 | // * Redistributions in binary form must reproduce the above 10 | // copyright notice, this list of conditions and the following disclaimer 11 | // in the documentation and/or other materials provided with the 12 | // distribution. 13 | // * Neither the name of Google Inc. nor the name Chromium Embedded 14 | // Framework nor the names of its contributors may be used to endorse 15 | // or promote products derived from this software without specific prior 16 | // written permission. 17 | // 18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 19 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 20 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 21 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 22 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 23 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 24 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | // 30 | // --------------------------------------------------------------------------- 31 | // 32 | // This file was generated by the CEF translator tool and should not edited 33 | // by hand. See the translator.README.txt file in the tools directory for 34 | // more information. 35 | // 36 | 37 | #ifndef CEF_INCLUDE_CAPI_CEF_GEOLOCATION_CAPI_H_ 38 | #define CEF_INCLUDE_CAPI_CEF_GEOLOCATION_CAPI_H_ 39 | #pragma once 40 | 41 | #include "include/capi/cef_base_capi.h" 42 | 43 | #ifdef __cplusplus 44 | extern "C" { 45 | #endif 46 | 47 | 48 | /// 49 | // Implement this structure to receive geolocation updates. The functions of 50 | // this structure will be called on the browser process UI thread. 51 | /// 52 | typedef struct _cef_get_geolocation_callback_t { 53 | /// 54 | // Base structure. 55 | /// 56 | cef_base_t base; 57 | 58 | /// 59 | // Called with the 'best available' location information or, if the location 60 | // update failed, with error information. 61 | /// 62 | void (CEF_CALLBACK *on_location_update)( 63 | struct _cef_get_geolocation_callback_t* self, 64 | const struct _cef_geoposition_t* position); 65 | } cef_get_geolocation_callback_t; 66 | 67 | 68 | /// 69 | // Request a one-time geolocation update. This function bypasses any user 70 | // permission checks so should only be used by code that is allowed to access 71 | // location information. 72 | /// 73 | CEF_EXPORT int cef_get_geolocation(cef_get_geolocation_callback_t* callback); 74 | 75 | #ifdef __cplusplus 76 | } 77 | #endif 78 | 79 | #endif // CEF_INCLUDE_CAPI_CEF_GEOLOCATION_CAPI_H_ 80 | -------------------------------------------------------------------------------- /CEF/include/capi/cef_menu_model_delegate_capi.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2016 Marshall A. Greenblatt. All rights reserved. 2 | // 3 | // Redistribution and use in source and binary forms, with or without 4 | // modification, are permitted provided that the following conditions are 5 | // met: 6 | // 7 | // * Redistributions of source code must retain the above copyright 8 | // notice, this list of conditions and the following disclaimer. 9 | // * Redistributions in binary form must reproduce the above 10 | // copyright notice, this list of conditions and the following disclaimer 11 | // in the documentation and/or other materials provided with the 12 | // distribution. 13 | // * Neither the name of Google Inc. nor the name Chromium Embedded 14 | // Framework nor the names of its contributors may be used to endorse 15 | // or promote products derived from this software without specific prior 16 | // written permission. 17 | // 18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 19 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 20 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 21 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 22 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 23 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 24 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | // 30 | // --------------------------------------------------------------------------- 31 | // 32 | // This file was generated by the CEF translator tool and should not edited 33 | // by hand. See the translator.README.txt file in the tools directory for 34 | // more information. 35 | // 36 | 37 | #ifndef CEF_INCLUDE_CAPI_CEF_MENU_MODEL_DELEGATE_CAPI_H_ 38 | #define CEF_INCLUDE_CAPI_CEF_MENU_MODEL_DELEGATE_CAPI_H_ 39 | #pragma once 40 | 41 | #include "include/capi/cef_base_capi.h" 42 | 43 | #ifdef __cplusplus 44 | extern "C" { 45 | #endif 46 | 47 | struct _cef_menu_model_t; 48 | 49 | /// 50 | // Implement this structure to handle menu model events. The functions of this 51 | // structure will be called on the browser process UI thread unless otherwise 52 | // indicated. 53 | /// 54 | typedef struct _cef_menu_model_delegate_t { 55 | /// 56 | // Base structure. 57 | /// 58 | cef_base_t base; 59 | 60 | /// 61 | // Perform the action associated with the specified |command_id| and optional 62 | // |event_flags|. 63 | /// 64 | void (CEF_CALLBACK *execute_command)(struct _cef_menu_model_delegate_t* self, 65 | struct _cef_menu_model_t* menu_model, int command_id, 66 | cef_event_flags_t event_flags); 67 | 68 | /// 69 | // The menu is about to show. 70 | /// 71 | void (CEF_CALLBACK *menu_will_show)(struct _cef_menu_model_delegate_t* self, 72 | struct _cef_menu_model_t* menu_model); 73 | } cef_menu_model_delegate_t; 74 | 75 | 76 | #ifdef __cplusplus 77 | } 78 | #endif 79 | 80 | #endif // CEF_INCLUDE_CAPI_CEF_MENU_MODEL_DELEGATE_CAPI_H_ 81 | -------------------------------------------------------------------------------- /CEF/include/capi/cef_path_util_capi.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2016 Marshall A. Greenblatt. All rights reserved. 2 | // 3 | // Redistribution and use in source and binary forms, with or without 4 | // modification, are permitted provided that the following conditions are 5 | // met: 6 | // 7 | // * Redistributions of source code must retain the above copyright 8 | // notice, this list of conditions and the following disclaimer. 9 | // * Redistributions in binary form must reproduce the above 10 | // copyright notice, this list of conditions and the following disclaimer 11 | // in the documentation and/or other materials provided with the 12 | // distribution. 13 | // * Neither the name of Google Inc. nor the name Chromium Embedded 14 | // Framework nor the names of its contributors may be used to endorse 15 | // or promote products derived from this software without specific prior 16 | // written permission. 17 | // 18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 19 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 20 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 21 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 22 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 23 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 24 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | // 30 | // --------------------------------------------------------------------------- 31 | // 32 | // This file was generated by the CEF translator tool and should not edited 33 | // by hand. See the translator.README.txt file in the tools directory for 34 | // more information. 35 | // 36 | 37 | #ifndef CEF_INCLUDE_CAPI_CEF_PATH_UTIL_CAPI_H_ 38 | #define CEF_INCLUDE_CAPI_CEF_PATH_UTIL_CAPI_H_ 39 | #pragma once 40 | 41 | #include "include/capi/cef_base_capi.h" 42 | 43 | #ifdef __cplusplus 44 | extern "C" { 45 | #endif 46 | 47 | 48 | /// 49 | // Retrieve the path associated with the specified |key|. Returns true (1) on 50 | // success. Can be called on any thread in the browser process. 51 | /// 52 | CEF_EXPORT int cef_get_path(cef_path_key_t key, cef_string_t* path); 53 | 54 | #ifdef __cplusplus 55 | } 56 | #endif 57 | 58 | #endif // CEF_INCLUDE_CAPI_CEF_PATH_UTIL_CAPI_H_ 59 | -------------------------------------------------------------------------------- /CEF/include/capi/cef_process_util_capi.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2016 Marshall A. Greenblatt. All rights reserved. 2 | // 3 | // Redistribution and use in source and binary forms, with or without 4 | // modification, are permitted provided that the following conditions are 5 | // met: 6 | // 7 | // * Redistributions of source code must retain the above copyright 8 | // notice, this list of conditions and the following disclaimer. 9 | // * Redistributions in binary form must reproduce the above 10 | // copyright notice, this list of conditions and the following disclaimer 11 | // in the documentation and/or other materials provided with the 12 | // distribution. 13 | // * Neither the name of Google Inc. nor the name Chromium Embedded 14 | // Framework nor the names of its contributors may be used to endorse 15 | // or promote products derived from this software without specific prior 16 | // written permission. 17 | // 18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 19 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 20 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 21 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 22 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 23 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 24 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | // 30 | // --------------------------------------------------------------------------- 31 | // 32 | // This file was generated by the CEF translator tool and should not edited 33 | // by hand. See the translator.README.txt file in the tools directory for 34 | // more information. 35 | // 36 | 37 | #ifndef CEF_INCLUDE_CAPI_CEF_PROCESS_UTIL_CAPI_H_ 38 | #define CEF_INCLUDE_CAPI_CEF_PROCESS_UTIL_CAPI_H_ 39 | #pragma once 40 | 41 | #include "include/capi/cef_base_capi.h" 42 | 43 | #ifdef __cplusplus 44 | extern "C" { 45 | #endif 46 | 47 | 48 | /// 49 | // Launches the process specified via |command_line|. Returns true (1) upon 50 | // success. Must be called on the browser process TID_PROCESS_LAUNCHER thread. 51 | // 52 | // Unix-specific notes: - All file descriptors open in the parent process will 53 | // be closed in the 54 | // child process except for stdin, stdout, and stderr. 55 | // - If the first argument on the command line does not contain a slash, 56 | // PATH will be searched. (See man execvp.) 57 | /// 58 | CEF_EXPORT int cef_launch_process(struct _cef_command_line_t* command_line); 59 | 60 | #ifdef __cplusplus 61 | } 62 | #endif 63 | 64 | #endif // CEF_INCLUDE_CAPI_CEF_PROCESS_UTIL_CAPI_H_ 65 | -------------------------------------------------------------------------------- /CEF/include/capi/cef_string_visitor_capi.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2016 Marshall A. Greenblatt. All rights reserved. 2 | // 3 | // Redistribution and use in source and binary forms, with or without 4 | // modification, are permitted provided that the following conditions are 5 | // met: 6 | // 7 | // * Redistributions of source code must retain the above copyright 8 | // notice, this list of conditions and the following disclaimer. 9 | // * Redistributions in binary form must reproduce the above 10 | // copyright notice, this list of conditions and the following disclaimer 11 | // in the documentation and/or other materials provided with the 12 | // distribution. 13 | // * Neither the name of Google Inc. nor the name Chromium Embedded 14 | // Framework nor the names of its contributors may be used to endorse 15 | // or promote products derived from this software without specific prior 16 | // written permission. 17 | // 18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 19 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 20 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 21 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 22 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 23 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 24 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | // 30 | // --------------------------------------------------------------------------- 31 | // 32 | // This file was generated by the CEF translator tool and should not edited 33 | // by hand. See the translator.README.txt file in the tools directory for 34 | // more information. 35 | // 36 | 37 | #ifndef CEF_INCLUDE_CAPI_CEF_STRING_VISITOR_CAPI_H_ 38 | #define CEF_INCLUDE_CAPI_CEF_STRING_VISITOR_CAPI_H_ 39 | #pragma once 40 | 41 | #include "include/capi/cef_base_capi.h" 42 | 43 | #ifdef __cplusplus 44 | extern "C" { 45 | #endif 46 | 47 | 48 | /// 49 | // Implement this structure to receive string values asynchronously. 50 | /// 51 | typedef struct _cef_string_visitor_t { 52 | /// 53 | // Base structure. 54 | /// 55 | cef_base_t base; 56 | 57 | /// 58 | // Method that will be executed. 59 | /// 60 | void (CEF_CALLBACK *visit)(struct _cef_string_visitor_t* self, 61 | const cef_string_t* string); 62 | } cef_string_visitor_t; 63 | 64 | 65 | #ifdef __cplusplus 66 | } 67 | #endif 68 | 69 | #endif // CEF_INCLUDE_CAPI_CEF_STRING_VISITOR_CAPI_H_ 70 | -------------------------------------------------------------------------------- /CEF/include/capi/views/cef_button_delegate_capi.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2016 Marshall A. Greenblatt. All rights reserved. 2 | // 3 | // Redistribution and use in source and binary forms, with or without 4 | // modification, are permitted provided that the following conditions are 5 | // met: 6 | // 7 | // * Redistributions of source code must retain the above copyright 8 | // notice, this list of conditions and the following disclaimer. 9 | // * Redistributions in binary form must reproduce the above 10 | // copyright notice, this list of conditions and the following disclaimer 11 | // in the documentation and/or other materials provided with the 12 | // distribution. 13 | // * Neither the name of Google Inc. nor the name Chromium Embedded 14 | // Framework nor the names of its contributors may be used to endorse 15 | // or promote products derived from this software without specific prior 16 | // written permission. 17 | // 18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 19 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 20 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 21 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 22 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 23 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 24 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | // 30 | // --------------------------------------------------------------------------- 31 | // 32 | // This file was generated by the CEF translator tool and should not edited 33 | // by hand. See the translator.README.txt file in the tools directory for 34 | // more information. 35 | // 36 | 37 | #ifndef CEF_INCLUDE_CAPI_VIEWS_CEF_BUTTON_DELEGATE_CAPI_H_ 38 | #define CEF_INCLUDE_CAPI_VIEWS_CEF_BUTTON_DELEGATE_CAPI_H_ 39 | #pragma once 40 | 41 | #include "include/capi/views/cef_view_delegate_capi.h" 42 | 43 | #ifdef __cplusplus 44 | extern "C" { 45 | #endif 46 | 47 | struct _cef_button_t; 48 | 49 | /// 50 | // Implement this structure to handle Button events. The functions of this 51 | // structure will be called on the browser process UI thread unless otherwise 52 | // indicated. 53 | /// 54 | typedef struct _cef_button_delegate_t { 55 | /// 56 | // Base structure. 57 | /// 58 | cef_view_delegate_t base; 59 | 60 | /// 61 | // Called when |button| is pressed. 62 | /// 63 | void (CEF_CALLBACK *on_button_pressed)(struct _cef_button_delegate_t* self, 64 | struct _cef_button_t* button); 65 | } cef_button_delegate_t; 66 | 67 | 68 | #ifdef __cplusplus 69 | } 70 | #endif 71 | 72 | #endif // CEF_INCLUDE_CAPI_VIEWS_CEF_BUTTON_DELEGATE_CAPI_H_ 73 | -------------------------------------------------------------------------------- /CEF/include/capi/views/cef_fill_layout_capi.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2016 Marshall A. Greenblatt. All rights reserved. 2 | // 3 | // Redistribution and use in source and binary forms, with or without 4 | // modification, are permitted provided that the following conditions are 5 | // met: 6 | // 7 | // * Redistributions of source code must retain the above copyright 8 | // notice, this list of conditions and the following disclaimer. 9 | // * Redistributions in binary form must reproduce the above 10 | // copyright notice, this list of conditions and the following disclaimer 11 | // in the documentation and/or other materials provided with the 12 | // distribution. 13 | // * Neither the name of Google Inc. nor the name Chromium Embedded 14 | // Framework nor the names of its contributors may be used to endorse 15 | // or promote products derived from this software without specific prior 16 | // written permission. 17 | // 18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 19 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 20 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 21 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 22 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 23 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 24 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | // 30 | // --------------------------------------------------------------------------- 31 | // 32 | // This file was generated by the CEF translator tool and should not edited 33 | // by hand. See the translator.README.txt file in the tools directory for 34 | // more information. 35 | // 36 | 37 | #ifndef CEF_INCLUDE_CAPI_VIEWS_CEF_FILL_LAYOUT_CAPI_H_ 38 | #define CEF_INCLUDE_CAPI_VIEWS_CEF_FILL_LAYOUT_CAPI_H_ 39 | #pragma once 40 | 41 | #include "include/capi/views/cef_layout_capi.h" 42 | 43 | #ifdef __cplusplus 44 | extern "C" { 45 | #endif 46 | 47 | 48 | /// 49 | // A simple Layout that causes the associated Panel's one child to be sized to 50 | // match the bounds of its parent. Methods must be called on the browser process 51 | // UI thread unless otherwise indicated. 52 | /// 53 | typedef struct _cef_fill_layout_t { 54 | /// 55 | // Base structure. 56 | /// 57 | cef_layout_t base; 58 | } cef_fill_layout_t; 59 | 60 | 61 | #ifdef __cplusplus 62 | } 63 | #endif 64 | 65 | #endif // CEF_INCLUDE_CAPI_VIEWS_CEF_FILL_LAYOUT_CAPI_H_ 66 | -------------------------------------------------------------------------------- /CEF/include/capi/views/cef_layout_capi.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2016 Marshall A. Greenblatt. All rights reserved. 2 | // 3 | // Redistribution and use in source and binary forms, with or without 4 | // modification, are permitted provided that the following conditions are 5 | // met: 6 | // 7 | // * Redistributions of source code must retain the above copyright 8 | // notice, this list of conditions and the following disclaimer. 9 | // * Redistributions in binary form must reproduce the above 10 | // copyright notice, this list of conditions and the following disclaimer 11 | // in the documentation and/or other materials provided with the 12 | // distribution. 13 | // * Neither the name of Google Inc. nor the name Chromium Embedded 14 | // Framework nor the names of its contributors may be used to endorse 15 | // or promote products derived from this software without specific prior 16 | // written permission. 17 | // 18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 19 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 20 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 21 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 22 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 23 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 24 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | // 30 | // --------------------------------------------------------------------------- 31 | // 32 | // This file was generated by the CEF translator tool and should not edited 33 | // by hand. See the translator.README.txt file in the tools directory for 34 | // more information. 35 | // 36 | 37 | #ifndef CEF_INCLUDE_CAPI_VIEWS_CEF_LAYOUT_CAPI_H_ 38 | #define CEF_INCLUDE_CAPI_VIEWS_CEF_LAYOUT_CAPI_H_ 39 | #pragma once 40 | 41 | #include "include/capi/cef_base_capi.h" 42 | 43 | #ifdef __cplusplus 44 | extern "C" { 45 | #endif 46 | 47 | struct _cef_box_layout_t; 48 | struct _cef_fill_layout_t; 49 | 50 | /// 51 | // A Layout handles the sizing of the children of a Panel according to 52 | // implementation-specific heuristics. Methods must be called on the browser 53 | // process UI thread unless otherwise indicated. 54 | /// 55 | typedef struct _cef_layout_t { 56 | /// 57 | // Base structure. 58 | /// 59 | cef_base_t base; 60 | 61 | /// 62 | // Returns this Layout as a BoxLayout or NULL if this is not a BoxLayout. 63 | /// 64 | struct _cef_box_layout_t* (CEF_CALLBACK *as_box_layout)( 65 | struct _cef_layout_t* self); 66 | 67 | /// 68 | // Returns this Layout as a FillLayout or NULL if this is not a FillLayout. 69 | /// 70 | struct _cef_fill_layout_t* (CEF_CALLBACK *as_fill_layout)( 71 | struct _cef_layout_t* self); 72 | 73 | /// 74 | // Returns true (1) if this Layout is valid. 75 | /// 76 | int (CEF_CALLBACK *is_valid)(struct _cef_layout_t* self); 77 | } cef_layout_t; 78 | 79 | 80 | #ifdef __cplusplus 81 | } 82 | #endif 83 | 84 | #endif // CEF_INCLUDE_CAPI_VIEWS_CEF_LAYOUT_CAPI_H_ 85 | -------------------------------------------------------------------------------- /CEF/include/capi/views/cef_menu_button_delegate_capi.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2016 Marshall A. Greenblatt. All rights reserved. 2 | // 3 | // Redistribution and use in source and binary forms, with or without 4 | // modification, are permitted provided that the following conditions are 5 | // met: 6 | // 7 | // * Redistributions of source code must retain the above copyright 8 | // notice, this list of conditions and the following disclaimer. 9 | // * Redistributions in binary form must reproduce the above 10 | // copyright notice, this list of conditions and the following disclaimer 11 | // in the documentation and/or other materials provided with the 12 | // distribution. 13 | // * Neither the name of Google Inc. nor the name Chromium Embedded 14 | // Framework nor the names of its contributors may be used to endorse 15 | // or promote products derived from this software without specific prior 16 | // written permission. 17 | // 18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 19 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 20 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 21 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 22 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 23 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 24 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | // 30 | // --------------------------------------------------------------------------- 31 | // 32 | // This file was generated by the CEF translator tool and should not edited 33 | // by hand. See the translator.README.txt file in the tools directory for 34 | // more information. 35 | // 36 | 37 | #ifndef CEF_INCLUDE_CAPI_VIEWS_CEF_MENU_BUTTON_DELEGATE_CAPI_H_ 38 | #define CEF_INCLUDE_CAPI_VIEWS_CEF_MENU_BUTTON_DELEGATE_CAPI_H_ 39 | #pragma once 40 | 41 | #include "include/capi/views/cef_button_delegate_capi.h" 42 | 43 | #ifdef __cplusplus 44 | extern "C" { 45 | #endif 46 | 47 | struct _cef_menu_button_t; 48 | 49 | /// 50 | // Implement this structure to handle MenuButton events. The functions of this 51 | // structure will be called on the browser process UI thread unless otherwise 52 | // indicated. 53 | /// 54 | typedef struct _cef_menu_button_delegate_t { 55 | /// 56 | // Base structure. 57 | /// 58 | cef_button_delegate_t base; 59 | 60 | /// 61 | // Called when |button| is pressed. Call cef_menu_button_t::show_menu() to 62 | // show the resulting menu at |screen_point|. 63 | /// 64 | void (CEF_CALLBACK *on_menu_button_pressed)( 65 | struct _cef_menu_button_delegate_t* self, 66 | struct _cef_menu_button_t* menu_button, 67 | const cef_point_t* screen_point); 68 | } cef_menu_button_delegate_t; 69 | 70 | 71 | #ifdef __cplusplus 72 | } 73 | #endif 74 | 75 | #endif // CEF_INCLUDE_CAPI_VIEWS_CEF_MENU_BUTTON_DELEGATE_CAPI_H_ 76 | -------------------------------------------------------------------------------- /CEF/include/capi/views/cef_panel_delegate_capi.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2016 Marshall A. Greenblatt. All rights reserved. 2 | // 3 | // Redistribution and use in source and binary forms, with or without 4 | // modification, are permitted provided that the following conditions are 5 | // met: 6 | // 7 | // * Redistributions of source code must retain the above copyright 8 | // notice, this list of conditions and the following disclaimer. 9 | // * Redistributions in binary form must reproduce the above 10 | // copyright notice, this list of conditions and the following disclaimer 11 | // in the documentation and/or other materials provided with the 12 | // distribution. 13 | // * Neither the name of Google Inc. nor the name Chromium Embedded 14 | // Framework nor the names of its contributors may be used to endorse 15 | // or promote products derived from this software without specific prior 16 | // written permission. 17 | // 18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 19 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 20 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 21 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 22 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 23 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 24 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | // 30 | // --------------------------------------------------------------------------- 31 | // 32 | // This file was generated by the CEF translator tool and should not edited 33 | // by hand. See the translator.README.txt file in the tools directory for 34 | // more information. 35 | // 36 | 37 | #ifndef CEF_INCLUDE_CAPI_VIEWS_CEF_PANEL_DELEGATE_CAPI_H_ 38 | #define CEF_INCLUDE_CAPI_VIEWS_CEF_PANEL_DELEGATE_CAPI_H_ 39 | #pragma once 40 | 41 | #include "include/capi/views/cef_view_delegate_capi.h" 42 | 43 | #ifdef __cplusplus 44 | extern "C" { 45 | #endif 46 | 47 | 48 | /// 49 | // Implement this structure to handle Panel events. The functions of this 50 | // structure will be called on the browser process UI thread unless otherwise 51 | // indicated. 52 | /// 53 | typedef struct _cef_panel_delegate_t { 54 | /// 55 | // Base structure. 56 | /// 57 | cef_view_delegate_t base; 58 | } cef_panel_delegate_t; 59 | 60 | 61 | #ifdef __cplusplus 62 | } 63 | #endif 64 | 65 | #endif // CEF_INCLUDE_CAPI_VIEWS_CEF_PANEL_DELEGATE_CAPI_H_ 66 | -------------------------------------------------------------------------------- /CEF/include/cef_auth_callback.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 Marshall A. Greenblatt. All rights reserved. 2 | // 3 | // Redistribution and use in source and binary forms, with or without 4 | // modification, are permitted provided that the following conditions are 5 | // met: 6 | // 7 | // * Redistributions of source code must retain the above copyright 8 | // notice, this list of conditions and the following disclaimer. 9 | // * Redistributions in binary form must reproduce the above 10 | // copyright notice, this list of conditions and the following disclaimer 11 | // in the documentation and/or other materials provided with the 12 | // distribution. 13 | // * Neither the name of Google Inc. nor the name Chromium Embedded 14 | // Framework nor the names of its contributors may be used to endorse 15 | // or promote products derived from this software without specific prior 16 | // written permission. 17 | // 18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 19 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 20 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 21 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 22 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 23 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 24 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | // 30 | // --------------------------------------------------------------------------- 31 | // 32 | // The contents of this file must follow a specific format in order to 33 | // support the CEF translator tool. See the translator.README.txt file in the 34 | // tools directory for more information. 35 | // 36 | 37 | #ifndef CEF_INCLUDE_CEF_AUTH_CALLBACK_H_ 38 | #define CEF_INCLUDE_CEF_AUTH_CALLBACK_H_ 39 | #pragma once 40 | 41 | #include "include/cef_base.h" 42 | 43 | /// 44 | // Callback interface used for asynchronous continuation of authentication 45 | // requests. 46 | /// 47 | /*--cef(source=library)--*/ 48 | class CefAuthCallback : public virtual CefBase { 49 | public: 50 | /// 51 | // Continue the authentication request. 52 | /// 53 | /*--cef(capi_name=cont)--*/ 54 | virtual void Continue(const CefString& username, 55 | const CefString& password) =0; 56 | 57 | /// 58 | // Cancel the authentication request. 59 | /// 60 | /*--cef()--*/ 61 | virtual void Cancel() =0; 62 | }; 63 | 64 | #endif // CEF_INCLUDE_CEF_AUTH_CALLBACK_H_ 65 | -------------------------------------------------------------------------------- /CEF/include/cef_callback.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012 Marshall A. Greenblatt. All rights reserved. 2 | // 3 | // Redistribution and use in source and binary forms, with or without 4 | // modification, are permitted provided that the following conditions are 5 | // met: 6 | // 7 | // * Redistributions of source code must retain the above copyright 8 | // notice, this list of conditions and the following disclaimer. 9 | // * Redistributions in binary form must reproduce the above 10 | // copyright notice, this list of conditions and the following disclaimer 11 | // in the documentation and/or other materials provided with the 12 | // distribution. 13 | // * Neither the name of Google Inc. nor the name Chromium Embedded 14 | // Framework nor the names of its contributors may be used to endorse 15 | // or promote products derived from this software without specific prior 16 | // written permission. 17 | // 18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 19 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 20 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 21 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 22 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 23 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 24 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | // 30 | // --------------------------------------------------------------------------- 31 | // 32 | // The contents of this file must follow a specific format in order to 33 | // support the CEF translator tool. See the translator.README.txt file in the 34 | // tools directory for more information. 35 | // 36 | 37 | #ifndef CEF_INCLUDE_CEF_CALLBACK_H_ 38 | #define CEF_INCLUDE_CEF_CALLBACK_H_ 39 | #pragma once 40 | 41 | #include "include/cef_base.h" 42 | 43 | /// 44 | // Generic callback interface used for asynchronous continuation. 45 | /// 46 | /*--cef(source=library)--*/ 47 | class CefCallback : public virtual CefBase { 48 | public: 49 | /// 50 | // Continue processing. 51 | /// 52 | /*--cef(capi_name=cont)--*/ 53 | virtual void Continue() =0; 54 | 55 | /// 56 | // Cancel processing. 57 | /// 58 | /*--cef()--*/ 59 | virtual void Cancel() =0; 60 | }; 61 | 62 | /// 63 | // Generic callback interface used for asynchronous completion. 64 | /// 65 | /*--cef(source=client)--*/ 66 | class CefCompletionCallback : public virtual CefBase { 67 | public: 68 | /// 69 | // Method that will be called once the task is complete. 70 | /// 71 | /*--cef()--*/ 72 | virtual void OnComplete() =0; 73 | }; 74 | 75 | #endif // CEF_INCLUDE_CEF_CALLBACK_H_ 76 | -------------------------------------------------------------------------------- /CEF/include/cef_find_handler.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2015 Marshall A. Greenblatt. All rights reserved. 2 | // 3 | // Redistribution and use in source and binary forms, with or without 4 | // modification, are permitted provided that the following conditions are 5 | // met: 6 | // 7 | // * Redistributions of source code must retain the above copyright 8 | // notice, this list of conditions and the following disclaimer. 9 | // * Redistributions in binary form must reproduce the above 10 | // copyright notice, this list of conditions and the following disclaimer 11 | // in the documentation and/or other materials provided with the 12 | // distribution. 13 | // * Neither the name of Google Inc. nor the name Chromium Embedded 14 | // Framework nor the names of its contributors may be used to endorse 15 | // or promote products derived from this software without specific prior 16 | // written permission. 17 | // 18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 19 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 20 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 21 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 22 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 23 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 24 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | // 30 | // --------------------------------------------------------------------------- 31 | // 32 | // The contents of this file must follow a specific format in order to 33 | // support the CEF translator tool. See the translator.README.txt file in the 34 | // tools directory for more information. 35 | // 36 | 37 | #ifndef CEF_INCLUDE_CEF_FIND_HANDLER_H_ 38 | #define CEF_INCLUDE_CEF_FIND_HANDLER_H_ 39 | #pragma once 40 | 41 | #include "include/cef_base.h" 42 | #include "include/cef_browser.h" 43 | 44 | /// 45 | // Implement this interface to handle events related to find results. The 46 | // methods of this class will be called on the UI thread. 47 | /// 48 | /*--cef(source=client)--*/ 49 | class CefFindHandler : public virtual CefBase { 50 | public: 51 | /// 52 | // Called to report find results returned by CefBrowserHost::Find(). 53 | // |identifer| is the identifier passed to Find(), |count| is the number of 54 | // matches currently identified, |selectionRect| is the location of where the 55 | // match was found (in window coordinates), |activeMatchOrdinal| is the 56 | // current position in the search results, and |finalUpdate| is true if this 57 | // is the last find notification. 58 | /// 59 | /*--cef()--*/ 60 | virtual void OnFindResult(CefRefPtr browser, 61 | int identifier, 62 | int count, 63 | const CefRect& selectionRect, 64 | int activeMatchOrdinal, 65 | bool finalUpdate) {} 66 | }; 67 | 68 | #endif // CEF_INCLUDE_CEF_FIND_HANDLER_H_ 69 | -------------------------------------------------------------------------------- /CEF/include/cef_geolocation.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012 Marshall A. Greenblatt. All rights reserved. 2 | // 3 | // Redistribution and use in source and binary forms, with or without 4 | // modification, are permitted provided that the following conditions are 5 | // met: 6 | // 7 | // * Redistributions of source code must retain the above copyright 8 | // notice, this list of conditions and the following disclaimer. 9 | // * Redistributions in binary form must reproduce the above 10 | // copyright notice, this list of conditions and the following disclaimer 11 | // in the documentation and/or other materials provided with the 12 | // distribution. 13 | // * Neither the name of Google Inc. nor the name Chromium Embedded 14 | // Framework nor the names of its contributors may be used to endorse 15 | // or promote products derived from this software without specific prior 16 | // written permission. 17 | // 18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 19 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 20 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 21 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 22 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 23 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 24 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | // 30 | // --------------------------------------------------------------------------- 31 | // 32 | // The contents of this file must follow a specific format in order to 33 | // support the CEF translator tool. See the translator.README.txt file in the 34 | // tools directory for more information. 35 | // 36 | 37 | #ifndef CEF_INCLUDE_CEF_GEOLOCATION_H_ 38 | #define CEF_INCLUDE_CEF_GEOLOCATION_H_ 39 | #pragma once 40 | 41 | #include "include/cef_base.h" 42 | 43 | /// 44 | // Implement this interface to receive geolocation updates. The methods of this 45 | // class will be called on the browser process UI thread. 46 | /// 47 | /*--cef(source=client)--*/ 48 | class CefGetGeolocationCallback : public virtual CefBase { 49 | public: 50 | /// 51 | // Called with the 'best available' location information or, if the location 52 | // update failed, with error information. 53 | /// 54 | /*--cef()--*/ 55 | virtual void OnLocationUpdate(const CefGeoposition& position) =0; 56 | }; 57 | 58 | /// 59 | // Request a one-time geolocation update. This function bypasses any user 60 | // permission checks so should only be used by code that is allowed to access 61 | // location information. 62 | /// 63 | /*--cef()--*/ 64 | bool CefGetGeolocation(CefRefPtr callback); 65 | 66 | #endif // CEF_INCLUDE_CEF_GEOLOCATION_H_ 67 | -------------------------------------------------------------------------------- /CEF/include/cef_path_util.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012 Marshall A. Greenblatt. All rights reserved. 2 | // 3 | // Redistribution and use in source and binary forms, with or without 4 | // modification, are permitted provided that the following conditions are 5 | // met: 6 | // 7 | // * Redistributions of source code must retain the above copyright 8 | // notice, this list of conditions and the following disclaimer. 9 | // * Redistributions in binary form must reproduce the above 10 | // copyright notice, this list of conditions and the following disclaimer 11 | // in the documentation and/or other materials provided with the 12 | // distribution. 13 | // * Neither the name of Google Inc. nor the name Chromium Embedded 14 | // Framework nor the names of its contributors may be used to endorse 15 | // or promote products derived from this software without specific prior 16 | // written permission. 17 | // 18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 19 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 20 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 21 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 22 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 23 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 24 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | // 30 | // --------------------------------------------------------------------------- 31 | // 32 | // The contents of this file must follow a specific format in order to 33 | // support the CEF translator tool. See the translator.README.txt file in the 34 | // tools directory for more information. 35 | // 36 | 37 | #ifndef CEF_INCLUDE_CEF_PATH_UTIL_H_ 38 | #define CEF_INCLUDE_CEF_PATH_UTIL_H_ 39 | #pragma once 40 | 41 | #include "include/cef_base.h" 42 | 43 | typedef cef_path_key_t PathKey; 44 | 45 | /// 46 | // Retrieve the path associated with the specified |key|. Returns true on 47 | // success. Can be called on any thread in the browser process. 48 | /// 49 | /*--cef()--*/ 50 | bool CefGetPath(PathKey key, CefString& path); 51 | 52 | #endif // CEF_INCLUDE_CEF_PATH_UTIL_H_ 53 | -------------------------------------------------------------------------------- /CEF/include/cef_process_util.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012 Marshall A. Greenblatt. All rights reserved. 2 | // 3 | // Redistribution and use in source and binary forms, with or without 4 | // modification, are permitted provided that the following conditions are 5 | // met: 6 | // 7 | // * Redistributions of source code must retain the above copyright 8 | // notice, this list of conditions and the following disclaimer. 9 | // * Redistributions in binary form must reproduce the above 10 | // copyright notice, this list of conditions and the following disclaimer 11 | // in the documentation and/or other materials provided with the 12 | // distribution. 13 | // * Neither the name of Google Inc. nor the name Chromium Embedded 14 | // Framework nor the names of its contributors may be used to endorse 15 | // or promote products derived from this software without specific prior 16 | // written permission. 17 | // 18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 19 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 20 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 21 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 22 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 23 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 24 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | // 30 | // --------------------------------------------------------------------------- 31 | // 32 | // The contents of this file must follow a specific format in order to 33 | // support the CEF translator tool. See the translator.README.txt file in the 34 | // tools directory for more information. 35 | // 36 | 37 | #ifndef CEF_INCLUDE_CEF_PROCESS_UTIL_H_ 38 | #define CEF_INCLUDE_CEF_PROCESS_UTIL_H_ 39 | #pragma once 40 | 41 | #include "include/cef_base.h" 42 | #include "include/cef_command_line.h" 43 | 44 | /// 45 | // Launches the process specified via |command_line|. Returns true upon 46 | // success. Must be called on the browser process TID_PROCESS_LAUNCHER thread. 47 | // 48 | // Unix-specific notes: 49 | // - All file descriptors open in the parent process will be closed in the 50 | // child process except for stdin, stdout, and stderr. 51 | // - If the first argument on the command line does not contain a slash, 52 | // PATH will be searched. (See man execvp.) 53 | /// 54 | /*--cef()--*/ 55 | bool CefLaunchProcess(CefRefPtr command_line); 56 | 57 | #endif // CEF_INCLUDE_CEF_PROCESS_UTIL_H_ 58 | -------------------------------------------------------------------------------- /CEF/include/cef_string_visitor.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012 Marshall A. Greenblatt. All rights reserved. 2 | // 3 | // Redistribution and use in source and binary forms, with or without 4 | // modification, are permitted provided that the following conditions are 5 | // met: 6 | // 7 | // * Redistributions of source code must retain the above copyright 8 | // notice, this list of conditions and the following disclaimer. 9 | // * Redistributions in binary form must reproduce the above 10 | // copyright notice, this list of conditions and the following disclaimer 11 | // in the documentation and/or other materials provided with the 12 | // distribution. 13 | // * Neither the name of Google Inc. nor the name Chromium Embedded 14 | // Framework nor the names of its contributors may be used to endorse 15 | // or promote products derived from this software without specific prior 16 | // written permission. 17 | // 18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 19 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 20 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 21 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 22 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 23 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 24 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | // 30 | // --------------------------------------------------------------------------- 31 | // 32 | // The contents of this file must follow a specific format in order to 33 | // support the CEF translator tool. See the translator.README.txt file in the 34 | // tools directory for more information. 35 | // 36 | 37 | #ifndef CEF_INCLUDE_CEF_STRING_VISITOR_H_ 38 | #define CEF_INCLUDE_CEF_STRING_VISITOR_H_ 39 | 40 | #include "include/cef_base.h" 41 | 42 | /// 43 | // Implement this interface to receive string values asynchronously. 44 | /// 45 | /*--cef(source=client)--*/ 46 | class CefStringVisitor : public virtual CefBase { 47 | public: 48 | /// 49 | // Method that will be executed. 50 | /// 51 | /*--cef(optional_param=string)--*/ 52 | virtual void Visit(const CefString& string) =0; 53 | }; 54 | 55 | #endif // CEF_INCLUDE_CEF_STRING_VISITOR_H_ 56 | -------------------------------------------------------------------------------- /CEF/include/internal/cef_export.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2009 The Chromium Embedded Framework Authors. All rights 2 | // reserved. 3 | // 4 | // Redistribution and use in source and binary forms, with or without 5 | // modification, are permitted provided that the following conditions are 6 | // met: 7 | // 8 | // * Redistributions of source code must retain the above copyright 9 | // notice, this list of conditions and the following disclaimer. 10 | // * Redistributions in binary form must reproduce the above 11 | // copyright notice, this list of conditions and the following disclaimer 12 | // in the documentation and/or other materials provided with the 13 | // distribution. 14 | // * Neither the name of Google Inc. nor the name Chromium Embedded 15 | // Framework nor the names of its contributors may be used to endorse 16 | // or promote products derived from this software without specific prior 17 | // written permission. 18 | // 19 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 20 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 21 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 22 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 23 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 24 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 25 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 26 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 27 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 28 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 29 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 30 | 31 | #ifndef CEF_INCLUDE_INTERNAL_CEF_EXPORT_H_ 32 | #define CEF_INCLUDE_INTERNAL_CEF_EXPORT_H_ 33 | #pragma once 34 | 35 | #include "include/base/cef_build.h" 36 | 37 | #if defined(COMPILER_MSVC) 38 | 39 | #ifdef BUILDING_CEF_SHARED 40 | #define CEF_EXPORT __declspec(dllexport) 41 | #elif USING_CEF_SHARED 42 | #define CEF_EXPORT __declspec(dllimport) 43 | #else 44 | #define CEF_EXPORT 45 | #endif 46 | #define CEF_CALLBACK __stdcall 47 | 48 | #elif defined(COMPILER_GCC) 49 | 50 | #define CEF_EXPORT __attribute__ ((visibility("default"))) 51 | #define CEF_CALLBACK 52 | 53 | #endif // COMPILER_GCC 54 | 55 | #endif // CEF_INCLUDE_INTERNAL_CEF_EXPORT_H_ 56 | -------------------------------------------------------------------------------- /CEF/include/internal/cef_logging_internal.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2014 Marshall A. Greenblatt. All rights reserved. 2 | // 3 | // Redistribution and use in source and binary forms, with or without 4 | // modification, are permitted provided that the following conditions are 5 | // met: 6 | // 7 | // * Redistributions of source code must retain the above copyright 8 | // notice, this list of conditions and the following disclaimer. 9 | // * Redistributions in binary form must reproduce the above 10 | // copyright notice, this list of conditions and the following disclaimer 11 | // in the documentation and/or other materials provided with the 12 | // distribution. 13 | // * Neither the name of Google Inc. nor the name Chromium Embedded 14 | // Framework nor the names of its contributors may be used to endorse 15 | // or promote products derived from this software without specific prior 16 | // written permission. 17 | // 18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 19 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 20 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 21 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 22 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 23 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 24 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | 30 | #ifndef CEF_INCLUDE_INTERNAL_CEF_LOGGING_INTERNAL_H_ 31 | #define CEF_INCLUDE_INTERNAL_CEF_LOGGING_INTERNAL_H_ 32 | #pragma once 33 | 34 | #include "include/internal/cef_export.h" 35 | 36 | #ifdef __cplusplus 37 | extern "C" { 38 | #endif 39 | 40 | // See include/base/cef_logging.h for macros and intended usage. 41 | 42 | /// 43 | // Gets the current log level. 44 | /// 45 | CEF_EXPORT int cef_get_min_log_level(); 46 | 47 | /// 48 | // Gets the current vlog level for the given file (usually taken from 49 | // __FILE__). Note that |N| is the size *with* the null terminator. 50 | /// 51 | CEF_EXPORT int cef_get_vlog_level(const char* file_start, size_t N); 52 | 53 | /// 54 | // Add a log message. See the LogSeverity defines for supported |severity| 55 | // values. 56 | /// 57 | CEF_EXPORT void cef_log(const char* file, 58 | int line, 59 | int severity, 60 | const char* message); 61 | 62 | #ifdef __cplusplus 63 | } 64 | #endif // __cplusplus 65 | 66 | #endif // CEF_INCLUDE_INTERNAL_CEF_LOGGING_INTERNAL_H_ 67 | -------------------------------------------------------------------------------- /CEF/include/internal/cef_string_list.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2009 Marshall A. Greenblatt. All rights reserved. 2 | // 3 | // Redistribution and use in source and binary forms, with or without 4 | // modification, are permitted provided that the following conditions are 5 | // met: 6 | // 7 | // * Redistributions of source code must retain the above copyright 8 | // notice, this list of conditions and the following disclaimer. 9 | // * Redistributions in binary form must reproduce the above 10 | // copyright notice, this list of conditions and the following disclaimer 11 | // in the documentation and/or other materials provided with the 12 | // distribution. 13 | // * Neither the name of Google Inc. nor the name Chromium Embedded 14 | // Framework nor the names of its contributors may be used to endorse 15 | // or promote products derived from this software without specific prior 16 | // written permission. 17 | // 18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 19 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 20 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 21 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 22 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 23 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 24 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | 30 | #ifndef CEF_INCLUDE_INTERNAL_CEF_STRING_LIST_H_ 31 | #define CEF_INCLUDE_INTERNAL_CEF_STRING_LIST_H_ 32 | #pragma once 33 | 34 | #include "include/internal/cef_export.h" 35 | #include "include/internal/cef_string.h" 36 | 37 | #ifdef __cplusplus 38 | extern "C" { 39 | #endif 40 | 41 | /// 42 | // CEF string maps are a set of key/value string pairs. 43 | /// 44 | typedef void* cef_string_list_t; 45 | 46 | /// 47 | // Allocate a new string map. 48 | /// 49 | CEF_EXPORT cef_string_list_t cef_string_list_alloc(); 50 | 51 | /// 52 | // Return the number of elements in the string list. 53 | /// 54 | CEF_EXPORT int cef_string_list_size(cef_string_list_t list); 55 | 56 | /// 57 | // Retrieve the value at the specified zero-based string list index. Returns 58 | // true (1) if the value was successfully retrieved. 59 | /// 60 | CEF_EXPORT int cef_string_list_value(cef_string_list_t list, 61 | int index, cef_string_t* value); 62 | 63 | /// 64 | // Append a new value at the end of the string list. 65 | /// 66 | CEF_EXPORT void cef_string_list_append(cef_string_list_t list, 67 | const cef_string_t* value); 68 | 69 | /// 70 | // Clear the string list. 71 | /// 72 | CEF_EXPORT void cef_string_list_clear(cef_string_list_t list); 73 | 74 | /// 75 | // Free the string list. 76 | /// 77 | CEF_EXPORT void cef_string_list_free(cef_string_list_t list); 78 | 79 | /// 80 | // Creates a copy of an existing string list. 81 | /// 82 | CEF_EXPORT cef_string_list_t cef_string_list_copy(cef_string_list_t list); 83 | 84 | #ifdef __cplusplus 85 | } 86 | #endif 87 | 88 | #endif // CEF_INCLUDE_INTERNAL_CEF_STRING_LIST_H_ 89 | -------------------------------------------------------------------------------- /CEF/include/internal/cef_thread_internal.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2014 Marshall A. Greenblatt. All rights reserved. 2 | // 3 | // Redistribution and use in source and binary forms, with or without 4 | // modification, are permitted provided that the following conditions are 5 | // met: 6 | // 7 | // * Redistributions of source code must retain the above copyright 8 | // notice, this list of conditions and the following disclaimer. 9 | // * Redistributions in binary form must reproduce the above 10 | // copyright notice, this list of conditions and the following disclaimer 11 | // in the documentation and/or other materials provided with the 12 | // distribution. 13 | // * Neither the name of Google Inc. nor the name Chromium Embedded 14 | // Framework nor the names of its contributors may be used to endorse 15 | // or promote products derived from this software without specific prior 16 | // written permission. 17 | // 18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 19 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 20 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 21 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 22 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 23 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 24 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | 30 | #ifndef CEF_INCLUDE_INTERNAL_CEF_THREAD_INTERNAL_H_ 31 | #define CEF_INCLUDE_INTERNAL_CEF_THREAD_INTERNAL_H_ 32 | #pragma once 33 | 34 | #if defined(OS_WIN) 35 | #include 36 | #elif defined(OS_POSIX) 37 | #include 38 | #include 39 | #endif 40 | 41 | #include "include/internal/cef_export.h" 42 | 43 | #ifdef __cplusplus 44 | extern "C" { 45 | #endif 46 | 47 | #if defined(OS_WIN) 48 | typedef DWORD cef_platform_thread_id_t; 49 | #elif defined(OS_POSIX) 50 | typedef pid_t cef_platform_thread_id_t; 51 | #endif 52 | 53 | /// 54 | // Returns the current platform thread ID. 55 | /// 56 | CEF_EXPORT cef_platform_thread_id_t cef_get_current_platform_thread_id(); 57 | 58 | #if defined(OS_WIN) 59 | typedef DWORD cef_platform_thread_handle_t; 60 | #elif defined(OS_POSIX) 61 | typedef pthread_t cef_platform_thread_handle_t; 62 | #endif 63 | 64 | /// 65 | // Returns the current platform thread handle. 66 | /// 67 | CEF_EXPORT cef_platform_thread_handle_t 68 | cef_get_current_platform_thread_handle(); 69 | 70 | #ifdef __cplusplus 71 | } 72 | #endif // __cplusplus 73 | 74 | #endif // CEF_INCLUDE_INTERNAL_CEF_THREAD_INTERNAL_H_ 75 | -------------------------------------------------------------------------------- /CEF/include/views/cef_button_delegate.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2016 Marshall A. Greenblatt. All rights reserved. 2 | // 3 | // Redistribution and use in source and binary forms, with or without 4 | // modification, are permitted provided that the following conditions are 5 | // met: 6 | // 7 | // * Redistributions of source code must retain the above copyright 8 | // notice, this list of conditions and the following disclaimer. 9 | // * Redistributions in binary form must reproduce the above 10 | // copyright notice, this list of conditions and the following disclaimer 11 | // in the documentation and/or other materials provided with the 12 | // distribution. 13 | // * Neither the name of Google Inc. nor the name Chromium Embedded 14 | // Framework nor the names of its contributors may be used to endorse 15 | // or promote products derived from this software without specific prior 16 | // written permission. 17 | // 18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 19 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 20 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 21 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 22 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 23 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 24 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | // 30 | // --------------------------------------------------------------------------- 31 | // 32 | // The contents of this file must follow a specific format in order to 33 | // support the CEF translator tool. See the translator.README.txt file in the 34 | // tools directory for more information. 35 | // 36 | 37 | #ifndef CEF_INCLUDE_VIEWS_CEF_BUTTON_DELEGATE_H_ 38 | #define CEF_INCLUDE_VIEWS_CEF_BUTTON_DELEGATE_H_ 39 | #pragma once 40 | 41 | #include "include/views/cef_view_delegate.h" 42 | 43 | class CefButton; 44 | 45 | /// 46 | // Implement this interface to handle Button events. The methods of this class 47 | // will be called on the browser process UI thread unless otherwise indicated. 48 | /// 49 | /*--cef(source=client)--*/ 50 | class CefButtonDelegate : public CefViewDelegate { 51 | public: 52 | /// 53 | // Called when |button| is pressed. 54 | /// 55 | /*--cef()--*/ 56 | virtual void OnButtonPressed(CefRefPtr button) =0; 57 | }; 58 | 59 | #endif // CEF_INCLUDE_VIEWS_CEF_BUTTON_DELEGATE_H_ 60 | -------------------------------------------------------------------------------- /CEF/include/views/cef_fill_layout.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2016 Marshall A. Greenblatt. All rights reserved. 2 | // 3 | // Redistribution and use in source and binary forms, with or without 4 | // modification, are permitted provided that the following conditions are 5 | // met: 6 | // 7 | // * Redistributions of source code must retain the above copyright 8 | // notice, this list of conditions and the following disclaimer. 9 | // * Redistributions in binary form must reproduce the above 10 | // copyright notice, this list of conditions and the following disclaimer 11 | // in the documentation and/or other materials provided with the 12 | // distribution. 13 | // * Neither the name of Google Inc. nor the name Chromium Embedded 14 | // Framework nor the names of its contributors may be used to endorse 15 | // or promote products derived from this software without specific prior 16 | // written permission. 17 | // 18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 19 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 20 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 21 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 22 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 23 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 24 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | // 30 | // --------------------------------------------------------------------------- 31 | // 32 | // The contents of this file must follow a specific format in order to 33 | // support the CEF translator tool. See the translator.README.txt file in the 34 | // tools directory for more information. 35 | // 36 | 37 | #ifndef CEF_INCLUDE_VIEWS_CEF_FILL_LAYOUT_H_ 38 | #define CEF_INCLUDE_VIEWS_CEF_FILL_LAYOUT_H_ 39 | #pragma once 40 | 41 | #include "include/views/cef_layout.h" 42 | 43 | /// 44 | // A simple Layout that causes the associated Panel's one child to be sized to 45 | // match the bounds of its parent. Methods must be called on the browser process 46 | // UI thread unless otherwise indicated. 47 | /// 48 | /*--cef(source=library)--*/ 49 | class CefFillLayout : public CefLayout { 50 | }; 51 | 52 | #endif // CEF_INCLUDE_VIEWS_CEF_FILL_LAYOUT_H_ 53 | -------------------------------------------------------------------------------- /CEF/include/views/cef_layout.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2016 Marshall A. Greenblatt. All rights reserved. 2 | // 3 | // Redistribution and use in source and binary forms, with or without 4 | // modification, are permitted provided that the following conditions are 5 | // met: 6 | // 7 | // * Redistributions of source code must retain the above copyright 8 | // notice, this list of conditions and the following disclaimer. 9 | // * Redistributions in binary form must reproduce the above 10 | // copyright notice, this list of conditions and the following disclaimer 11 | // in the documentation and/or other materials provided with the 12 | // distribution. 13 | // * Neither the name of Google Inc. nor the name Chromium Embedded 14 | // Framework nor the names of its contributors may be used to endorse 15 | // or promote products derived from this software without specific prior 16 | // written permission. 17 | // 18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 19 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 20 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 21 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 22 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 23 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 24 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | // 30 | // --------------------------------------------------------------------------- 31 | // 32 | // The contents of this file must follow a specific format in order to 33 | // support the CEF translator tool. See the translator.README.txt file in the 34 | // tools directory for more information. 35 | // 36 | 37 | #ifndef CEF_INCLUDE_VIEWS_CEF_LAYOUT_H_ 38 | #define CEF_INCLUDE_VIEWS_CEF_LAYOUT_H_ 39 | #pragma once 40 | 41 | #include "include/cef_base.h" 42 | 43 | class CefBoxLayout; 44 | class CefFillLayout; 45 | 46 | /// 47 | // A Layout handles the sizing of the children of a Panel according to 48 | // implementation-specific heuristics. Methods must be called on the browser 49 | // process UI thread unless otherwise indicated. 50 | /// 51 | /*--cef(source=library)--*/ 52 | class CefLayout : public CefBase { 53 | public: 54 | /// 55 | // Returns this Layout as a BoxLayout or NULL if this is not a BoxLayout. 56 | /// 57 | /*--cef()--*/ 58 | virtual CefRefPtr AsBoxLayout() =0; 59 | 60 | /// 61 | // Returns this Layout as a FillLayout or NULL if this is not a FillLayout. 62 | /// 63 | /*--cef()--*/ 64 | virtual CefRefPtr AsFillLayout() =0; 65 | 66 | /// 67 | // Returns true if this Layout is valid. 68 | /// 69 | /*--cef()--*/ 70 | virtual bool IsValid() =0; 71 | }; 72 | 73 | #endif // CEF_INCLUDE_VIEWS_CEF_LAYOUT_H_ 74 | -------------------------------------------------------------------------------- /CEF/include/views/cef_menu_button_delegate.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2016 Marshall A. Greenblatt. All rights reserved. 2 | // 3 | // Redistribution and use in source and binary forms, with or without 4 | // modification, are permitted provided that the following conditions are 5 | // met: 6 | // 7 | // * Redistributions of source code must retain the above copyright 8 | // notice, this list of conditions and the following disclaimer. 9 | // * Redistributions in binary form must reproduce the above 10 | // copyright notice, this list of conditions and the following disclaimer 11 | // in the documentation and/or other materials provided with the 12 | // distribution. 13 | // * Neither the name of Google Inc. nor the name Chromium Embedded 14 | // Framework nor the names of its contributors may be used to endorse 15 | // or promote products derived from this software without specific prior 16 | // written permission. 17 | // 18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 19 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 20 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 21 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 22 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 23 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 24 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | // 30 | // --------------------------------------------------------------------------- 31 | // 32 | // The contents of this file must follow a specific format in order to 33 | // support the CEF translator tool. See the translator.README.txt file in the 34 | // tools directory for more information. 35 | // 36 | 37 | #ifndef CEF_INCLUDE_VIEWS_CEF_MENU_BUTTON_DELEGATE_H_ 38 | #define CEF_INCLUDE_VIEWS_CEF_MENU_BUTTON_DELEGATE_H_ 39 | #pragma once 40 | 41 | #include "include/views/cef_button_delegate.h" 42 | 43 | class CefMenuButton; 44 | 45 | /// 46 | // Implement this interface to handle MenuButton events. The methods of this 47 | // class will be called on the browser process UI thread unless otherwise 48 | // indicated. 49 | /// 50 | /*--cef(source=client)--*/ 51 | class CefMenuButtonDelegate : public CefButtonDelegate { 52 | public: 53 | /// 54 | // Called when |button| is pressed. Call CefMenuButton::ShowMenu() to show the 55 | // resulting menu at |screen_point|. 56 | /// 57 | /*--cef()--*/ 58 | virtual void OnMenuButtonPressed(CefRefPtr menu_button, 59 | const CefPoint& screen_point) =0; 60 | }; 61 | 62 | #endif // CEF_INCLUDE_VIEWS_CEF_MENU_BUTTON_DELEGATE_H_ 63 | -------------------------------------------------------------------------------- /CEF/include/views/cef_panel_delegate.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2016 Marshall A. Greenblatt. All rights reserved. 2 | // 3 | // Redistribution and use in source and binary forms, with or without 4 | // modification, are permitted provided that the following conditions are 5 | // met: 6 | // 7 | // * Redistributions of source code must retain the above copyright 8 | // notice, this list of conditions and the following disclaimer. 9 | // * Redistributions in binary form must reproduce the above 10 | // copyright notice, this list of conditions and the following disclaimer 11 | // in the documentation and/or other materials provided with the 12 | // distribution. 13 | // * Neither the name of Google Inc. nor the name Chromium Embedded 14 | // Framework nor the names of its contributors may be used to endorse 15 | // or promote products derived from this software without specific prior 16 | // written permission. 17 | // 18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 19 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 20 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 21 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 22 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 23 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 24 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | // 30 | // --------------------------------------------------------------------------- 31 | // 32 | // The contents of this file must follow a specific format in order to 33 | // support the CEF translator tool. See the translator.README.txt file in the 34 | // tools directory for more information. 35 | // 36 | 37 | #ifndef CEF_INCLUDE_VIEWS_CEF_PANEL_DELEGATE_H_ 38 | #define CEF_INCLUDE_VIEWS_CEF_PANEL_DELEGATE_H_ 39 | #pragma once 40 | 41 | #include "include/views/cef_view_delegate.h" 42 | 43 | /// 44 | // Implement this interface to handle Panel events. The methods of this class 45 | // will be called on the browser process UI thread unless otherwise indicated. 46 | /// 47 | /*--cef(source=client)--*/ 48 | class CefPanelDelegate : public CefViewDelegate { 49 | }; 50 | 51 | #endif // CEF_INCLUDE_VIEWS_CEF_PANEL_DELEGATE_H_ 52 | -------------------------------------------------------------------------------- /CEF/include/views/cef_textfield_delegate.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2016 Marshall A. Greenblatt. All rights reserved. 2 | // 3 | // Redistribution and use in source and binary forms, with or without 4 | // modification, are permitted provided that the following conditions are 5 | // met: 6 | // 7 | // * Redistributions of source code must retain the above copyright 8 | // notice, this list of conditions and the following disclaimer. 9 | // * Redistributions in binary form must reproduce the above 10 | // copyright notice, this list of conditions and the following disclaimer 11 | // in the documentation and/or other materials provided with the 12 | // distribution. 13 | // * Neither the name of Google Inc. nor the name Chromium Embedded 14 | // Framework nor the names of its contributors may be used to endorse 15 | // or promote products derived from this software without specific prior 16 | // written permission. 17 | // 18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 19 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 20 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 21 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 22 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 23 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 24 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | // 30 | // --------------------------------------------------------------------------- 31 | // 32 | // The contents of this file must follow a specific format in order to 33 | // support the CEF translator tool. See the translator.README.txt file in the 34 | // tools directory for more information. 35 | // 36 | 37 | #ifndef CEF_INCLUDE_VIEWS_CEF_TEXTFIELD_DELEGATE_H_ 38 | #define CEF_INCLUDE_VIEWS_CEF_TEXTFIELD_DELEGATE_H_ 39 | #pragma once 40 | 41 | #include "include/views/cef_view_delegate.h" 42 | 43 | class CefTextfield; 44 | 45 | /// 46 | // Implement this interface to handle Textfield events. The methods of this 47 | // class will be called on the browser process UI thread unless otherwise 48 | // indicated. 49 | /// 50 | /*--cef(source=client)--*/ 51 | class CefTextfieldDelegate : public CefViewDelegate { 52 | public: 53 | /// 54 | // Called when |textfield| recieves a keyboard event. |event| contains 55 | // information about the keyboard event. Return true if the keyboard event was 56 | // handled or false otherwise for default handling. 57 | /// 58 | /*--cef()--*/ 59 | virtual bool OnKeyEvent(CefRefPtr textfield, 60 | const CefKeyEvent& event) { return false; } 61 | 62 | /// 63 | // Called after performing a user action that may change |textfield|. 64 | /// 65 | /*--cef()--*/ 66 | virtual void OnAfterUserAction(CefRefPtr textfield) {} 67 | }; 68 | 69 | #endif // CEF_INCLUDE_VIEWS_CEF_TEXTFIELD_DELEGATE_H_ 70 | -------------------------------------------------------------------------------- /CEFV8HandlerEx.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/CEFV8HandlerEx.cc -------------------------------------------------------------------------------- /CEFV8HandlerEx.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "stdafx.h" 3 | #include 4 | #include 5 | 6 | class CCEFV8HandlerEx : public CefV8Handler { 7 | public: 8 | CCEFV8HandlerEx(); 9 | ~CCEFV8HandlerEx(); 10 | public: 11 | virtual bool Execute(const CefString& name, CefRefPtr object, const CefV8ValueList& arguments, CefRefPtr& retval, CefString& exception) override; 12 | private: 13 | // Map of message callbacks. 14 | typedef std::map, std::pair, CefRefPtr > >CallbackMap; 15 | CallbackMap callback_map_; 16 | 17 | 18 | public: 19 | IMPLEMENT_REFCOUNTING(CCEFV8HandlerEx); 20 | }; 21 | 22 | -------------------------------------------------------------------------------- /CEFWebkit.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/CEFWebkit.cc -------------------------------------------------------------------------------- /CEFWebkit.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/CEFWebkit.h -------------------------------------------------------------------------------- /CEFWebkitBrowser.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/CEFWebkitBrowser.cc -------------------------------------------------------------------------------- /CEFWebkitBrowser.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/CEFWebkitBrowser.h -------------------------------------------------------------------------------- /CEFWebkitBrowser.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/CEFWebkitBrowser.ico -------------------------------------------------------------------------------- /CEFWebkitBrowser.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/CEFWebkitBrowser.rc -------------------------------------------------------------------------------- /CEFWebkitBrowser.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 14 4 | VisualStudioVersion = 14.0.25420.1 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "CEFWebkitBrowser", "CEFWebkitBrowser.vcxproj", "{78BA0AEA-3A77-486C-B988-9710DA8FD287}" 7 | EndProject 8 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "DuiLib", "DuiLib\DuiLib.vcxproj", "{E106ACD7-4E53-4AEE-942B-D0DD426DB34E}" 9 | EndProject 10 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "HookFlash", "HookFlash\HookFlash.vcxproj", "{CAF87436-915F-4088-BDDC-8BDAA08006D9}" 11 | EndProject 12 | Global 13 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 14 | UnicodeDebug|x86 = UnicodeDebug|x86 15 | UnicodeRelease|x86 = UnicodeRelease|x86 16 | EndGlobalSection 17 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 18 | {78BA0AEA-3A77-486C-B988-9710DA8FD287}.UnicodeDebug|x86.ActiveCfg = Debug|Win32 19 | {78BA0AEA-3A77-486C-B988-9710DA8FD287}.UnicodeDebug|x86.Build.0 = Debug|Win32 20 | {78BA0AEA-3A77-486C-B988-9710DA8FD287}.UnicodeRelease|x86.ActiveCfg = Release|Win32 21 | {78BA0AEA-3A77-486C-B988-9710DA8FD287}.UnicodeRelease|x86.Build.0 = Release|Win32 22 | {E106ACD7-4E53-4AEE-942B-D0DD426DB34E}.UnicodeDebug|x86.ActiveCfg = UnicodeDebug|Win32 23 | {E106ACD7-4E53-4AEE-942B-D0DD426DB34E}.UnicodeDebug|x86.Build.0 = UnicodeDebug|Win32 24 | {E106ACD7-4E53-4AEE-942B-D0DD426DB34E}.UnicodeRelease|x86.ActiveCfg = UnicodeRelease|Win32 25 | {E106ACD7-4E53-4AEE-942B-D0DD426DB34E}.UnicodeRelease|x86.Build.0 = UnicodeRelease|Win32 26 | {CAF87436-915F-4088-BDDC-8BDAA08006D9}.UnicodeDebug|x86.ActiveCfg = Debug|Win32 27 | {CAF87436-915F-4088-BDDC-8BDAA08006D9}.UnicodeDebug|x86.Build.0 = Debug|Win32 28 | {CAF87436-915F-4088-BDDC-8BDAA08006D9}.UnicodeRelease|x86.ActiveCfg = Release|Win32 29 | {CAF87436-915F-4088-BDDC-8BDAA08006D9}.UnicodeRelease|x86.Build.0 = Release|Win32 30 | EndGlobalSection 31 | GlobalSection(SolutionProperties) = preSolution 32 | HideSolutionNode = FALSE 33 | EndGlobalSection 34 | EndGlobal 35 | -------------------------------------------------------------------------------- /CEFWebkitBrowser.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | {805cebca-0e10-474d-a975-0cfca4826da4} 18 | 19 | 20 | {3f91955c-d24c-4192-863d-1460de665bd2} 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 头文件 29 | 30 | 31 | 头文件 32 | 33 | 34 | 头文件 35 | 36 | 37 | 头文件 38 | 39 | 40 | control 41 | 42 | 43 | 头文件 44 | 45 | 46 | 头文件 47 | 48 | 49 | 头文件 50 | 51 | 52 | dump 53 | 54 | 55 | 56 | 57 | 源文件 58 | 59 | 60 | 源文件 61 | 62 | 63 | 源文件 64 | 65 | 66 | control 67 | 68 | 69 | 源文件 70 | 71 | 72 | 源文件 73 | 74 | 75 | 源文件 76 | 77 | 78 | dump 79 | 80 | 81 | 82 | 83 | 资源文件 84 | 85 | 86 | 87 | 88 | 资源文件 89 | 90 | 91 | 资源文件 92 | 93 | 94 | -------------------------------------------------------------------------------- /CEFWebkitBrowser.vcxproj.user: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | $(solutionDir)bin_d\$(TargetName)_d$(TargetExt) 5 | WindowsLocalDebugger 6 | 7 | 8 | $(solutionDir)bin_d 9 | 10 | 11 | $(solutionDir)bin\$(TargetName)$(TargetExt) 12 | $(solutionDir)bin 13 | WindowsLocalDebugger 14 | 15 | -------------------------------------------------------------------------------- /DuiLib/Control/UIActiveX.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/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 | virtual void SetDelayCreate(bool bDelayCreate = true); 42 | 43 | virtual bool CreateControl(const CLSID clsid); 44 | virtual 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 SetInnerVisible(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/UIAnimation.h: -------------------------------------------------------------------------------- 1 | #ifndef __UIANIMATION_H__ 2 | #define __UIANIMATION_H__ 3 | 4 | #include 5 | #include "UIButton.h" 6 | #pragma once 7 | 8 | namespace DuiLib { 9 | 10 | class UILIB_API IUIAnimation 11 | { 12 | public: 13 | virtual ~IUIAnimation() { } 14 | 15 | virtual BOOL StartAnimation(int nElapse, int nTotalFrame, int nAnimationID = 0, BOOL bLoop = FALSE) = 0; 16 | virtual VOID StopAnimation(int nAnimationID = 0) = 0; 17 | virtual BOOL IsAnimationRunning(int nAnimationID) = 0; 18 | virtual int GetCurrentFrame(int nAnimationID = 0) = 0; 19 | virtual BOOL SetCurrentFrame(int nFrame, int nAnimationID = 0) = 0; 20 | 21 | virtual VOID OnAnimationStep(int nTotalFrame, int nCurFrame, int nAnimationID) = 0; 22 | virtual VOID OnAnimationStart(int nAnimationID, BOOL bFirstLoop) = 0; 23 | virtual VOID OnAnimationStop(int nAnimationID) = 0; 24 | 25 | virtual VOID OnAnimationElapse(int nAnimationID) = 0; 26 | }; 27 | 28 | class UILIB_API CAnimationData 29 | { 30 | public: 31 | CAnimationData(int nElipse, int nFrame, int nID, BOOL bLoop) 32 | { 33 | m_bFirstLoop = TRUE; 34 | m_nCurFrame = 0; 35 | m_nElapse = nElipse; 36 | m_nTotalFrame = nFrame; 37 | m_bLoop = bLoop; 38 | m_nAnimationID = nID; 39 | } 40 | 41 | //protected: 42 | public: 43 | friend class CDUIAnimation; 44 | 45 | int m_nAnimationID; 46 | int m_nElapse; 47 | 48 | int m_nTotalFrame; 49 | int m_nCurFrame; 50 | 51 | BOOL m_bLoop; 52 | BOOL m_bFirstLoop; 53 | }; 54 | 55 | class UILIB_API CUIAnimation: public IUIAnimation 56 | { 57 | public: 58 | CUIAnimation(CControlUI* pOwner); 59 | 60 | virtual BOOL StartAnimation(int nElapse, int nTotalFrame, int nAnimationID = 0, BOOL bLoop = FALSE); 61 | virtual VOID StopAnimation(int nAnimationID = 0); 62 | virtual BOOL IsAnimationRunning(int nAnimationID); 63 | virtual int GetCurrentFrame(int nAnimationID = 0); 64 | virtual BOOL SetCurrentFrame(int nFrame, int nAnimationID = 0); 65 | 66 | virtual VOID OnAnimationStart(int nAnimationID, BOOL bFirstLoop) {}; 67 | virtual VOID OnAnimationStep(int nTotalFrame, int nCurFrame, int nAnimationID) {}; 68 | virtual VOID OnAnimationStop(int nAnimationID) {}; 69 | 70 | virtual VOID OnAnimationElapse(int nAnimationID); 71 | 72 | protected: 73 | CAnimationData* GetAnimationDataByID(int nAnimationID); 74 | 75 | protected: 76 | CControlUI* m_pControl; 77 | TStdPtrArray m_arAnimations; 78 | }; 79 | 80 | } // namespace DuiLib 81 | 82 | #endif // __UIANIMATION_H__ -------------------------------------------------------------------------------- /DuiLib/Control/UIButton.h: -------------------------------------------------------------------------------- 1 | #ifndef __UIBUTTON_H__ 2 | #define __UIBUTTON_H__ 3 | 4 | #pragma once 5 | 6 | namespace DuiLib 7 | { 8 | class UILIB_API CButtonUI : public CLabelUI 9 | { 10 | public: 11 | CButtonUI(); 12 | 13 | LPCTSTR GetClass() const; 14 | LPVOID GetInterface(LPCTSTR pstrName); 15 | UINT GetControlFlags() const; 16 | 17 | bool Activate(); 18 | void SetEnabled(bool bEnable = true); 19 | void DoEvent(TEventUI& event); 20 | 21 | LPCTSTR GetNormalImage(); 22 | void SetNormalImage(LPCTSTR pStrImage); 23 | LPCTSTR GetHotImage(); 24 | void SetHotImage(LPCTSTR pStrImage); 25 | LPCTSTR GetPushedImage(); 26 | void SetPushedImage(LPCTSTR pStrImage); 27 | LPCTSTR GetFocusedImage(); 28 | void SetFocusedImage(LPCTSTR pStrImage); 29 | LPCTSTR GetDisabledImage(); 30 | void SetDisabledImage(LPCTSTR pStrImage); 31 | LPCTSTR GetForeImage(); 32 | void SetForeImage(LPCTSTR pStrImage); 33 | LPCTSTR GetHotForeImage(); 34 | void SetHotForeImage(LPCTSTR pStrImage); 35 | 36 | void SetHotBkColor(DWORD dwColor); 37 | DWORD GetHotBkColor() const; 38 | void SetHotTextColor(DWORD dwColor); 39 | DWORD GetHotTextColor() const; 40 | void SetPushedTextColor(DWORD dwColor); 41 | DWORD GetPushedTextColor() const; 42 | void SetPushedBKColor(DWORD dwColor); 43 | DWORD GetPushedBKColor(); 44 | void SetFocusedTextColor(DWORD dwColor); 45 | DWORD GetFocusedTextColor() const; 46 | SIZE EstimateSize(SIZE szAvailable); 47 | void SetAttribute(LPCTSTR pstrName, LPCTSTR pstrValue); 48 | 49 | void PaintText(HDC hDC); 50 | void PaintStatusImage(HDC hDC); 51 | 52 | protected: 53 | UINT m_uButtonState; 54 | BOOL m_bDBClickState; 55 | DWORD m_dwHotBkColor; 56 | DWORD m_dwPushedBKColor; 57 | DWORD m_dwHotTextColor; 58 | DWORD m_dwPushedTextColor; 59 | DWORD m_dwFocusedTextColor; 60 | 61 | CDuiString m_sNormalImage; 62 | CDuiString m_sHotImage; 63 | CDuiString m_sHotForeImage; 64 | CDuiString m_sPushedImage; 65 | CDuiString m_sPushedForeImage; 66 | CDuiString m_sFocusedImage; 67 | CDuiString m_sDisabledImage; 68 | }; 69 | 70 | } // namespace DuiLib 71 | 72 | #endif // __UIBUTTON_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 | LPVOID CCheckBoxUI::GetInterface(LPCTSTR pstrName) 12 | { 13 | if (_tcscmp(pstrName, DUI_CTR_CHECKBOX) == 0) return static_cast(this); 14 | return COptionUI::GetInterface(pstrName); 15 | } 16 | 17 | void CCheckBoxUI::SetCheck(bool bCheck) 18 | { 19 | Selected(bCheck); 20 | } 21 | 22 | bool CCheckBoxUI::GetCheck() const 23 | { 24 | return IsSelected(); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /DuiLib/Control/UICheckBox.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/DuiLib/Control/UICheckBox.h -------------------------------------------------------------------------------- /DuiLib/Control/UIColorPalette.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/DuiLib/Control/UIColorPalette.cpp -------------------------------------------------------------------------------- /DuiLib/Control/UIColorPalette.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/DuiLib/Control/UIColorPalette.h -------------------------------------------------------------------------------- /DuiLib/Control/UICombo.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/DuiLib/Control/UICombo.cpp -------------------------------------------------------------------------------- /DuiLib/Control/UIComboBox.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/DuiLib/Control/UIComboBox.h -------------------------------------------------------------------------------- /DuiLib/Control/UIDateTime.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/DuiLib/Control/UIDateTime.cpp -------------------------------------------------------------------------------- /DuiLib/Control/UIDateTime.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/DuiLib/Control/UIDateTime.h -------------------------------------------------------------------------------- /DuiLib/Control/UIEdit.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/DuiLib/Control/UIEdit.cpp -------------------------------------------------------------------------------- /DuiLib/Control/UIEdit.h: -------------------------------------------------------------------------------- 1 | #ifndef __UIEDIT_H__ 2 | #define __UIEDIT_H__ 3 | #include "stdafx.h" 4 | 5 | #pragma once 6 | 7 | namespace DuiLib 8 | { 9 | class CEditWnd; 10 | 11 | class UILIB_API CEditUI : public CLabelUI 12 | { 13 | friend class CEditWnd; 14 | public: 15 | CEditUI(); 16 | 17 | LPCTSTR GetClass() const; 18 | LPVOID GetInterface(LPCTSTR pstrName); 19 | UINT GetControlFlags() const; 20 | 21 | void SetEnabled(bool bEnable = true); 22 | void SetText(LPCTSTR pstrText); 23 | void SetMaxChar(UINT uMax); 24 | UINT GetMaxChar(); 25 | void SetReadOnly(bool bReadOnly); 26 | bool IsReadOnly() const; 27 | void SetPasswordMode(bool bPasswordMode); 28 | bool IsPasswordMode() const; 29 | void SetPasswordChar(TCHAR cPasswordChar); 30 | TCHAR GetPasswordChar() const; 31 | void SetNumberOnly(bool bNumberOnly); 32 | bool IsNumberOnly() const; 33 | void SetFloatPointOnly(bool bFloatOnly); 34 | bool IsFloatPointOnly( ) const; 35 | int GetWindowStyls() const; 36 | 37 | LPCTSTR GetNormalImage(); 38 | void SetNormalImage(LPCTSTR pStrImage); 39 | LPCTSTR GetHotImage(); 40 | void SetHotImage(LPCTSTR pStrImage); 41 | LPCTSTR GetFocusedImage(); 42 | void SetFocusedImage(LPCTSTR pStrImage); 43 | LPCTSTR GetDisabledImage(); 44 | void SetDisabledImage(LPCTSTR pStrImage); 45 | void SetNativeEditBkColor(DWORD dwBkColor); 46 | DWORD GetNativeEditBkColor() const; 47 | 48 | void SetSel(long nStartChar, long nEndChar); 49 | void SetSelAll(); 50 | void SetReplaceSel(LPCTSTR lpszReplace); 51 | 52 | void SetPos(RECT rc); 53 | void SetVisible(bool bVisible = true); 54 | void SetInnerVisible(bool bVisible = true); 55 | SIZE EstimateSize(SIZE szAvailable); 56 | void DoEvent(TEventUI& event); 57 | void SetAttribute(LPCTSTR pstrName, LPCTSTR pstrValue); 58 | 59 | void PaintStatusImage(HDC hDC); 60 | void PaintText(HDC hDC); 61 | 62 | protected: 63 | CEditWnd* m_pWindow; 64 | 65 | UINT m_uMaxChar; 66 | bool m_bReadOnly; 67 | bool m_bFloatPointOnly; 68 | bool m_bPasswordMode; 69 | TCHAR m_cPasswordChar; 70 | UINT m_uButtonState; 71 | CDuiString m_sNormalImage; 72 | CDuiString m_sHotImage; 73 | CDuiString m_sFocusedImage; 74 | CDuiString m_sDisabledImage; 75 | DWORD m_dwEditbkColor; 76 | unsigned int m_iWindowStyls; 77 | }; 78 | } 79 | #endif // __UIEDIT_H__ -------------------------------------------------------------------------------- /DuiLib/Control/UIFadeButton.h: -------------------------------------------------------------------------------- 1 | #ifndef __UIFADEBUTTON_H__ 2 | #define __UIFADEBUTTON_H__ 3 | 4 | #include "UIAnimation.h" 5 | #include "UIButton.h" 6 | 7 | #pragma once 8 | 9 | namespace DuiLib { 10 | 11 | class UILIB_API CFadeButtonUI : public CButtonUI, public CUIAnimation 12 | { 13 | public: 14 | CFadeButtonUI(); 15 | virtual ~CFadeButtonUI(); 16 | 17 | LPCTSTR GetClass() const; 18 | LPVOID GetInterface(LPCTSTR pstrName); 19 | void SetNormalImage(LPCTSTR pStrImage); 20 | 21 | void DoEvent(TEventUI& event); 22 | void OnTimer( int nTimerID ); 23 | void PaintStatusImage(HDC hDC); 24 | 25 | virtual void OnAnimationStart(INT nAnimationID, BOOL bFirstLoop) {} 26 | virtual void OnAnimationStep(INT nTotalFrame, INT nCurFrame, INT nAnimationID); 27 | virtual void OnAnimationStop(INT nAnimationID) {} 28 | 29 | protected: 30 | CDuiString m_sOldImage; 31 | CDuiString m_sNewImage; 32 | CDuiString m_sLastImage; 33 | BYTE m_bFadeAlpha; 34 | BOOL m_bMouseHove; 35 | BOOL m_bMouseLeave; 36 | enum{ 37 | FADE_IN_ID = 8, 38 | FADE_OUT_ID = 9, 39 | 40 | FADE_ELLAPSE = 10, 41 | FADE_FRAME_COUNT = 30, 42 | }; 43 | }; 44 | 45 | } // namespace UiLib 46 | 47 | #endif // __UIFADEBUTTON_H__ -------------------------------------------------------------------------------- /DuiLib/Control/UIFlash.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/DuiLib/Control/UIFlash.cpp -------------------------------------------------------------------------------- /DuiLib/Control/UIFlash.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/DuiLib/Control/UIFlash.h -------------------------------------------------------------------------------- /DuiLib/Control/UIHyperlink.cpp: -------------------------------------------------------------------------------- 1 | #include "StdAfx.h" 2 | #include "UIHyperlink.h" 3 | 4 | 5 | namespace DuiLib{ 6 | 7 | CHyperLinkUI::CHyperLinkUI() 8 | { 9 | } 10 | 11 | CHyperLinkUI::~CHyperLinkUI() 12 | { 13 | 14 | } 15 | LPCTSTR CHyperLinkUI::GetClass() const 16 | { 17 | return _T("HyperLinkUI"); 18 | } 19 | LPVOID CHyperLinkUI::GetInterface(LPCTSTR pstrName) 20 | { 21 | if (_tcscmp(pstrName, DUI_CTR_HYPERLINK) == 0) return static_cast(this); 22 | return CButtonUI::GetInterface(pstrName); 23 | 24 | } 25 | void CHyperLinkUI::SetAttribute(LPCTSTR pstrName, LPCTSTR pstrValue) 26 | { 27 | } 28 | 29 | void CHyperLinkUI::SetPos(RECT rc) 30 | { 31 | 32 | } 33 | void CHyperLinkUI::DoInit() 34 | { 35 | 36 | } 37 | void CHyperLinkUI::DoEvent(TEventUI& event) 38 | { 39 | 40 | } 41 | void CHyperLinkUI::DoPaint(HDC hDC, const RECT& rcPaint) 42 | { 43 | 44 | } 45 | 46 | 47 | } -------------------------------------------------------------------------------- /DuiLib/Control/UIHyperlink.h: -------------------------------------------------------------------------------- 1 | #ifndef UI_HYPERLINK_H 2 | #define UI_HYPERLINK_H 3 | #pragma once 4 | 5 | 6 | namespace DuiLib{ 7 | 8 | 9 | class UILIB_API CHyperLinkUI : public CButtonUI 10 | { 11 | public: 12 | CHyperLinkUI(); 13 | virtual ~CHyperLinkUI(); 14 | 15 | 16 | virtual LPCTSTR GetClass() const; 17 | virtual LPVOID GetInterface(LPCTSTR pstrName); 18 | virtual void SetAttribute(LPCTSTR pstrName, LPCTSTR pstrValue); 19 | 20 | virtual void SetPos(RECT rc); 21 | virtual void DoInit(); 22 | virtual void DoEvent(TEventUI& event); 23 | virtual void DoPaint(HDC hDC, const RECT& rcPaint); 24 | 25 | 26 | 27 | 28 | 29 | 30 | }; 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | } 52 | 53 | 54 | #endif -------------------------------------------------------------------------------- /DuiLib/Control/UIIpAddress.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/DuiLib/Control/UIIpAddress.cpp -------------------------------------------------------------------------------- /DuiLib/Control/UIIpAddress.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/DuiLib/Control/UIIpAddress.h -------------------------------------------------------------------------------- /DuiLib/Control/UILabel.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/DuiLib/Control/UILabel.cpp -------------------------------------------------------------------------------- /DuiLib/Control/UILabel.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/DuiLib/Control/UILabel.h -------------------------------------------------------------------------------- /DuiLib/Control/UIList.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/DuiLib/Control/UIList.cpp -------------------------------------------------------------------------------- /DuiLib/Control/UIList.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/DuiLib/Control/UIList.h -------------------------------------------------------------------------------- /DuiLib/Control/UIMediaPlayer.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/DuiLib/Control/UIMediaPlayer.cpp -------------------------------------------------------------------------------- /DuiLib/Control/UIMediaPlayer.h: -------------------------------------------------------------------------------- 1 | #ifndef __UIMEDIAPLAYER_H_ 2 | #define __UIMEDIAPLAYER_H_ 3 | 4 | #pragma once 5 | #include 6 | //class CActiveXCtrl; 7 | //class CActiveXUI; 8 | #include "../Utils/wmp.tlh" 9 | 10 | namespace DuiLib 11 | { 12 | class UILIB_API CMediaPlayerUI :public CActiveXUI 13 | { 14 | public: 15 | CMediaPlayerUI( ); 16 | virtual ~CMediaPlayerUI( ); 17 | 18 | 19 | virtual LPCTSTR GetClass( ) const; 20 | virtual LPVOID GetInterface(LPCTSTR pstrName); 21 | virtual void SetAttribute(LPCTSTR pstrName, LPCTSTR pstrValue); 22 | 23 | virtual void SetVisible(bool bVisible = true); 24 | virtual void SetInnerVisible(bool bVisible = true); 25 | virtual bool DoCreateControl( ); 26 | virtual void ReleaseControl( ); 27 | 28 | virtual bool CreateControl(const CLSID clsid); 29 | virtual void SetDelayCreate(bool bDelayCreate); 30 | 31 | public: 32 | bool Play(LPCWSTR pszUrl); 33 | void SetVolume(long value); 34 | long GetVolume( ); 35 | protected: 36 | 37 | CDuiString m_strUrl; 38 | CComQIPtr wmp_; 39 | private: 40 | long m_volume; 41 | }; 42 | 43 | 44 | } 45 | 46 | 47 | #endif 48 | -------------------------------------------------------------------------------- /DuiLib/Control/UIOption.h: -------------------------------------------------------------------------------- 1 | #ifndef __UIOPTION_H__ 2 | #define __UIOPTION_H__ 3 | 4 | #pragma once 5 | 6 | namespace DuiLib 7 | { 8 | class UILIB_API COptionUI : public CButtonUI 9 | { 10 | public: 11 | COptionUI(); 12 | ~COptionUI(); 13 | 14 | LPCTSTR GetClass() const; 15 | LPVOID GetInterface(LPCTSTR pstrName); 16 | 17 | void SetManager(CPaintManagerUI* pManager, CControlUI* pParent, bool bInit = true); 18 | 19 | bool Activate(); 20 | void SetEnabled(bool bEnable = true); 21 | 22 | LPCTSTR GetSelectedImage(); 23 | void SetSelectedImage(LPCTSTR pStrImage); 24 | 25 | LPCTSTR GetSelectedHotImage(); 26 | void SetSelectedHotImage(LPCTSTR pStrImage); 27 | 28 | void SetSelectedTextColor(DWORD dwTextColor); 29 | DWORD GetSelectedTextColor(); 30 | 31 | LPCTSTR GetSelectedPushedImage(); 32 | void SetSelectedPushedImage(LPCTSTR pStrImage); 33 | 34 | void SetSelectedBkColor(DWORD dwBkColor); 35 | DWORD GetSelectBkColor(); 36 | 37 | LPCTSTR GetForeImage(); 38 | void SetForeImage(LPCTSTR pStrImage); 39 | 40 | LPCTSTR GetGroup() const; 41 | void SetGroup(LPCTSTR pStrGroupName = NULL); 42 | bool IsSelected() const; 43 | virtual void Selected(bool bSelected); 44 | 45 | SIZE EstimateSize(SIZE szAvailable); 46 | void SetAttribute(LPCTSTR pstrName, LPCTSTR pstrValue); 47 | 48 | void PaintStatusImage(HDC hDC); 49 | void PaintText(HDC hDC); 50 | 51 | protected: 52 | bool m_bSelected; 53 | CDuiString m_sGroupName; 54 | 55 | DWORD m_dwSelectedBkColor; 56 | DWORD m_dwSelectedTextColor; 57 | 58 | CDuiString m_sSelectedImage; 59 | CDuiString m_sSelectedHotImage; 60 | CDuiString m_sSelectedPushedImage; 61 | CDuiString m_sForeImage; 62 | }; 63 | 64 | } // namespace DuiLib 65 | 66 | #endif // __UIOPTION_H__ -------------------------------------------------------------------------------- /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.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/DuiLib/Control/UIRichEdit.h -------------------------------------------------------------------------------- /DuiLib/Control/UISlider.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/DuiLib/Control/UISlider.cpp -------------------------------------------------------------------------------- /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 | void SetValue(int nValue); 35 | void SetSendMoveNotify(bool bCanSend); 36 | bool GetSendMoveNotify() const; 37 | protected: 38 | SIZE m_szThumb; 39 | UINT m_uButtonState; 40 | int m_nStep; 41 | 42 | CDuiString m_sThumbImage; 43 | CDuiString m_sThumbHotImage; 44 | CDuiString m_sThumbPushedImage; 45 | 46 | CDuiString m_sImageModify; 47 | bool m_bSendMoveNotify; 48 | }; 49 | } 50 | 51 | #endif // __UISLIDER_H__ -------------------------------------------------------------------------------- /DuiLib/Control/UIText.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/DuiLib/Control/UIText.cpp -------------------------------------------------------------------------------- /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/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/DuiLib/Control/UITreeView.cpp -------------------------------------------------------------------------------- /DuiLib/Control/UIWebBrowser.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/DuiLib/Control/UIWebBrowser.cpp -------------------------------------------------------------------------------- /DuiLib/Control/UIWebBrowser.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/DuiLib/Control/UIWebBrowser.h -------------------------------------------------------------------------------- /DuiLib/Core/UIBase.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/DuiLib/Core/UIBase.cpp -------------------------------------------------------------------------------- /DuiLib/Core/UIBase.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/DuiLib/Core/UIBase.h -------------------------------------------------------------------------------- /DuiLib/Core/UIContainer - 副本.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/DuiLib/Core/UIContainer - 副本.cpp -------------------------------------------------------------------------------- /DuiLib/Core/UIContainer - 副本.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/DuiLib/Core/UIContainer - 副本.h -------------------------------------------------------------------------------- /DuiLib/Core/UIContainer.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/DuiLib/Core/UIContainer.cpp -------------------------------------------------------------------------------- /DuiLib/Core/UIContainer.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/DuiLib/Core/UIContainer.h -------------------------------------------------------------------------------- /DuiLib/Core/UIControl.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/DuiLib/Core/UIControl.cpp -------------------------------------------------------------------------------- /DuiLib/Core/UIControl.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/DuiLib/Core/UIControl.h -------------------------------------------------------------------------------- /DuiLib/Core/UIDefine.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/DuiLib/Core/UIDefine.h -------------------------------------------------------------------------------- /DuiLib/Core/UIDlgBuilder.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/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/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/DuiLib/Core/UIManager.cpp -------------------------------------------------------------------------------- /DuiLib/Core/UIManager.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/DuiLib/Core/UIManager.h -------------------------------------------------------------------------------- /DuiLib/Core/UIMarkup.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/DuiLib/Core/UIMarkup.cpp -------------------------------------------------------------------------------- /DuiLib/Core/UIRender.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/DuiLib/Core/UIRender.cpp -------------------------------------------------------------------------------- /DuiLib/Core/UIRender.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/DuiLib/Core/UIRender.h -------------------------------------------------------------------------------- /DuiLib/Ex/ShadowWindow.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/DuiLib/Ex/ShadowWindow.h -------------------------------------------------------------------------------- /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 | LPCTSTR CChildLayoutUI::GetClass() const 12 | { 13 | return _T("ChildLayoutUI"); 14 | } 15 | 16 | LPVOID CChildLayoutUI::GetInterface( LPCTSTR pstrName ) 17 | { 18 | if( _tcscmp(pstrName, DUI_CTR_CHILDLAYOUT) == 0 ) return static_cast(this); 19 | return CControlUI::GetInterface(pstrName); 20 | } 21 | 22 | void CChildLayoutUI::Init() 23 | { 24 | if (!m_pstrXMLFile.IsEmpty()) 25 | { 26 | CDialogBuilder builder; 27 | CContainerUI* pChildWindow = dynamic_cast(builder.Create(m_pstrXMLFile.GetData(), (UINT)0, NULL, m_pManager)); 28 | if (pChildWindow) 29 | { 30 | this->Add(pChildWindow); 31 | } 32 | else 33 | { 34 | this->RemoveAll(); 35 | } 36 | } 37 | } 38 | 39 | void CChildLayoutUI::SetAttribute( LPCTSTR pstrName, LPCTSTR pstrValue ) 40 | { 41 | if( _tcscmp(pstrName, _T("xmlfile")) == 0 ) 42 | SetChildLayoutXML(pstrValue); 43 | else 44 | CContainerUI::SetAttribute(pstrName,pstrValue); 45 | } 46 | 47 | void CChildLayoutUI::SetChildLayoutXML( DuiLib::CDuiString pXML ) 48 | { 49 | m_pstrXMLFile=pXML; 50 | } 51 | 52 | DuiLib::CDuiString CChildLayoutUI::GetChildLayoutXML() 53 | { 54 | return m_pstrXMLFile; 55 | } 56 | 57 | } // namespace DuiLib 58 | -------------------------------------------------------------------------------- /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/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/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.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/DuiLib/Layout/UITabLayout.cpp -------------------------------------------------------------------------------- /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.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/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/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/DuiLib/StdAfx.h -------------------------------------------------------------------------------- /DuiLib/UIlib.cpp: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2010-2011, duilib develop team(www.duilib.com). 2 | // All rights reserved. 3 | // 4 | // Redistribution and use in source and binary forms, with or 5 | // without modification, are permitted provided that the 6 | // following conditions are met. 7 | // 8 | // Redistributions of source code must retain the above copyright 9 | // notice, this list of conditions and the following disclaimer. 10 | // 11 | // Redistributions in binary form must reproduce the above 12 | // copyright notice, this list of conditions and the following 13 | // disclaimer in the documentation and/or other materials 14 | // provided with the distribution. 15 | // 16 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND 17 | // CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, 18 | // INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 19 | // MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 20 | // DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 21 | // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 22 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 23 | // BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 24 | // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 25 | // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 26 | // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 27 | // NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 28 | // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | // 30 | // 31 | // DirectUI - UI Library 32 | // 33 | // Written by Bjarke Viksoe (bjarke@viksoe.dk) 34 | // Copyright (c) 2006-2007 Bjarke Viksoe. 35 | // 36 | // This code may be used in compiled form in any way you desire. These 37 | // source files may be redistributed by any means PROVIDING it is 38 | // not sold for profit without the authors written consent, and 39 | // providing that this notice and the authors name is included. 40 | // 41 | // This file is provided "as is" with no expressed or implied warranty. 42 | // The author accepts no liability if it causes any damage to you or your 43 | // computer whatsoever. It's free, so don't hassle me about it. 44 | // 45 | // Beware of bugs. 46 | // 47 | // 48 | 49 | 50 | #include "stdafx.h" 51 | #include "UIlib.h" 52 | 53 | 54 | BOOL APIENTRY DllMain(HANDLE hModule, DWORD dwReason, LPVOID /*lpReserved*/) 55 | { 56 | switch( dwReason ) { 57 | case DLL_PROCESS_ATTACH: 58 | case DLL_THREAD_ATTACH: 59 | case DLL_THREAD_DETACH: 60 | case DLL_PROCESS_DETACH: 61 | ::DisableThreadLibraryCalls((HMODULE)hModule); 62 | break; 63 | } 64 | return TRUE; 65 | } 66 | 67 | -------------------------------------------------------------------------------- /DuiLib/Utils/Flash11.tlb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/DuiLib/Utils/Flash11.tlb -------------------------------------------------------------------------------- /DuiLib/Utils/FlashEventHandler.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/DuiLib/Utils/FlashEventHandler.h -------------------------------------------------------------------------------- /DuiLib/Utils/UnCompression.h: -------------------------------------------------------------------------------- 1 | #ifndef DUILIB_CUNCOMPRESSION_H_ 2 | #define DUILIB_CUNCOMPRESSION_H_ 3 | 4 | #pragma once 5 | 6 | namespace DuiLib 7 | { 8 | 9 | class CUnCompression 10 | { 11 | public: 12 | virtual BOOL Open(const TCHAR *filepath) = 0; 13 | virtual BOOL Open(void *z, unsigned int len) = 0; 14 | virtual BOOL IsOpen( ) = 0; 15 | virtual BOOL Close( ) = 0; 16 | 17 | virtual BOOL Find(const TCHAR *name, int* index, DWORD64 *size) = 0; 18 | virtual BOOL Get(int index, void *dst, DWORD64 len) = 0; 19 | }; 20 | 21 | } 22 | #endif -------------------------------------------------------------------------------- /DuiLib/Utils/Utils.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/DuiLib/Utils/Utils.cpp -------------------------------------------------------------------------------- /DuiLib/Utils/Utils.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/DuiLib/Utils/Utils.h -------------------------------------------------------------------------------- /DuiLib/Utils/WebBrowserEventHandler.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/DuiLib/Utils/WebBrowserEventHandler.h -------------------------------------------------------------------------------- /DuiLib/Utils/WinImplBase.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/DuiLib/Utils/WinImplBase.cpp -------------------------------------------------------------------------------- /DuiLib/Utils/WinImplBase.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/DuiLib/Utils/WinImplBase.h -------------------------------------------------------------------------------- /DuiLib/Utils/Zip/XUnZip.cpp: -------------------------------------------------------------------------------- 1 | #include "StdAfx.h" 2 | #include "XUnZip.h" 3 | #include "XUnZipBase.h" 4 | 5 | 6 | BOOL CDUIUnZip::Open(const TCHAR *filepath) 7 | { 8 | 9 | if (filepath == NULL) 10 | { 11 | return FALSE; 12 | } 13 | 14 | TUnzip *pHandle = new TUnzip( ); 15 | ASSERT(pHandle != NULL); 16 | if (ZR_OK != pHandle->Open((void*)(filepath), 0, ZIP_FILENAME)) 17 | { 18 | delete pHandle; 19 | pHandle = NULL; 20 | return FALSE; 21 | } 22 | 23 | m_db = (HANDLE)pHandle; 24 | 25 | return TRUE; 26 | } 27 | 28 | BOOL CDUIUnZip::Open(void *z, unsigned int len) 29 | { 30 | TUnzip *pHandle = new TUnzip( ); 31 | ASSERT(pHandle != NULL); 32 | if (ZR_OK != pHandle->Open(z, len, ZIP_MEMORY)) 33 | { 34 | delete pHandle; 35 | pHandle = NULL; 36 | return FALSE; 37 | } 38 | m_db = (HANDLE)pHandle; 39 | 40 | return TRUE; 41 | } 42 | 43 | BOOL CDUIUnZip::IsOpen( ) 44 | { 45 | return m_db == NULL; 46 | } 47 | 48 | BOOL CDUIUnZip::Close( ) 49 | { 50 | if (m_db == NULL) 51 | return TRUE; 52 | 53 | TUnzip *pHandle = (TUnzip *)m_db; 54 | if (ZR_OK == pHandle->Close( )) 55 | { 56 | delete pHandle; 57 | pHandle = NULL; 58 | m_db = NULL; 59 | return TRUE; 60 | } 61 | 62 | return FALSE; 63 | } 64 | 65 | BOOL CDUIUnZip::Find(const TCHAR *name, int* index, DWORD64 *size) 66 | { 67 | ZIPENTRY ze; 68 | TUnzip *pHandle = (TUnzip *)m_db; 69 | ASSERT(pHandle != NULL); 70 | if (pHandle == NULL) 71 | { 72 | return FALSE; 73 | } 74 | if (ZR_OK == pHandle->Find(name, false, index, &ze)) 75 | { 76 | *size = ze.unc_size; 77 | return TRUE; 78 | } 79 | return FALSE; 80 | } 81 | 82 | BOOL CDUIUnZip::Get(int index, void *dst, DWORD64 len) 83 | { 84 | TUnzip *pHandle = (TUnzip *)m_db; 85 | ASSERT(pHandle != NULL); 86 | ZRESULT res = pHandle->Unzip(index, dst, len, ZIP_MEMORY); 87 | if (ZR_OK != res && ZR_MORE != res) 88 | { 89 | return FALSE; 90 | } 91 | return TRUE; 92 | } -------------------------------------------------------------------------------- /DuiLib/Utils/Zip/XUnZip.h: -------------------------------------------------------------------------------- 1 | #ifndef XUNZIP_HPP 2 | #define XUNZIP_HPP 3 | 4 | #include "..\UnCompression.h" 5 | 6 | class CDUIUnZip : public DuiLib::CUnCompression 7 | { 8 | public: 9 | CDUIUnZip() : m_db(NULL){} 10 | virtual BOOL Open(const TCHAR *filepath); 11 | virtual BOOL Open(void *z, unsigned int len); 12 | virtual BOOL IsOpen(); 13 | virtual BOOL Close(); 14 | 15 | virtual BOOL Find(const TCHAR *name, int* index, DWORD64 *size); 16 | virtual BOOL Get(int index, void *dst, DWORD64 len); 17 | private: 18 | HANDLE m_db; 19 | }; 20 | #endif -------------------------------------------------------------------------------- /HookFlash/EasyHook/EasyHook.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/HookFlash/EasyHook/EasyHook.dll -------------------------------------------------------------------------------- /HookFlash/EasyHook/EasyHook32.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/HookFlash/EasyHook/EasyHook32.dll -------------------------------------------------------------------------------- /HookFlash/EasyHook/EasyHook32.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/HookFlash/EasyHook/EasyHook32.lib -------------------------------------------------------------------------------- /HookFlash/EasyHook/EasyHook64.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/HookFlash/EasyHook/EasyHook64.dll -------------------------------------------------------------------------------- /HookFlash/EasyHook/EasyHook64.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/HookFlash/EasyHook/EasyHook64.lib -------------------------------------------------------------------------------- /HookFlash/EasyHook/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2009 Christoph Husse & Copyright (c) 2012 Justin Stenning 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /HookFlash/EasyHook/README.md: -------------------------------------------------------------------------------- 1 | # Welcome to EasyHook - The reinvention of Windows API Hooking 2 | 3 | [![Join the chat at https://gitter.im/EasyHook/EasyHook](https://badges.gitter.im/EasyHook/EasyHook.svg)](https://gitter.im/EasyHook/EasyHook?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) 4 | 5 | This project supports extending (hooking) unmanaged code (APIs) with pure managed ones, from within a fully managed environment on 32- or 64-bit Windows XP SP2, Windows Vista x64, Windows Server 2008 x64, Windows 7, Windows 8.1, and Windows 10. 6 | 7 | EasyHook currently supports injecting assemblies built for .NET Framework 3.5 and 4.0 and can also inject native DLLs. 8 | 9 | ## EasyHook homepage 10 | 11 | For more information head to the EasyHook site at https://easyhook.github.io 12 | 13 | ## NuGet 14 | https://www.nuget.org/packages/EasyHook 15 | 16 | For native C++ apps there is also a native NuGet package available: https://www.nuget.org/packages/EasyHookNativePackage 17 | 18 | ## Bug reports or questions 19 | Reporting bugs is the only way to get them fixed and help other users of the library! 20 | 21 | Report issues at: https://github.com/EasyHook/EasyHook/issues 22 | 23 | ## License 24 | Copyright (c) 2009 Christoph Husse & Copyright (c) 2012 Justin Stenning 25 | 26 | Permission is hereby granted, free of charge, to any person obtaining a copy 27 | of this software and associated documentation files (the "Software"), to deal 28 | in the Software without restriction, including without limitation the rights 29 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 30 | copies of the Software, and to permit persons to whom the Software is 31 | furnished to do so, subject to the following conditions: 32 | 33 | The above copyright notice and this permission notice shall be included in 34 | all copies or substantial portions of the Software. 35 | 36 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 37 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 38 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 39 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 40 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 41 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 42 | THE SOFTWARE. 43 | 44 | ## External libraries 45 | EasyHook includes the UDIS86 library Copyright (c) 2002-2012, Vivek Thampi . See .\DriverShared\Disassembler\udis86-LICENSE.txt for license details. Minor modifications have been made for it to compile with EasyHook. 46 | 47 | More information about UDIS86 can be found at https://github.com/vmt/udis86 48 | -------------------------------------------------------------------------------- /HookFlash/HookFlash.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/HookFlash/HookFlash.cpp -------------------------------------------------------------------------------- /HookFlash/HookFlash.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "stdafx.h" 3 | 4 | void DoHook(); 5 | 6 | void UnHook(); -------------------------------------------------------------------------------- /HookFlash/HookFlash.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 头文件 23 | 24 | 25 | 头文件 26 | 27 | 28 | 头文件 29 | 30 | 31 | 32 | 33 | 源文件 34 | 35 | 36 | 源文件 37 | 38 | 39 | 源文件 40 | 41 | 42 | -------------------------------------------------------------------------------- /HookFlash/HookFlash.vcxproj.user: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | -------------------------------------------------------------------------------- /HookFlash/ReadMe.txt: -------------------------------------------------------------------------------- 1 | ======================================================================== 2 | 动态链接库:HookFlash 项目概述 3 | ======================================================================== 4 | 5 | 应用程序向导已为您创建了此 HookFlash DLL。 6 | 7 | 本文件概要介绍组成 HookFlash 应用程序的每个文件的内容。 8 | 9 | 10 | HookFlash.vcxproj 11 | 这是使用应用程序向导生成的 VC++ 项目的主项目文件,其中包含生成该文件的 Visual C++ 的版本信息,以及有关使用应用程序向导选择的平台、配置和项目功能的信息。 12 | 13 | HookFlash.vcxproj.filters 14 | 这是使用“应用程序向导”生成的 VC++ 项目筛选器文件。它包含有关项目文件与筛选器之间的关联信息。在 IDE 中,通过这种关联,在特定节点下以分组形式显示具有相似扩展名的文件。例如,“.cpp”文件与“源文件”筛选器关联。 15 | 16 | HookFlash.cpp 17 | 这是主 DLL 源文件。 18 | 19 | 此 DLL 在创建时不导出任何符号。因此,生成时不会产生 .lib 文件。如果希望此项目成为其他某个项目的项目依赖项,则需要添加代码以从 DLL 导出某些符号,以便产生一个导出库,或者,也可以在项目“属性页”对话框中的“链接器”文件夹中,将“常规”属性页上的“忽略输入库”属性设置为“是”。 20 | 21 | ///////////////////////////////////////////////////////////////////////////// 22 | 其他标准文件: 23 | 24 | StdAfx.h, StdAfx.cpp 25 | 这些文件用于生成名为 HookFlash.pch 的预编译头 (PCH) 文件和名为 StdAfx.obj 的预编译类型文件。 26 | 27 | ///////////////////////////////////////////////////////////////////////////// 28 | 其他注释: 29 | 30 | 应用程序向导使用“TODO:”注释来指示应添加或自定义的源代码部分。 31 | 32 | ///////////////////////////////////////////////////////////////////////////// 33 | -------------------------------------------------------------------------------- /HookFlash/dllmain.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/HookFlash/dllmain.cpp -------------------------------------------------------------------------------- /HookFlash/stdafx.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/HookFlash/stdafx.cpp -------------------------------------------------------------------------------- /HookFlash/stdafx.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/HookFlash/stdafx.h -------------------------------------------------------------------------------- /HookFlash/targetver.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/HookFlash/targetver.h -------------------------------------------------------------------------------- /MiniDumper.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/MiniDumper.h -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # CEFWebkitBrowser 2 | Chromium Embedded Framework 3 是基于Google Chromium的Webbrowser控件。CEF支持一系列的编程语言(.net c++ c)和操作系统(windows,linux,os),能很容易地整合到已有的工程中。 3 | 4 | 5 | 项目是基于duilib和CEF3的简单浏览器,只有基本的框架没有实现复杂的功能,主要用于CEF的学习参考,使用vs2015编译。 6 | 7 | 8 | CEF用的是 https://cefbuilds.com/ 下载的编译好的版本,现在采用的是Branch 2704-Windows 32bit,下载后拷贝到CEF文件夹即可, 9 | 详看http://blog.csdn.net/x356982611/article/details/52174234 10 | 11 | 这个里面收集了一些CEF的文档和资料,可以参考学习 12 | https://github.com/fanfeilong/cefutil 13 | 14 | 编译好程序下载地址: http://download.csdn.net/detail/x356982611/9623253 15 | 16 | ![image](https://github.com/CodeBees/CEFWebkitBrowser/blob/master/show.png) 17 | -------------------------------------------------------------------------------- /ReadMe.txt: -------------------------------------------------------------------------------- 1 | ======================================================================== 2 | WIN32 应用程序:CEFWebkitBrowser 项目概述 3 | ======================================================================== 4 | 5 | 应用程序向导已为您创建了此 CEFWebkitBrowser 应用程序。 6 | 7 | 本文件概要介绍组成 CEFWebkitBrowser 应用程序的每个文件的内容。 8 | 9 | 10 | CEFWebkitBrowser.vcxproj 11 | 这是使用应用程序向导生成的 VC++ 项目的主项目文件,其中包含生成该文件的 Visual C++ 的版本信息,以及有关使用应用程序向导选择的平台、配置和项目功能的信息。 12 | 13 | CEFWebkitBrowser.vcxproj.filters 14 | 这是使用“应用程序向导”生成的 VC++ 项目筛选器文件。它包含有关项目文件与筛选器之间的关联信息。在 IDE 中,通过这种关联,在特定节点下以分组形式显示具有相似扩展名的文件。例如,“.cpp”文件与“源文件”筛选器关联。 15 | 16 | CEFWebkitBrowser.cpp 17 | 这是主应用程序源文件。 18 | 19 | ///////////////////////////////////////////////////////////////////////////// 20 | 应用程序向导创建了下列资源: 21 | 22 | CEFWebkitBrowser.rc 23 | 这是程序使用的所有 Microsoft Windows 资源的列表。它包括 RES 子目录中存储的图标、位图和光标。此文件可以直接在 Microsoft Visual C++ 中进行编辑。 24 | 25 | Resource.h 26 | 这是标准头文件,可用于定义新的资源 ID。Microsoft Visual C++ 将读取并更新此文件。 27 | 28 | CEFWebkitBrowser.ico 29 | 这是用作应用程序图标 (32x32) 的图标文件。此图标包括在主资源文件 CEFWebkitBrowser.rc 中。 30 | 31 | small.ico 32 | 这是一个图标文件,其中包含应用程序的图标的较小版本 (16x16)。此图标包括在主资源文件 CEFWebkitBrowser.rc 中。 33 | 34 | ///////////////////////////////////////////////////////////////////////////// 35 | 其他标准文件: 36 | 37 | StdAfx.h, StdAfx.cpp 38 | 这些文件用于生成名为 CEFWebkitBrowser.pch 的预编译头 (PCH) 文件和名为 StdAfx.obj 的预编译类型文件。 39 | 40 | ///////////////////////////////////////////////////////////////////////////// 41 | 其他注释: 42 | 43 | 应用程序向导使用“TODO:”注释来指示应添加或自定义的源代码部分。 44 | 45 | ///////////////////////////////////////////////////////////////////////////// 46 | -------------------------------------------------------------------------------- /Resource.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/Resource.h -------------------------------------------------------------------------------- /bin/EasyHook32.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/EasyHook32.dll -------------------------------------------------------------------------------- /bin/HookFlash.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/HookFlash.dll -------------------------------------------------------------------------------- /bin/Skin/CB_next -disable.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/Skin/CB_next -disable.png -------------------------------------------------------------------------------- /bin/Skin/CB_next.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/Skin/CB_next.png -------------------------------------------------------------------------------- /bin/Skin/CB_previews-disable.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/Skin/CB_previews-disable.png -------------------------------------------------------------------------------- /bin/Skin/CB_previews.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/Skin/CB_previews.png -------------------------------------------------------------------------------- /bin/Skin/Main-Tab.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/Skin/Main-Tab.png -------------------------------------------------------------------------------- /bin/Skin/Search-Tab.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/Skin/Search-Tab.png -------------------------------------------------------------------------------- /bin/Skin/URL-Tab.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/Skin/URL-Tab.png -------------------------------------------------------------------------------- /bin/Skin/home-push.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/Skin/home-push.png -------------------------------------------------------------------------------- /bin/Skin/home.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/Skin/home.png -------------------------------------------------------------------------------- /bin/Skin/newtab.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/Skin/newtab.png -------------------------------------------------------------------------------- /bin/Skin/newtab_h.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/Skin/newtab_h.png -------------------------------------------------------------------------------- /bin/Skin/newtab_p.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/Skin/newtab_p.png -------------------------------------------------------------------------------- /bin/Skin/next-push.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/Skin/next-push.png -------------------------------------------------------------------------------- /bin/Skin/previews-push.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/Skin/previews-push.png -------------------------------------------------------------------------------- /bin/Skin/refresh-push.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/Skin/refresh-push.png -------------------------------------------------------------------------------- /bin/Skin/refresh.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/Skin/refresh.png -------------------------------------------------------------------------------- /bin/Skin/tabbar_hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/Skin/tabbar_hover.png -------------------------------------------------------------------------------- /bin/Skin/tabbar_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/Skin/tabbar_normal.png -------------------------------------------------------------------------------- /bin/Skin/tabbar_pushed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/Skin/tabbar_pushed.png -------------------------------------------------------------------------------- /bin/Skin/title_close.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/Skin/title_close.png -------------------------------------------------------------------------------- /bin/Skin/title_max.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/Skin/title_max.png -------------------------------------------------------------------------------- /bin/Skin/title_min.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/Skin/title_min.png -------------------------------------------------------------------------------- /bin/Skin/title_restore.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/Skin/title_restore.png -------------------------------------------------------------------------------- /bin/cef.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/cef.pak -------------------------------------------------------------------------------- /bin/cef_100_percent.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/cef_100_percent.pak -------------------------------------------------------------------------------- /bin/cef_200_percent.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/cef_200_percent.pak -------------------------------------------------------------------------------- /bin/cef_extensions.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/cef_extensions.pak -------------------------------------------------------------------------------- /bin/d3dcompiler_43.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/d3dcompiler_43.dll -------------------------------------------------------------------------------- /bin/d3dcompiler_47.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/d3dcompiler_47.dll -------------------------------------------------------------------------------- /bin/devtools_resources.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/devtools_resources.pak -------------------------------------------------------------------------------- /bin/htmlexample/css/style.css: -------------------------------------------------------------------------------- 1 | html, body, div, ul { 2 | margin: 0; 3 | padding: 2; 4 | } 5 | 6 | body { 7 | color: #262626; 8 | 9 | 10 | } 11 | 12 | #content { 13 | width: 400px; 14 | margin: 40px auto 0 auto; 15 | padding: 0 60px 30px 60px; 16 | border: solid 0px #cbcbcb; 17 | 18 | -moz-box-shadow: 0px 0px 10px #cbcbcb; 19 | -webkit-box-shadow: 0px 0px 10px #cbcbcb; 20 | } 21 | 22 | h1 { 23 | margin: 30px 0 15px 0; 24 | font-size: 30px; 25 | font-weight: bold; 26 | font-family: Arial; 27 | } 28 | 29 | h1 span { 30 | font-size: 50%; 31 | letter-spacing: -0.05em; 32 | } 33 | 34 | hr { 35 | border: none; 36 | height: 1px; line-height: 1px; 37 | background: #E5E5E5; 38 | margin-bottom: 20px; 39 | padding: 0; 40 | } 41 | 42 | p { 43 | margin: 0; 44 | padding: 7px 0; 45 | } 46 | 47 | a { 48 | outline: none; 49 | } 50 | 51 | a img { 52 | border: none; 53 | 54 | } 55 | 56 | a img.last { 57 | margin-right: 0; 58 | } 59 | 60 | ul { 61 | margin-bottom: 24px; 62 | padding-left: 30px; 63 | } 64 | -------------------------------------------------------------------------------- /bin/htmlexample/css/tree.css: -------------------------------------------------------------------------------- 1 | .tree { 2 | font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; 3 | font-size: 11px; 4 | padding: 10px; 5 | white-space: nowrap; 6 | } 7 | .tree img { 8 | border: 0px; 9 | height: 18px; 10 | vertical-align: text-bottom; 11 | } 12 | .tree a { 13 | color: #000; 14 | text-decoration: none; 15 | } 16 | .tree a:hover { 17 | color: #345373; 18 | } -------------------------------------------------------------------------------- /bin/htmlexample/src/css/style.css: -------------------------------------------------------------------------------- 1 | html, body, div, ul { 2 | margin: 0; 3 | padding: 2; 4 | } 5 | 6 | body { 7 | color: #262626; 8 | 9 | 10 | } 11 | 12 | #content { 13 | width: 400px; 14 | margin: 40px auto 0 auto; 15 | padding: 0 60px 30px 60px; 16 | border: solid 0px #cbcbcb; 17 | 18 | -moz-box-shadow: 0px 0px 10px #cbcbcb; 19 | -webkit-box-shadow: 0px 0px 10px #cbcbcb; 20 | } 21 | 22 | h1 { 23 | margin: 30px 0 15px 0; 24 | font-size: 30px; 25 | font-weight: bold; 26 | font-family: Arial; 27 | } 28 | 29 | h1 span { 30 | font-size: 50%; 31 | letter-spacing: -0.05em; 32 | } 33 | 34 | hr { 35 | border: none; 36 | height: 1px; line-height: 1px; 37 | background: #E5E5E5; 38 | margin-bottom: 20px; 39 | padding: 0; 40 | } 41 | 42 | p { 43 | margin: 0; 44 | padding: 7px 0; 45 | } 46 | 47 | a { 48 | outline: none; 49 | } 50 | 51 | a img { 52 | border: none; 53 | 54 | } 55 | 56 | a img.last { 57 | margin-right: 0; 58 | } 59 | 60 | ul { 61 | margin-bottom: 24px; 62 | padding-left: 30px; 63 | } 64 | -------------------------------------------------------------------------------- /bin/htmlexample/src/css/tree.css: -------------------------------------------------------------------------------- 1 | .tree { 2 | font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; 3 | font-size: 11px; 4 | padding: 10px; 5 | white-space: nowrap; 6 | } 7 | .tree img { 8 | border: 0px; 9 | height: 18px; 10 | vertical-align: text-bottom; 11 | } 12 | .tree a { 13 | color: #000; 14 | text-decoration: none; 15 | } 16 | .tree a:hover { 17 | color: #345373; 18 | } -------------------------------------------------------------------------------- /bin/htmlexample/src/images/POS-1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/htmlexample/src/images/POS-1.jpg -------------------------------------------------------------------------------- /bin/htmlexample/src/images/POS-2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/htmlexample/src/images/POS-2.jpg -------------------------------------------------------------------------------- /bin/htmlexample/src/images/POS-3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/htmlexample/src/images/POS-3.jpg -------------------------------------------------------------------------------- /bin/htmlexample/src/images/POS-4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/htmlexample/src/images/POS-4.jpg -------------------------------------------------------------------------------- /bin/htmlexample/src/images/POS-5.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/htmlexample/src/images/POS-5.jpg -------------------------------------------------------------------------------- /bin/htmlexample/src/images/album-slider-arrow_box.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/htmlexample/src/images/album-slider-arrow_box.png -------------------------------------------------------------------------------- /bin/htmlexample/src/images/album-slider-button.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/htmlexample/src/images/album-slider-button.png -------------------------------------------------------------------------------- /bin/htmlexample/src/images/cover-.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/htmlexample/src/images/cover-.jpg -------------------------------------------------------------------------------- /bin/htmlexample/src/images/cover.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/htmlexample/src/images/cover.jpg -------------------------------------------------------------------------------- /bin/htmlexample/src/images/logo-.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/htmlexample/src/images/logo-.png -------------------------------------------------------------------------------- /bin/htmlexample/src/images/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/htmlexample/src/images/logo.png -------------------------------------------------------------------------------- /bin/htmlexample/src/js/common.js: -------------------------------------------------------------------------------- 1 | // JavaScript Document 2 | $(function(){ 3 | $('.main_menu li:eq(1)').live('mouseenter', function(){ 4 | $('#menu_list').show(); 5 | }); 6 | $('#menu_list').live('mouseleave', function(){ 7 | $('#menu_list').hide(); 8 | }); 9 | $('.main_menu li:eq(1)').live('mouseleave', function(){ 10 | $('#menu_list').hide(); 11 | }); 12 | 13 | $('.close').live('click',function(){ 14 | $('.main_menu').fadeOut(); 15 | $(this).removeClass("close").addClass("open"); 16 | }) 17 | $('.open').live('click',function(){ 18 | $('.main_menu').fadeIn(); 19 | $(this).removeClass("open").addClass("close"); 20 | }) 21 | 22 | }); 23 | //顶部导航 24 | 25 | $(document).ready(function(){ 26 | $(".img_show").each( function(i) 27 | { 28 | 29 | var currentPosition = 0; 30 | var slideHeight=110; 31 | var slides = $(this).find("li"); 32 | //alert(slides.length); 33 | var numberOfSlides = slides.length; 34 | 35 | // Wrap all .slides with #slideInner div 36 | slides 37 | .wrapAll('
') 38 | // Float left to display horizontally, readjust .slides width 39 | .css({ 40 | //'float' : 'left', 41 | 'height' : slideHeight 42 | }); 43 | 44 | // Insert controls in the DOM 45 | $(this).find('.slideshow') 46 | .prepend('') 47 | .append(''); 48 | // Hide left arrow control on first load 49 | manageControls(currentPosition,$(this)); 50 | 51 | // Create event listeners for .controls clicks 52 | $(this).find('.control') 53 | .bind('click', {tou: $(this)}, function(event){ 54 | //alert(currentPosition); 55 | // Determine new position 56 | 57 | currentPosition = ($(this).attr('class')=='rightControl btn_down control') ? currentPosition+1 : currentPosition-1; 58 | // Hide / show controls 59 | manageControls(currentPosition, event.data.tou); 60 | // Move slideInner using margin-left 61 | //alert( $(this).parent().find('.slideInner') ); 62 | event.data.tou.find('.slideInner').animate({ 63 | 'marginTop' : slideHeight*(-currentPosition) 64 | }); 65 | }); 66 | 67 | // manageControls: Hides and Shows controls depending on currentPosition 68 | function manageControls(position,lr){ 69 | // Hide left arrow if position is first slide 70 | if(position==0){ $(lr).find('.leftControl').hide() } else{ $(lr).find('.leftControl').show() } 71 | // Hide right arrow if position is last slide 72 | if(position==numberOfSlides-4){ $(lr).find('.rightControl').hide() } else{ $(lr).find('.rightControl').show() } 73 | } 74 | 75 | }); 76 | 77 | 78 | 79 | }); 80 | //图片轮番 -------------------------------------------------------------------------------- /bin/htmlexample/src/js/common52.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/htmlexample/src/js/common52.js -------------------------------------------------------------------------------- /bin/htmlexample/src/js/fancybox/blank.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/htmlexample/src/js/fancybox/blank.gif -------------------------------------------------------------------------------- /bin/htmlexample/src/js/fancybox/fancy_close.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/htmlexample/src/js/fancybox/fancy_close.png -------------------------------------------------------------------------------- /bin/htmlexample/src/js/fancybox/fancy_loading.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/htmlexample/src/js/fancybox/fancy_loading.png -------------------------------------------------------------------------------- /bin/htmlexample/src/js/fancybox/fancy_nav_left.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/htmlexample/src/js/fancybox/fancy_nav_left.png -------------------------------------------------------------------------------- /bin/htmlexample/src/js/fancybox/fancy_nav_right.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/htmlexample/src/js/fancybox/fancy_nav_right.png -------------------------------------------------------------------------------- /bin/htmlexample/src/js/fancybox/fancy_shadow_e.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/htmlexample/src/js/fancybox/fancy_shadow_e.png -------------------------------------------------------------------------------- /bin/htmlexample/src/js/fancybox/fancy_shadow_n.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/htmlexample/src/js/fancybox/fancy_shadow_n.png -------------------------------------------------------------------------------- /bin/htmlexample/src/js/fancybox/fancy_shadow_ne.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/htmlexample/src/js/fancybox/fancy_shadow_ne.png -------------------------------------------------------------------------------- /bin/htmlexample/src/js/fancybox/fancy_shadow_nw.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/htmlexample/src/js/fancybox/fancy_shadow_nw.png -------------------------------------------------------------------------------- /bin/htmlexample/src/js/fancybox/fancy_shadow_s.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/htmlexample/src/js/fancybox/fancy_shadow_s.png -------------------------------------------------------------------------------- /bin/htmlexample/src/js/fancybox/fancy_shadow_se.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/htmlexample/src/js/fancybox/fancy_shadow_se.png -------------------------------------------------------------------------------- /bin/htmlexample/src/js/fancybox/fancy_shadow_sw.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/htmlexample/src/js/fancybox/fancy_shadow_sw.png -------------------------------------------------------------------------------- /bin/htmlexample/src/js/fancybox/fancy_shadow_w.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/htmlexample/src/js/fancybox/fancy_shadow_w.png -------------------------------------------------------------------------------- /bin/htmlexample/src/js/fancybox/fancy_title_left.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/htmlexample/src/js/fancybox/fancy_title_left.png -------------------------------------------------------------------------------- /bin/htmlexample/src/js/fancybox/fancy_title_main.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/htmlexample/src/js/fancybox/fancy_title_main.png -------------------------------------------------------------------------------- /bin/htmlexample/src/js/fancybox/fancy_title_over.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/htmlexample/src/js/fancybox/fancy_title_over.png -------------------------------------------------------------------------------- /bin/htmlexample/src/js/fancybox/fancy_title_right.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/htmlexample/src/js/fancybox/fancy_title_right.png -------------------------------------------------------------------------------- /bin/htmlexample/src/js/fancybox/fancybox-x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/htmlexample/src/js/fancybox/fancybox-x.png -------------------------------------------------------------------------------- /bin/htmlexample/src/js/fancybox/fancybox-y.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/htmlexample/src/js/fancybox/fancybox-y.png -------------------------------------------------------------------------------- /bin/htmlexample/src/js/fancybox/fancybox.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/htmlexample/src/js/fancybox/fancybox.png -------------------------------------------------------------------------------- /bin/htmlexample/src/js/fancybox/jquery.mousewheel-3.0.4.pack.js: -------------------------------------------------------------------------------- 1 | /*! Copyright (c) 2010 Brandon Aaron (http://brandonaaron.net) 2 | * Licensed under the MIT License (LICENSE.txt). 3 | * 4 | * Thanks to: http://adomas.org/javascript-mouse-wheel/ for some pointers. 5 | * Thanks to: Mathias Bank(http://www.mathias-bank.de) for a scope bug fix. 6 | * Thanks to: Seamus Leahy for adding deltaX and deltaY 7 | * 8 | * Version: 3.0.4 9 | * 10 | * Requires: 1.2.2+ 11 | */ 12 | 13 | (function(d){function g(a){var b=a||window.event,i=[].slice.call(arguments,1),c=0,h=0,e=0;a=d.event.fix(b);a.type="mousewheel";if(a.wheelDelta)c=a.wheelDelta/120;if(a.detail)c=-a.detail/3;e=c;if(b.axis!==undefined&&b.axis===b.HORIZONTAL_AXIS){e=0;h=-1*c}if(b.wheelDeltaY!==undefined)e=b.wheelDeltaY/120;if(b.wheelDeltaX!==undefined)h=-1*b.wheelDeltaX/120;i.unshift(a,c,h,e);return d.event.handle.apply(this,i)}var f=["DOMMouseScroll","mousewheel"];d.event.special.mousewheel={setup:function(){if(this.addEventListener)for(var a= 14 | f.length;a;)this.addEventListener(f[--a],g,false);else this.onmousewheel=g},teardown:function(){if(this.removeEventListener)for(var a=f.length;a;)this.removeEventListener(f[--a],g,false);else this.onmousewheel=null}};d.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}})})(jQuery); -------------------------------------------------------------------------------- /bin/htmlexample/src/js/jquery.albumSlider.min.js: -------------------------------------------------------------------------------- 1 | (function($){$.fn.albumSlider=function(j){return this.each(function(){var b=$.extend({step:2,imgContainer:'div.fullview',listContainer:'ul.imglist',event:'mouseover',direction:'v'},j||{});var c=$(b.imgContainer,this),$list=$(b.listContainer,this),currId=0,currPage=0,size=$list.children().length-1,pageSize=Math.floor(size/b.step);var f=b.direction=='v';var g=f?'top':'left';var h=(size>=b.step)?$('li',$list).eq(b.step).offset()[g]-$('li',$list).eq(0).offset()[g]:0;var i=function(){var a=$(this);if(a.is('.current')){return false}$('img',c).fadeOut(800,function(){$(this).remove()});$('').hide().attr('src',$('a',a).attr('href')).appendTo(c).fadeIn(800);a.addClass('current').siblings().removeClass('current');return false};$.proxy(i,$('li',$list).eq(0))();$list.delegate('li',b.event,$.proxy(i)).bind('moveforward movebackward',function(e){var a=e.type=='moveforward';if(a){currId+=b.step;if(currId>size){currId=size}if(++currPage>pageSize){currPage=pageSize;return false}}else{currId-=b.step;if(currId<0){currId=0}if(--currPage<0){currPage=0;return false}};var d=(a?'-=':'+=')+h;$(this).stop(true,true).animate(f?{top:d}:{left:d},500,function(){$.proxy(i,$('li',$list).eq(currId))()})});$('div.button',this).click(function(){$list.trigger($(this).is('.moveforward')?'moveforward':'movebackward')})})}})(jQuery); -------------------------------------------------------------------------------- /bin/htmlexample/src/js/scrolltop.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/htmlexample/src/js/scrolltop.js -------------------------------------------------------------------------------- /bin/htmlexample/src/js/tree/img/base.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/htmlexample/src/js/tree/img/base.gif -------------------------------------------------------------------------------- /bin/htmlexample/src/js/tree/img/cd.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/htmlexample/src/js/tree/img/cd.gif -------------------------------------------------------------------------------- /bin/htmlexample/src/js/tree/img/empty.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/htmlexample/src/js/tree/img/empty.gif -------------------------------------------------------------------------------- /bin/htmlexample/src/js/tree/img/folder.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/htmlexample/src/js/tree/img/folder.gif -------------------------------------------------------------------------------- /bin/htmlexample/src/js/tree/img/folderopen.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/htmlexample/src/js/tree/img/folderopen.gif -------------------------------------------------------------------------------- /bin/htmlexample/src/js/tree/img/globe.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/htmlexample/src/js/tree/img/globe.gif -------------------------------------------------------------------------------- /bin/htmlexample/src/js/tree/img/imgfolder.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/htmlexample/src/js/tree/img/imgfolder.gif -------------------------------------------------------------------------------- /bin/htmlexample/src/js/tree/img/join.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/htmlexample/src/js/tree/img/join.gif -------------------------------------------------------------------------------- /bin/htmlexample/src/js/tree/img/joinbottom.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/htmlexample/src/js/tree/img/joinbottom.gif -------------------------------------------------------------------------------- /bin/htmlexample/src/js/tree/img/line.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/htmlexample/src/js/tree/img/line.gif -------------------------------------------------------------------------------- /bin/htmlexample/src/js/tree/img/minus.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/htmlexample/src/js/tree/img/minus.gif -------------------------------------------------------------------------------- /bin/htmlexample/src/js/tree/img/minusbottom.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/htmlexample/src/js/tree/img/minusbottom.gif -------------------------------------------------------------------------------- /bin/htmlexample/src/js/tree/img/musicfolder.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/htmlexample/src/js/tree/img/musicfolder.gif -------------------------------------------------------------------------------- /bin/htmlexample/src/js/tree/img/nolines_minus.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/htmlexample/src/js/tree/img/nolines_minus.gif -------------------------------------------------------------------------------- /bin/htmlexample/src/js/tree/img/nolines_plus.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/htmlexample/src/js/tree/img/nolines_plus.gif -------------------------------------------------------------------------------- /bin/htmlexample/src/js/tree/img/page.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/htmlexample/src/js/tree/img/page.gif -------------------------------------------------------------------------------- /bin/htmlexample/src/js/tree/img/page1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/htmlexample/src/js/tree/img/page1.gif -------------------------------------------------------------------------------- /bin/htmlexample/src/js/tree/img/plus.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/htmlexample/src/js/tree/img/plus.gif -------------------------------------------------------------------------------- /bin/htmlexample/src/js/tree/img/plusbottom.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/htmlexample/src/js/tree/img/plusbottom.gif -------------------------------------------------------------------------------- /bin/htmlexample/src/js/tree/img/question.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/htmlexample/src/js/tree/img/question.gif -------------------------------------------------------------------------------- /bin/htmlexample/src/js/tree/img/trash.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/htmlexample/src/js/tree/img/trash.gif -------------------------------------------------------------------------------- /bin/htmlexample/src/js/tree/tree.css: -------------------------------------------------------------------------------- 1 | .tree { 2 | font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; 3 | font-size: 11px; 4 | padding: 10px; 5 | white-space: nowrap; 6 | } 7 | .tree img { 8 | border: 0px; 9 | height: 18px; 10 | vertical-align: text-bottom; 11 | } 12 | .tree a { 13 | color: #000; 14 | text-decoration: none; 15 | } 16 | .tree a:hover { 17 | color: #345373; 18 | } -------------------------------------------------------------------------------- /bin/htmlexample/src/js/tree/tree.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/htmlexample/src/js/tree/tree.js -------------------------------------------------------------------------------- /bin/icudtl.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/icudtl.dat -------------------------------------------------------------------------------- /bin/libEGL.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/libEGL.dll -------------------------------------------------------------------------------- /bin/libGLESv2.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/libGLESv2.dll -------------------------------------------------------------------------------- /bin/libcef.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/libcef.dll -------------------------------------------------------------------------------- /bin/locales/am.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/locales/am.pak -------------------------------------------------------------------------------- /bin/locales/ar.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/locales/ar.pak -------------------------------------------------------------------------------- /bin/locales/bg.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/locales/bg.pak -------------------------------------------------------------------------------- /bin/locales/bn.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/locales/bn.pak -------------------------------------------------------------------------------- /bin/locales/ca.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/locales/ca.pak -------------------------------------------------------------------------------- /bin/locales/cs.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/locales/cs.pak -------------------------------------------------------------------------------- /bin/locales/da.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/locales/da.pak -------------------------------------------------------------------------------- /bin/locales/de.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/locales/de.pak -------------------------------------------------------------------------------- /bin/locales/el.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/locales/el.pak -------------------------------------------------------------------------------- /bin/locales/en-GB.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/locales/en-GB.pak -------------------------------------------------------------------------------- /bin/locales/en-US.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/locales/en-US.pak -------------------------------------------------------------------------------- /bin/locales/es-419.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/locales/es-419.pak -------------------------------------------------------------------------------- /bin/locales/es.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/locales/es.pak -------------------------------------------------------------------------------- /bin/locales/et.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/locales/et.pak -------------------------------------------------------------------------------- /bin/locales/fa.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/locales/fa.pak -------------------------------------------------------------------------------- /bin/locales/fi.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/locales/fi.pak -------------------------------------------------------------------------------- /bin/locales/fil.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/locales/fil.pak -------------------------------------------------------------------------------- /bin/locales/fr.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/locales/fr.pak -------------------------------------------------------------------------------- /bin/locales/gu.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/locales/gu.pak -------------------------------------------------------------------------------- /bin/locales/he.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/locales/he.pak -------------------------------------------------------------------------------- /bin/locales/hi.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/locales/hi.pak -------------------------------------------------------------------------------- /bin/locales/hr.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/locales/hr.pak -------------------------------------------------------------------------------- /bin/locales/hu.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/locales/hu.pak -------------------------------------------------------------------------------- /bin/locales/id.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/locales/id.pak -------------------------------------------------------------------------------- /bin/locales/it.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/locales/it.pak -------------------------------------------------------------------------------- /bin/locales/ja.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/locales/ja.pak -------------------------------------------------------------------------------- /bin/locales/kn.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/locales/kn.pak -------------------------------------------------------------------------------- /bin/locales/ko.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/locales/ko.pak -------------------------------------------------------------------------------- /bin/locales/lt.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/locales/lt.pak -------------------------------------------------------------------------------- /bin/locales/lv.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/locales/lv.pak -------------------------------------------------------------------------------- /bin/locales/ml.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/locales/ml.pak -------------------------------------------------------------------------------- /bin/locales/mr.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/locales/mr.pak -------------------------------------------------------------------------------- /bin/locales/ms.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/locales/ms.pak -------------------------------------------------------------------------------- /bin/locales/nb.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/locales/nb.pak -------------------------------------------------------------------------------- /bin/locales/nl.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/locales/nl.pak -------------------------------------------------------------------------------- /bin/locales/pl.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/locales/pl.pak -------------------------------------------------------------------------------- /bin/locales/pt-BR.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/locales/pt-BR.pak -------------------------------------------------------------------------------- /bin/locales/pt-PT.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/locales/pt-PT.pak -------------------------------------------------------------------------------- /bin/locales/ro.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/locales/ro.pak -------------------------------------------------------------------------------- /bin/locales/ru.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/locales/ru.pak -------------------------------------------------------------------------------- /bin/locales/sk.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/locales/sk.pak -------------------------------------------------------------------------------- /bin/locales/sl.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/locales/sl.pak -------------------------------------------------------------------------------- /bin/locales/sr.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/locales/sr.pak -------------------------------------------------------------------------------- /bin/locales/sv.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/locales/sv.pak -------------------------------------------------------------------------------- /bin/locales/sw.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/locales/sw.pak -------------------------------------------------------------------------------- /bin/locales/ta.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/locales/ta.pak -------------------------------------------------------------------------------- /bin/locales/te.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/locales/te.pak -------------------------------------------------------------------------------- /bin/locales/th.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/locales/th.pak -------------------------------------------------------------------------------- /bin/locales/tr.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/locales/tr.pak -------------------------------------------------------------------------------- /bin/locales/uk.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/locales/uk.pak -------------------------------------------------------------------------------- /bin/locales/vi.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/locales/vi.pak -------------------------------------------------------------------------------- /bin/locales/zh-CN.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/locales/zh-CN.pak -------------------------------------------------------------------------------- /bin/locales/zh-TW.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/locales/zh-TW.pak -------------------------------------------------------------------------------- /bin/natives_blob.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/natives_blob.bin -------------------------------------------------------------------------------- /bin/ppflash/18_0_0_209/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "description": "Pepper Flash Player", 3 | "name": "Flapper", 4 | "version": "18.0.0.209", 5 | "x-flapper-revision": "23752", 6 | "x-ppapi-arch": "ia32", 7 | "x-ppapi-os": "win", 8 | "x-ppapi-required-interfaces": [ 9 | "PPB_AudioConfig;1.1|PPB_AudioConfig;1.0", 10 | "PPB_AudioInput(Dev);0.4|PPB_AudioInput(Dev);0.3", 11 | "PPB_Audio;1.0", 12 | "PPB_BrowserFont_Trusted;1.0", 13 | "PPB_Buffer(Dev);0.4", 14 | "PPB_CharSet(Dev);0.4", 15 | "PPB_Core;1.0", 16 | "PPB_Crypto(Dev);0.1", 17 | "PPB_CursorControl(Dev);0.4", 18 | "PPB_FileChooser(Dev);0.6|PPB_FileChooser(Dev);0.5", 19 | "PPB_FileChooserTrusted;0.6|PPB_FileChooserTrusted;0.5", 20 | "PPB_FileRef;1.0", 21 | "PPB_Flash_Clipboard;5.0|PPB_Flash_Clipboard;4.0", 22 | "PPB_Flash_File_FileRef;2", 23 | "PPB_Flash_File_ModuleLocal;3", 24 | "PPB_Flash_FontFile;0.1|PPB_PDF;1", 25 | "PPB_FlashFullscreen;1.0|PPB_FlashFullscreen;0.1", 26 | "PPB_Flash;13.0|PPB_Flash;12.6|PPB_Flash;12.5|PPB_Flash;12.4", 27 | "PPB_Flash_Menu;0.2", 28 | "PPB_Graphics2D;1.0", 29 | "PPB_Graphics3D;1.0", 30 | "PPB_ImageData;1.0", 31 | "PPB_IMEInputEvent(Dev);0.2|PPB_IMEInputEvent(Dev);0.1", 32 | "PPB_InputEvent;1.0", 33 | "PPB_Instance;1.0", 34 | "PPB_Memory(Dev);0.1", 35 | "PPB_NetAddress_Private;1.1|PPB_NetAddress_Private;1.0|PPB_NetAddress_Private;0.1", 36 | "PPB_OpenGLES2ChromiumMapSub;1.0|PPB_OpenGLES2ChromiumMapSub(Dev);1.0|PPB_GLESChromiumTextureMapping(Dev);0.1", 37 | "PPB_OpenGLES2;1.0", 38 | "PPB_TCPSocket_Private;0.4|PPB_TCPSocket_Private;0.3", 39 | "PPB_TextInput(Dev);0.2|PPB_TextInput(Dev);0.1", 40 | "PPB_UDPSocket_Private;0.4|PPB_UDPSocket_Private;0.3", 41 | "PPB_URLLoader;1.0", 42 | "PPB_URLLoaderTrusted;0.3", 43 | "PPB_URLRequestInfo;1.0", 44 | "PPB_URLResponseInfo;1.0", 45 | "PPB_URLUtil(Dev);0.7|PPB_URLUtil(Dev);0.6", 46 | "PPB_Var;1.1|PPB_Var;1.0", 47 | "PPB_VideoCapture(Dev);0.3", 48 | "PPB_View;1.0" 49 | ] 50 | } 51 | -------------------------------------------------------------------------------- /bin/ppflash/18_0_0_209/pepflashplayer32_18_0_0_209.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/ppflash/18_0_0_209/pepflashplayer32_18_0_0_209.dll -------------------------------------------------------------------------------- /bin/snapshot_blob.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/snapshot_blob.bin -------------------------------------------------------------------------------- /bin/widevinecdmadapter.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/widevinecdmadapter.dll -------------------------------------------------------------------------------- /bin/浏览器测试.rar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/浏览器测试.rar -------------------------------------------------------------------------------- /bin/浏览器离线测试.rar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/bin/浏览器离线测试.rar -------------------------------------------------------------------------------- /chromium命令行参数.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/chromium命令行参数.docx -------------------------------------------------------------------------------- /clientapp.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/clientapp.cc -------------------------------------------------------------------------------- /clientapp.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "stdafx.h" 4 | #include "CEFV8HandlerEx.h" 5 | 6 | class CCefClientApp : public CefApp, public CefBrowserProcessHandler, CefRenderProcessHandler 7 | { 8 | public: 9 | CCefClientApp(); 10 | ~CCefClientApp(); 11 | 12 | 13 | virtual CefRefPtr GetRenderProcessHandler() { 14 | return this; 15 | } 16 | 17 | // CefApp methods: 18 | virtual CefRefPtr GetBrowserProcessHandler() override; 19 | virtual void OnBeforeCommandLineProcessing(const CefString& process_type, CefRefPtr command_line) override; 20 | 21 | 22 | // CefBrowserProcessHandler methods: 23 | virtual void OnContextInitialized() override; 24 | //CefRenderProcessHandler methods 25 | 26 | // virtual CefRefPtr GetRenderProcessHandler() override; 27 | 28 | virtual void OnWebKitInitialized() override; 29 | virtual void OnContextCreated(CefRefPtr browser, CefRefPtr frame, CefRefPtr context) override; 30 | virtual void OnContextReleased(CefRefPtr browser, CefRefPtr frame, CefRefPtr context) override; 31 | 32 | 33 | private: 34 | CefRefPtr v8Handler_; 35 | // Include the default reference counting implementation. 36 | IMPLEMENT_REFCOUNTING(CCefClientApp); 37 | 38 | private: 39 | 40 | }; 41 | 42 | 43 | class MyV8Accessor : public CefV8Accessor { 44 | public: 45 | MyV8Accessor() {} 46 | 47 | virtual bool Get(const CefString& name, 48 | const CefRefPtr object, 49 | CefRefPtr& retval, 50 | CefString& exception) OVERRIDE { 51 | if (name == "myval") { 52 | // Return the value. 53 | retval = CefV8Value::CreateString(myval_); 54 | return true; 55 | } 56 | 57 | // Value does not exist. 58 | return false; 59 | } 60 | 61 | virtual bool Set(const CefString& name,const CefRefPtr object,const CefRefPtr value,CefString& exception) override { 62 | if (name == "myval") { 63 | if (value->IsString()) { 64 | // Store the value. 65 | myval_ = value->GetStringValue(); 66 | } 67 | else { 68 | // Throw an exception. 69 | exception = "Invalid value type"; 70 | } 71 | return true; 72 | } 73 | 74 | // Value does not exist. 75 | return false; 76 | } 77 | 78 | // Variable used for storing the value. 79 | CefString myval_; 80 | 81 | // Provide the reference counting implementation for this class. 82 | IMPLEMENT_REFCOUNTING(MyV8Accessor); 83 | }; -------------------------------------------------------------------------------- /show.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/show.png -------------------------------------------------------------------------------- /small.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/small.ico -------------------------------------------------------------------------------- /stdafx.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/stdafx.cpp -------------------------------------------------------------------------------- /stdafx.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/stdafx.h -------------------------------------------------------------------------------- /targetver.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeBees/CEFWebkitBrowser/909a7f3532c84bb73dad7c467fdf9e5c5a793afe/targetver.h --------------------------------------------------------------------------------