mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-26 21:38:11 +08:00
Desktop: Support cursor icon change (#3223)
* browser console message forwarding * replace target to make it easy to identify browser console messages * use warn as per review comment * cursor icon change * fix win build
This commit is contained in:
@@ -44,6 +44,7 @@ pub(crate) trait CefEventHandler: Clone + Send + Sync + 'static {
|
||||
#[cfg(feature = "accelerated_paint")]
|
||||
fn draw_gpu(&self, shared_texture: SharedTextureHandle);
|
||||
fn load_resource(&self, path: PathBuf) -> Option<Resource>;
|
||||
fn cursor_change(&self, cursor: winit::cursor::Cursor);
|
||||
/// Schedule the main event loop to run the CEF event loop after the timeout.
|
||||
/// See [`_cef_browser_process_handler_t::on_schedule_message_pump_work`] for more documentation.
|
||||
fn schedule_cef_message_loop_work(&self, scheduled_time: Instant);
|
||||
@@ -224,6 +225,10 @@ impl CefEventHandler for CefHandler {
|
||||
None
|
||||
}
|
||||
|
||||
fn cursor_change(&self, cursor: winit::cursor::Cursor) {
|
||||
self.app_event_scheduler.schedule(AppEvent::CursorChange(cursor));
|
||||
}
|
||||
|
||||
fn schedule_cef_message_loop_work(&self, scheduled_time: std::time::Instant) {
|
||||
self.app_event_scheduler.schedule(AppEvent::ScheduleBrowserWork(scheduled_time));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user