Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upContext menu API #26043
Merged
Context menu API #26043
Conversation
|
ports/libsimpleservo/capi/src/lib.rs
Outdated
| .collect(); | ||
| let ptrs: Vec<*const c_char> = cstrs.iter().map(|cstr| cstr.as_ptr()).collect(); | ||
| (self.0.show_context_menu)(ptrs.as_ptr(), size); | ||
| let _ = cstrs; // Don't drop these too early |
This comment has been minimized.
This comment has been minimized.
jdm
Mar 27, 2020
Member
This line doesn't look like it should actually be necessary - won't cstrs last until the end of function by default?
This comment has been minimized.
This comment has been minimized.
paulrouget
Mar 30, 2020
Author
Contributor
Hmm… I tried again, and indeed cstrs is not dropped early.
For some reason this was necessary at some point, not sure why.
I removed the line.
|
@bors-servo r=jdm |
|
|
bors-servo
added a commit
that referenced
this pull request
Mar 30, 2020
Context menu API This adds an API for Servo internals to request a context menu to the embedder, along an implement for the UWP port.
|
@bors-servo r=jdm |
|
|
bors-servo
added a commit
that referenced
this pull request
Mar 30, 2020
Context menu API This adds an API for Servo internals to request a context menu to the embedder, along an implement for the UWP port.
|
|
|
@bors-servo retry |
bors-servo
added a commit
that referenced
this pull request
Mar 30, 2020
Context menu API This adds an API for Servo internals to request a context menu to the embedder, along an implement for the UWP port.
|
|
|
@bors-servo retry |
|
|
bors-servo
added a commit
that referenced
this pull request
Mar 30, 2020
Hook up new openxr context menu gesture to embedder context menu machinery Based on #26043 Fixes #25797, #26057 servo/webxr#144 needs to land first Currently when exited the Servo window is blurred, apparently we need to call `Window.Activate` on it. r? @jdm cc @paulrouget
bors-servo
added a commit
that referenced
this pull request
Mar 31, 2020
Hook up new openxr context menu gesture to embedder context menu machinery Based on #26043 Fixes #25797, #26057 servo/webxr#144 needs to land first Currently when exited the Servo window is blurred, apparently we need to call `Window.Activate` on it. r? @jdm cc @paulrouget
bors-servo
added a commit
that referenced
this pull request
Mar 31, 2020
Hook up new openxr context menu gesture to embedder context menu machinery Based on #26043 Fixes #25797, #26057 servo/webxr#144 needs to land first Currently when exited the Servo window is blurred, apparently we need to call `Window.Activate` on it. r? @jdm cc @paulrouget
bors-servo
added a commit
that referenced
this pull request
Mar 31, 2020
Hook up new openxr context menu gesture to embedder context menu machinery Based on #26043 Fixes #25797, #26057 servo/webxr#144 needs to land first Currently when exited the Servo window is blurred, apparently we need to call `Window.Activate` on it. r? @jdm cc @paulrouget
bors-servo
added a commit
that referenced
this pull request
Mar 31, 2020
Hook up new openxr context menu gesture to embedder context menu machinery Based on #26043 Fixes #25797, #26057 servo/webxr#144 needs to land first Currently when exited the Servo window is blurred, apparently we need to call `Window.Activate` on it. r? @jdm cc @paulrouget
bors-servo
added a commit
that referenced
this pull request
Apr 1, 2020
Hook up new openxr context menu gesture to embedder context menu machinery Based on #26043 Fixes #25797, #26057 servo/webxr#144 needs to land first Currently when exited the Servo window is blurred, apparently we need to call `Window.Activate` on it. r? @jdm cc @paulrouget
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
paulrouget commentedMar 27, 2020
This adds an API for Servo internals to request a context menu to the embedder, along an implement for the UWP port.