bunite-core 0.11.2 → 0.11.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bunite-core",
|
|
3
3
|
"description": "Uniting UI and Bun",
|
|
4
|
-
"version": "0.11.
|
|
4
|
+
"version": "0.11.3",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"setup:cef": "bun ../tools/bunite-dev/scripts/setup-cef.ts",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"msgpackr": "^1.11.9"
|
|
25
25
|
},
|
|
26
26
|
"optionalDependencies": {
|
|
27
|
-
"bunite-native-win-x64": "0.0.
|
|
27
|
+
"bunite-native-win-x64": "0.0.7",
|
|
28
28
|
"bunite-native-mac-arm64": "0.0.1",
|
|
29
29
|
"bunite-native-linux-x64": "0.0.1"
|
|
30
30
|
}
|
|
@@ -415,7 +415,7 @@ static DWORD styleForTitleBar(const std::wstring& tbs) {
|
|
|
415
415
|
bool createWindow(uint32_t window_id, double x, double y, double w, double h,
|
|
416
416
|
const char* title, const char* title_bar_style,
|
|
417
417
|
bool transparent, bool hidden, bool minimized, bool maximized) {
|
|
418
|
-
|
|
418
|
+
BUNITE_DEBUG("webview2: createWindow id=%u xy=(%g,%g) size=(%g,%g) hidden=%d trans=%d",
|
|
419
419
|
window_id, x, y, w, h, hidden, transparent);
|
|
420
420
|
WindowHost* host = new WindowHost();
|
|
421
421
|
host->id = window_id;
|
|
@@ -444,7 +444,7 @@ bool createWindow(uint32_t window_id, double x, double y, double w, double h,
|
|
|
444
444
|
delete host;
|
|
445
445
|
return false;
|
|
446
446
|
}
|
|
447
|
-
|
|
447
|
+
BUNITE_DEBUG("webview2: createWindow hwnd=%p id=%u", hwnd, window_id);
|
|
448
448
|
host->hwnd = hwnd;
|
|
449
449
|
if (transparent) {
|
|
450
450
|
// Fully transparent layered window — pixels are sourced from the WebView2
|
|
@@ -549,7 +549,7 @@ static void wireView(ViewHost* view, std::function<void()> on_attached) {
|
|
|
549
549
|
view->container_hwnd,
|
|
550
550
|
Callback<ICoreWebView2CreateCoreWebView2ControllerCompletedHandler>(
|
|
551
551
|
[lifetime, view_id, on_attached](HRESULT cr, ICoreWebView2Controller* ctl) -> HRESULT {
|
|
552
|
-
|
|
552
|
+
BUNITE_DEBUG("webview2: controller-create completion view=%u hr=0x%08x",
|
|
553
553
|
view_id, static_cast<unsigned>(cr));
|
|
554
554
|
if (!lifetime || !lifetime->alive.load()) return S_OK;
|
|
555
555
|
ViewHost* v = getView(view_id);
|
|
@@ -643,7 +643,7 @@ bool createView(uint32_t view_id, uint32_t window_id,
|
|
|
643
643
|
double x, double y, double w, double h,
|
|
644
644
|
bool auto_resize, bool sandbox,
|
|
645
645
|
const char* preload_origins_json) {
|
|
646
|
-
|
|
646
|
+
BUNITE_DEBUG("webview2: createView view=%u window=%u url=%s",
|
|
647
647
|
view_id, window_id, url && *url ? url : "(none)");
|
|
648
648
|
WindowHost* window = getWindow(window_id);
|
|
649
649
|
if (!window) {
|