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

Context menu API #26043

Merged
merged 2 commits into from Mar 30, 2020
Merged

Context menu API #26043

merged 2 commits into from Mar 30, 2020

Conversation

@paulrouget
Copy link
Contributor

paulrouget commented Mar 27, 2020

This adds an API for Servo internals to request a context menu to the embedder, along an implement for the UWP port.

@jdm
Copy link
Member

jdm commented Mar 27, 2020

error[E0004]: non-exhaustive patterns: `ShowContextMenu(_, _)` not covered
   --> ports/glutin/browser.rs:280:19
    |
280 |             match msg {
    |                   ^^^ pattern `ShowContextMenu(_, _)` not covered
    |
    = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
error: aborting due to previous error
@jdm
jdm approved these changes Mar 27, 2020
.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.

@jdm

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.

@paulrouget

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.

@paulrouget
Copy link
Contributor Author

paulrouget commented Mar 30, 2020

@bors-servo r=jdm

@bors-servo
Copy link
Contributor

bors-servo commented Mar 30, 2020

📌 Commit 2d40bdf has been approved by jdm

@bors-servo
Copy link
Contributor

bors-servo commented Mar 30, 2020

Testing commit 2d40bdf with merge 9811964...

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.
@paulrouget paulrouget force-pushed the paulrouget:IMMenu branch from 2d40bdf to 499393d Mar 30, 2020
@paulrouget paulrouget force-pushed the paulrouget:IMMenu branch from 499393d to ed601bc Mar 30, 2020
@paulrouget
Copy link
Contributor Author

paulrouget commented Mar 30, 2020

@bors-servo r=jdm

@bors-servo
Copy link
Contributor

bors-servo commented Mar 30, 2020

📌 Commit ed601bc has been approved by jdm

@bors-servo
Copy link
Contributor

bors-servo commented Mar 30, 2020

Testing commit ed601bc with merge ded381c...

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
Copy link
Contributor

bors-servo commented Mar 30, 2020

💔 Test failed - status-taskcluster

@paulrouget
Copy link
Contributor Author

paulrouget commented Mar 30, 2020

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
Copy link
Contributor

bors-servo commented Mar 30, 2020

Testing commit ed601bc with merge b12337a...

@bors-servo
Copy link
Contributor

bors-servo commented Mar 30, 2020

💔 Test failed - status-taskcluster

@CYBAI
Copy link
Collaborator

CYBAI commented Mar 30, 2020

@bors-servo
Copy link
Contributor

bors-servo commented Mar 30, 2020

Testing commit ed601bc with merge c3ecf2e...

@bors-servo
Copy link
Contributor

bors-servo commented Mar 30, 2020

☀️ Test successful - status-taskcluster
Approved by: jdm
Pushing c3ecf2e to master...

@bors-servo bors-servo merged commit c3ecf2e into servo:master Mar 30, 2020
2 checks passed
2 checks passed
Community-TC (pull_request) TaskGroup: success
Details
homu Test successful
Details
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
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

6 participants
You can’t perform that action at this time.