Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
amrbashir committed Nov 6, 2023
1 parent 46db450 commit 6a6cc96
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 16 deletions.
1 change: 0 additions & 1 deletion .changes/rwh.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ Refactor new method to take raw window handle instead. Following are APIs got af
- Position field in `FileDrop` event is now `Position` instead of `PhysicalPosition`. Users need to handle scale factor
depend on the situation they have.
- `Webview::inner_size` is removed.
- Added `rwh_04`, `rwh_05`, `rwh_06` feature flags.

This also means that we removed `tao` as a dependency completely which required some changes to the Android backend:
- We exposed the `android_setup` function that needs to be called once to setup necessary logic.
Expand Down
24 changes: 9 additions & 15 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,9 @@
//! use wry::WebViewBuilder;
//!
//! # struct T;
//! # impl rwh_06::HasWindowHandle for T {
//! # fn window_handle(&self) -> Result<rwh_06::WindowHandle<'_>, rwh_06::HandleError> {
//! # Ok(unsafe { rwh_06::WindowHandle::borrow_raw(rwh_06::RawWindowHandle::Win32(
//! # rwh_06::Win32WindowHandle::new(std::num::NonZeroIsize::new_unchecked(1)),
//! # )) })
//! # unsafe impl raw_window_handle::HasRawWindowHandle for T {
//! # fn raw_window_handle(&self) -> raw_window_handle::RawWindowHandle {
//! # raw_window_handle::RawWindowHandle::Win32(raw_window_handle::Win32WindowHandle::empty())
//! # }
//! # }
//! # let window = T;
Expand Down Expand Up @@ -72,11 +70,9 @@
//! use wry::WebViewBuilder;
//!
//! # struct T;
//! # impl rwh_06::HasWindowHandle for T {
//! # fn window_handle(&self) -> Result<rwh_06::WindowHandle<'_>, rwh_06::HandleError> {
//! # Ok(unsafe { rwh_06::WindowHandle::borrow_raw(rwh_06::RawWindowHandle::Win32(
//! # rwh_06::Win32WindowHandle::new(std::num::NonZeroIsize::new_unchecked(1)),
//! # )) })
//! # unsafe impl raw_window_handle::HasRawWindowHandle for T {
//! # fn raw_window_handle(&self) -> raw_window_handle::RawWindowHandle {
//! # raw_window_handle::RawWindowHandle::Win32(raw_window_handle::Win32WindowHandle::empty())
//! # }
//! # }
//! # let window = T;
Expand Down Expand Up @@ -732,11 +728,9 @@ impl<'a> WebViewBuilder<'a> {
/// use wry::WebViewBuilder;
///
/// # struct T;
/// # impl rwh_06::HasWindowHandle for T {
/// # fn window_handle(&self) -> Result<rwh_06::WindowHandle<'_>, rwh_06::HandleError> {
/// # Ok(unsafe { rwh_06::WindowHandle::borrow_raw(rwh_06::RawWindowHandle::Win32(
/// # rwh_06::Win32WindowHandle::new(std::num::NonZeroIsize::new_unchecked(1)),
/// # )) })
/// # unsafe impl raw_window_handle::HasRawWindowHandle for T {
/// # fn raw_window_handle(&self) -> raw_window_handle::RawWindowHandle {
/// # raw_window_handle::RawWindowHandle::Win32(raw_window_handle::Win32WindowHandle::empty())
/// # }
/// # }
/// # let window = T;
Expand Down

0 comments on commit 6a6cc96

Please sign in to comment.