Commit Graph

9 Commits

Author SHA1 Message Date
DK Liao
ad168a22df Update license to 2023 (#835) 2023-01-07 14:28:40 +08:00
amrbashir
569057ad83 chore: cleanup examples 2022-10-27 15:28:13 +02:00
Amr Bashir
917bb4309a chore: licenses (#675) 2022-08-27 10:07:03 +08:00
Ngo Iok Ui (Wu Yu Wei)
48f53a3393 Add with_web_context method (#292)
* Add with_web_context method

* Add change file

* cargo fmt
2021-06-13 20:18:07 +08:00
chip
761b2b59fe webdriver support (#281)
* Add `Application` back, require it for `WebviewBuilder`

Linux only so far. Until further notice, this entire branch is going to only
work on Linux until I can decide on a good interface to expose WebDriver stuff.

`Application` makes it so that multiple windows can share a single WebContext
and UserContentManager (data directory). This is required for WebDriver because
only a single `WebContext` is allowed to be marked to allow automation. It
seems that macOS and Windows have similar limitations to some extent.

Only the multi_window example has been updated so far.

* Create automated webviews from webdriver clients

again, linux only for now.

updated detect_js_ecma example also

* cargo +nightly fmt

* update env var value for automation

* allow closing the window from the webdriver client

* add support for win32 windows

* add wry::Application support to macOS

* change how ApplicationExt work to match std

* update all examples to use wry::Application

* remove now unneeded uuid dependency

* add webdriver support to new example

* cargo +nightly fmt

* remove automation flag from mac/win ApplicationInner

* allow dead_code in Application inner field

is there a better proper fix? probably - but we will be redoing this interface
soon I imagine.

* cargo +nightly fmt

* update all WebviewBuilder::new calls

* cargo +nightly fmt

* super builder

* update ecma example

* enable automation if specific build env is set

* change build env var to feature

* move the super builder to its own module

* cargo +nightly fmt

* update builder docs

* explicitly allow inlining on wry::Builder

* revert everything to dev

* update webkit2gtk to v2_18 to allow for automation

* set custom cfg on rustdocs to allow for nightly doc features

* simplify application module

* enable nightly doc features when cfg is set

* add WebContext as a required item to `WebViewBuilder`

* add changes file

* move web_context to build from new

* update WebContextData path for windows,macos

* mark WebContextData as private

* update examples and doc tests

* allow os impl WebContextImpl to be dead_code

* fix windows webview builder initialization

* add winrt note to add window close event handler

* add smart link to WebContext docs

Co-authored-by: Ngo Iok Ui (Wu Yu Wei) <wusyong9104@gmail.com>

* update WebContext doc smartlink

* remove doc_cfg from empty non-linux WebContextImpls

* fix clippy error in unrelated code

* make clippy happy (new nightly lints)

Co-authored-by: Ngo Iok Ui (Wu Yu Wei) <wusyong9104@gmail.com>
2021-06-09 12:33:38 +08:00
Andrew McCluskey
29b9a8ab5a Improves detect_js_ecma example (#258)
* Adds tests to detect_js_ecma example

Adds additional verifications to the detect_js_ecma.rs example, and provides a summary as well as a detailed view of what tests were run and their result.

* Refactors to avoid requerying the document for elements

Co-authored-by: Andrew McCluskey <andrew.m.mccluskey@googlemail.com>
2021-05-12 19:52:58 +08:00
Ngo Iok Ui (Wu Yu Wei)
b840ded5f3 chore: Update ControlFlow to Wait (#232) 2021-05-03 20:11:39 +08:00
SneakyFish5
76217e5c4a chore: add more ecma detections (#203) 2021-04-26 10:42:58 +08:00
Amr Bashir
d4e73f927b chore: update examples (#182)
* chore: update examples

* chore: add `detect_js_ecma` example

* use IIFE for custom_titlebar css injection

* update readme
2021-04-22 19:41:28 +08:00