51 Commits

Author SHA1 Message Date
c6efe1498b ignore this error; it doesn't affect us
Some checks failed
book / deploy (push) Has been cancelled
CI / test (macos-latest) (push) Has been cancelled
CI / test (ubuntu-latest) (push) Has been cancelled
CI / test (windows-latest) (push) Has been cancelled
CI / all-doc-tests (push) Has been cancelled
CI / lint (push) Has been cancelled
2026-02-23 22:14:05 +01:00
e43a22931c updated shader for better mixing of overlay
Some checks failed
book / deploy (push) Has been cancelled
CI / test (macos-latest) (push) Has been cancelled
CI / test (ubuntu-latest) (push) Has been cancelled
CI / test (windows-latest) (push) Has been cancelled
CI / all-doc-tests (push) Has been cancelled
CI / lint (push) Has been cancelled
2026-02-23 00:53:46 +01:00
530fac29dc allow overlay texture 2026-02-22 20:39:13 +01:00
0bdc962e2c need to expose meshaabb for head lookat move mouse test
Some checks failed
book / deploy (push) Has been cancelled
CI / test (macos-latest) (push) Has been cancelled
CI / test (ubuntu-latest) (push) Has been cancelled
CI / test (windows-latest) (push) Has been cancelled
CI / all-doc-tests (push) Has been cancelled
CI / lint (push) Has been cancelled
2026-02-21 19:08:59 +01:00
0e629b98af faster scroll
Some checks failed
book / deploy (push) Has been cancelled
CI / test (macos-latest) (push) Has been cancelled
CI / test (ubuntu-latest) (push) Has been cancelled
CI / test (windows-latest) (push) Has been cancelled
CI / all-doc-tests (push) Has been cancelled
CI / lint (push) Has been cancelled
2026-02-21 14:34:34 +01:00
ac07af581e fix: x mouse pos on mesh
Some checks failed
book / deploy (push) Has been cancelled
CI / test (macos-latest) (push) Has been cancelled
CI / test (ubuntu-latest) (push) Has been cancelled
CI / test (windows-latest) (push) Has been cancelled
CI / all-doc-tests (push) Has been cancelled
CI / lint (push) Has been cancelled
2026-02-21 13:54:14 +01:00
a1152ca759 update readme
Some checks failed
book / deploy (push) Has been cancelled
CI / test (windows-latest) (push) Has been cancelled
CI / all-doc-tests (push) Has been cancelled
CI / test (macos-latest) (push) Has been cancelled
CI / test (ubuntu-latest) (push) Has been cancelled
CI / lint (push) Has been cancelled
2026-02-20 22:07:53 +01:00
d39602eb0e Stuff
Some checks failed
book / deploy (push) Has been cancelled
CI / test (macos-latest) (push) Has been cancelled
CI / test (ubuntu-latest) (push) Has been cancelled
CI / test (windows-latest) (push) Has been cancelled
CI / all-doc-tests (push) Has been cancelled
CI / lint (push) Has been cancelled
2026-02-20 22:06:28 +01:00
not-elm
d422e14cf8 fix: restrict on_mouse_wheel to mesh webviews only
Some checks failed
book / deploy (push) Has been cancelled
CI / test (macos-latest) (push) Has been cancelled
CI / test (ubuntu-latest) (push) Has been cancelled
CI / test (windows-latest) (push) Has been cancelled
CI / all-doc-tests (push) Has been cancelled
CI / lint (push) Has been cancelled
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-19 23:25:15 +09:00
not-elm
19f7628a53 feat: add alpha hit-test to WebviewPointer
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-19 23:24:51 +09:00
not-elm
255dc27e1a feat: sync WebviewSurface in render systems
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-19 23:11:17 +09:00
not-elm
c35ca1b920 feat: add WebviewSurface component for alpha hit-testing
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-19 23:11:14 +09:00
elm
1b1da6665c feat: unify webview source into WebviewSource enum with dynamic reload (#22)
Unify CefWebviewUri and InlineHtml into a single WebviewSource enum component, eliminating the dual-component inconsistency where both existed on the same entity
Add ResolvedWebviewUri internal component as a resolution layer between user-facing source and CEF
Support dynamic reload: mutating WebviewSource at runtime automatically navigates the existing browser via browsers.navigate() without recreation
Inline HTML is served via cef://localhost/__inline__/{id} with automatic cleanup on entity despawn
2026-02-12 15:26:47 +09:00
elm
a6fec33006 feat: per-entity navigate and reload requests (#21)
* feat: add per-entity navigate and reload methods

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* clippy

---------

Co-authored-by: not-elm <elmgameinfo@gmail.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-11 18:23:40 +09:00
not-elm
a26b8e9648 fmt 2026-02-07 11:58:22 +09:00
not-elm
9da992fdd6 update: bump CEF version to 144.4.0 and adjust CHANGELOG 2026-02-07 11:56:58 +09:00
elm
40a3455f55 Fix IME input handling (#20)
bevy_winit does not call `set_ime_allowed()` during initial window
creation when `Window::ime_enabled` is `true`. The `changed_windows`
system only fires when the value differs from cache, but the cache
is initialized from the window itself so they start equal. Since
winit 0.27+ requires explicit `set_ime_allowed(true)`, no Ime events
were ever generated.
2026-02-06 23:52:05 +09:00
elm
2afc7bb0de fix: enable IME input by working around bevy_winit bug (#19)
* fix: enable IME input by working around bevy_winit initialization bug
2026-02-06 00:43:49 +09:00
elm
22210c664b fix: update AABB calculation to use local transformations (#18)
Co-authored-by: not-elm <elmgameinfo@gmail.com>
2026-02-06 00:40:19 +09:00
not-elm
776e261d94 fix: improve error handling in JavaScript execution within render process 2026-02-04 16:44:38 +09:00
elm
519aa2b2bf feat: add custom CEF V8 extensions support (#17)
* feat: Register extensions in render process

- Add CefExtensions type to hold V8 extension code
- Pass extensions through BrowserProcessAppBuilder
- Register extensions in RenderProcessHandler on WebKit initialization
- Decode JSON extensions from command line switch
- Prefix extension names with "v8/" per CEF convention
- Include actual JSON in error messages for debugging

l

* feat: refactor window.cef API and register as CEF extension

* fix: remove debug print statements in render process handler

* refactor: centralize EXTENSIONS_SWITCH constant in util.rs

* fmt

* refactor: implement Default trait for CefApiHandler

* docs: add documentation for CefApiHandler and its JavaScript API functions

---------

Co-authored-by: not-elm <elmgameinfo@gmail.com>
2026-02-04 16:08:32 +09:00
not-elm
b7900a24a0 fix: update JavaScript execution method in render process handler 2026-02-04 11:46:08 +09:00
not-elm
e03d4b3de5 fix: use try_insert for CursorIcon in cursor_icon.rs 2026-02-04 11:45:41 +09:00
not-elm
9a2f9b9026 update: reorganize CHANGELOG to enhance clarity and structure 2026-02-03 02:14:58 +09:00
not-elm
58586f0338 update: restructure CHANGELOG for breaking changes and new features 2026-02-03 02:14:00 +09:00
elm
12b29c1ffc feat: Add configurable CEF command line flags (#16)
## Summary
- Add CommandLineConfig struct for CEF command line switches
- Use direct struct initialization with optional helper methods
- Change default to secure: only use-mock-keychain enabled on macOS debug builds
- Add comprehensive documentation with usage examples

## Usage
```rust
use bevy_cef::prelude::*;

// Default (secure, includes use-mock-keychain on macOS debug)
app.add_plugins((DefaultPlugins, CefPlugin::default()));

// Add switches while preserving defaults (recommended)
app.add_plugins((
    DefaultPlugins,
    CefPlugin {
        command_line_config: CommandLineConfig::default()
            .with_switch("disable-gpu")
            .with_switch_value("remote-debugging-port", "9222"),
    },
));

// Full customization with direct initialization
app.add_plugins((
    DefaultPlugins,
    CefPlugin {
        command_line_config: CommandLineConfig {
            switches: vec!["disable-gpu"],
            switch_values: vec![("remote-debugging-port", "9222")],
        },
    },
));
```
2026-02-03 02:06:08 +09:00
elm
5be6380474 Fix message loop handling and improve BrowserProcessHandler (#15)
* add: implement MessagePumpChecker for message loop management

* update: refactor message loop handling and improve MessagePumpChecker

* update: refactor message loop handling to use MessageLoopTimer and improve BrowserProcessHandler

* update: reorganize imports and enhance browser process handler integration

* update: support Bevy 0.18 and improve message loop handling

* update: remove unused FpsOverlayPlugin and clean up dependencies

* update: simplify cef and cef-dll-sys version specifications in Cargo.toml

---------

Co-authored-by: not-elm <elmgameinfo@gmail.com>
2026-02-01 12:00:56 +09:00
not-elm
8f38892009 add: README.md 2026-01-31 11:33:03 +09:00
elm
231c44995b Update CEF version to 144.2.0+144.0.11 (#14)
* update: enable message loop work for Windows and Linux

* update: upgrade Bevy to version 0.18 and adjust asset loader for path handling

* update: rename bevy_picking to picking in Cargo.toml

* update: remove pull_request trigger from CI and change AmbientLight to GlobalAmbientLight

* update: remove demo example from workspace and exclude it from tests

* update: remove demo package from Cargo.lock

* update: refactor paths and dependencies for Chromium Embedded Framework integration

* fmt

* update: remove unnecessary type casting for event flags in mouse and keyboard handling

* update: remove unnecessary type casting for event flags in mouse and keyboard handling

* update: comment out GPU-related command line switches in app.rs

* update: allow unnecessary cast lint warning in mouse button modifiers test

---------

Co-authored-by: not-elm <elmgameinfo@gmail.com>
2026-01-29 00:19:54 +09:00
elm
e623a90351 Migrate to Bevy 0.18 (#13)
* update: enable message loop work for Windows and Linux

* update: upgrade Bevy to version 0.18 and adjust asset loader for path handling

* update: rename bevy_picking to picking in Cargo.toml

* update: remove pull_request trigger from CI and change AmbientLight to GlobalAmbientLight

* update: remove demo example from workspace and exclude it from tests

* update: remove demo package from Cargo.lock

---------

Co-authored-by: not-elm <elmgameinfo@gmail.com>
2026-01-28 21:10:18 +09:00
elm
edf9e064b9 Support Bevy 0.17 (#11)
* update: modify for 0.17

* update: enhance webview functionality and improve plugin implementation

* update: refactor webview system and improve binding group usage

* update: refactor command triggering for webview events and enhance Receive struct

* update: refactor command triggering for webview dev tools

* update: refactor render process handler and improve webview handling

* update: refactor webview browser handling and improve IME caret management

* clippy

* fmt

* update: improve README formatting and clarify version compatibility

* update: support Bevy 0.17 and enhance permissions in settings

* update: enhance CI configuration by adding Wayland and XKB dependencies

* delete: settings.json

* update: refactor shader imports and improve binding group definitions

* update: refactor devtool command triggers for improved clarity

* update: modify LibraryLoader initialization for improved path handling on macOS

* fmt

---------

Co-authored-by: not-elm <elmgameinfo@gmail.com>
2025-10-26 16:55:03 +09:00
elm
0bb9b58fae Enable gpu when debugging (#8)
* add: enable GPU for debugging and update installation instructions

* update: modify Makefile to use variable for binary path in install target

---------

Co-authored-by: not-elm <elmgameinfo@gmail.com>
2025-08-30 18:12:00 +09:00
elm
38b2f09365 fix: avoid crash on update_cursor_icon (#7) 2025-08-19 20:20:22 +09:00
elm
6031e1c9d4 add: preload scripts (#6) 2025-08-19 19:54:19 +09:00
not-elm
1d3512c6b8 update: version to 0.2.0-dev 2025-08-19 13:12:42 +09:00
elm
291f06e74b Remove auto install debugging tools (#5)
Please refer to README.md and install manually from now on.
2025-08-19 12:58:30 +09:00
elm
e42a9beacd fix: mesh pointer (#4)
Fixed so that webview can detect pointers correctly even if it is not the root entity.
2025-08-19 12:45:27 +09:00
not-elm
de2fb61d17 update: temporary remove macos runner 2025-08-11 01:58:30 +09:00
not-elm
6509d804b5 update: ci and readme 2025-08-11 01:45:29 +09:00
not-elm
6fa6f510eb remove: remove depend own 2025-08-11 01:41:52 +09:00
not-elm
7aa2b114a5 add: version 2025-08-11 01:30:49 +09:00
not-elm
fd5bce48bc add: description 2025-08-11 01:28:08 +09:00
elm
56da0b606f Add CLI.yaml (#2) 2025-08-11 01:23:13 +09:00
not-elm
4f78327dd7 add: remove prompt 2025-08-10 23:51:00 +09:00
not-elm
bbbf841bfe add: changelog 2025-08-10 23:47:42 +09:00
not-elm
bbb82a5a00 fix: end offset 2025-08-10 23:43:53 +09:00
elm
dd6854b176 Refactor (#1) 2025-08-10 23:07:13 +09:00
elm
a4030eeaf3 Create FUNDING.yml 2025-08-10 22:17:43 +09:00
elm
e7a9258559 Create LICENSE-MIT 2025-08-10 21:31:51 +09:00
elm
591bdf0018 Create LICENSE-APACHE2 2025-08-10 21:31:20 +09:00