Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Webmerge2 #1035

Merged
merged 52 commits into from
Jul 10, 2019
Merged

Webmerge2 #1035

merged 52 commits into from
Jul 10, 2019

Conversation

goddessfreya
Copy link
Contributor

  • Tested on all platforms changed
  • cargo fmt has been run on this branch
  • Added an entry to CHANGELOG.md if knowledge of this change could be valuable to users
  • Updated documentation to reflect any user-facing changes, including notes of platform-specific behavior
  • Created or updated an example program if it would help users understand this functionality
  • Updated feature matrix, if new features were added or implemented

ryanisaacg and others added 30 commits February 12, 2019 20:47
Everything typechecks, but nothing is implemented
Update the internal APIs to match the new API changes
@goddessfreya goddessfreya merged commit 45af1c9 into rust-windowing:web Jul 10, 2019
goddessfreya added a commit to goddessfreya/winit that referenced this pull request Jul 10, 2019
* Create the type layout

Everything typechecks, but nothing is implemented

* Implemented a few easy methods

* Create the outline of event input and handler calls

* Add key and mouse event support that typechecks

* Get to a state where a canvas is spawned

* Refactor out the stdweb functionality into different modules

* Rearchitect to allow API compliance

* Rename modules

* Implement request_redraw

* Implement focus event

* Fix warnings

* Handle ControlFlow::Exit

* Handle ControlFlow::Exit and dealing with events-in-events

* Fix compile failures and add canvas positioning

* Clean up and document the core of stdweb event handling

* Only send the request-redraw on the next animation frame

* Fix the request_animation_frame lifetimes

* Add access to the canvas in the Window

* Add support for mouse wheel

* WIP

* Implement Poll and WaitUntil in the stdweb backend

* Indicate that I will be maintaing the stdweb backend

* Start implementing web-sys backend

* Port remaining modules to web_sys

* Fix throwToEscapeEventLoop function

* TEMPORARY: add testing example

* Prevent callbacks from being destroyed too early

* Replace JS snippet with throw_str

* Fix some warnings

* Clean up Cargo.toml after incorrect rebase

* Fix a panic due to double-borrow

* Remove unnecessary set-to-wait in example

* Update how timeouts are cleared to avoid possible double-clearing

* Draft `web` platform structure

* Implement `web_sys::Canvas` event listeners

* Remove `Canvas` when dropped

* Implement `Canvas::request_redraw`

* Implement keyboard and blur/focus events

* Support `ReceivedCharacter` event

* Avoid leaking implementation details in `Canvas` API

* Implement `stdweb` backend for `web` platform

* Use latest `stdweb` revision

* Fix feature names

* Fix `set_cursor_icon`

* Fix mouse release/press events

* Add `dyn` keyword where necessary

* Improve feature names to enable web backends

* Bump version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants