Skip to content

Commit

Permalink
Update core to support customization of CEF helper process (CEFVIEW_W…
Browse files Browse the repository at this point in the history
…ING_NAME)
  • Loading branch information
tishion committed Nov 23, 2023
1 parent e2c901a commit ba58bed
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 13 deletions.
2 changes: 1 addition & 1 deletion CefViewCore
18 changes: 9 additions & 9 deletions include/QCefView.h
Original file line number Diff line number Diff line change
Expand Up @@ -398,15 +398,15 @@ class QCEFVIEW_EXPORT QCefView : public QWidget

protected:
/// <summary>
///
/// Gets called before a new browser created (only for browser created by non-JavaScript)
/// </summary>
/// <param name="sourceFrameId"></param>
/// <param name="url"></param>
/// <param name="name"></param>
/// <param name="targetDisposition"></param>
/// <param name="rect"></param>
/// <param name="settings"></param>
/// <param name="disableJavascriptAccess"></param>
/// <param name="frameId">The source frame id</param>
/// <param name="url">The target URL</param>
/// <param name="name">The target name</param>
/// <param name="targetDisposition">Target window open method</param>
/// <param name="rect">Rect to be used for the popup</param>
/// <param name="settings">Settings to be used for the popup</param>
/// <returns>True to cancel the popup; false to allow</returns>
/// <returns></returns>
virtual QCefView* onNewBrowser(qint64 sourceFrameId,
const QString& url,
Expand All @@ -416,7 +416,7 @@ class QCEFVIEW_EXPORT QCefView : public QWidget
QCefSetting& settings);

/// <summary>
/// Gets called before the popup browser created
/// Gets called before the popup browser created (only for browser created by JavaScript)
/// </summary>
/// <param name="frameId">The source frame id</param>
/// <param name="targetUrl">The target URL</param>
Expand Down
2 changes: 1 addition & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ if(OS_WINDOWS)
# copy binary files of CefViewCore
COMMAND ${CMAKE_COMMAND}
-E copy_directory
"$<TARGET_FILE_DIR:CefViewWing>"
"$<TARGET_FILE_DIR:${CEFVIEW_WING_NAME}>"
"$<TARGET_FILE_DIR:QCefView>"

# gnerate a file contains timestamp
Expand Down
1 change: 1 addition & 0 deletions src/details/QCefConfigPrivate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#pragma endregion qt_headers

#include <CefViewCoreProtocol.h>
#include <CefViewWingProcessName.h>

QCefConfigPrivate::QCefConfigPrivate()
{
Expand Down
7 changes: 5 additions & 2 deletions src/mac/details/QCefContextPrivate_mac.mm
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,15 @@
#include <include/wrapper/cef_library_loader.h>
#pragma endregion cef_headers

#include <CefViewCoreProtocol.h>
#include <CefViewWingProcessName.h>

#include "../../details/QCefConfigPrivate.h"

#define CEF_BINARY_NAME "Chromium Embedded Framework"
#define CEF_FRAMEWORK_NAME "Chromium Embedded Framework.framework"
#define HELPER_BUNDLE_NAME "CefViewWing.app"
#define HELPER_BINARY_NAME "CefViewWing"
#define HELPER_BINARY_NAME kCefViewRenderProcessName
#define HELPER_BUNDLE_NAME HELPER_BINARY_NAME ".app"
#define PLUGINS_NAME "PlugIns"

@interface PathFactory : NSObject
Expand Down

0 comments on commit ba58bed

Please sign in to comment.