mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Auto merge of #23564 - mmiecz:clipboard-refactoring, r=jdm
Clipboard refactoring <!-- Please describe your changes on the following line: --> This PR removes clipboard handling from the constellation. Instead, now embedder handles it. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #23440 (GitHub issue number if applicable) <!-- Either: --> - [ ] There are tests for these changes OR - [X] These changes do not require tests because it is enough to test manually in input box, if copying and pasting still works . <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23564) <!-- Reviewable:end -->
This commit is contained in:
commit
e382266b22
12 changed files with 117 additions and 66 deletions
|
@ -121,8 +121,6 @@ pub enum ScriptMsg {
|
|||
CreateCanvasPaintThread(Size2D<u64>, IpcSender<(IpcSender<CanvasMsg>, CanvasId)>),
|
||||
/// Notifies the constellation that this frame has received focus.
|
||||
Focus,
|
||||
/// Requests that the constellation retrieve the current contents of the clipboard
|
||||
GetClipboardContents(IpcSender<String>),
|
||||
/// Get the top-level browsing context info for a given browsing context.
|
||||
GetTopForBrowsingContext(
|
||||
BrowsingContextId,
|
||||
|
@ -183,8 +181,6 @@ pub enum ScriptMsg {
|
|||
AuxiliaryBrowsingContextLoadInfo,
|
||||
IpcSender<LayoutControlMsg>,
|
||||
),
|
||||
/// Requests that the constellation set the contents of the clipboard
|
||||
SetClipboardContents(String),
|
||||
/// Mark a new document as active
|
||||
ActivateDocument,
|
||||
/// Set the document state for a pipeline (used by screenshot / reftests)
|
||||
|
@ -224,7 +220,6 @@ impl fmt::Debug for ScriptMsg {
|
|||
ChangeRunningAnimationsState(..) => "ChangeRunningAnimationsState",
|
||||
CreateCanvasPaintThread(..) => "CreateCanvasPaintThread",
|
||||
Focus => "Focus",
|
||||
GetClipboardContents(..) => "GetClipboardContents",
|
||||
GetBrowsingContextInfo(..) => "GetBrowsingContextInfo",
|
||||
GetTopForBrowsingContext(..) => "GetParentBrowsingContext",
|
||||
GetChildBrowsingContextId(..) => "GetChildBrowsingContextId",
|
||||
|
@ -242,7 +237,6 @@ impl fmt::Debug for ScriptMsg {
|
|||
ScriptLoadedURLInIFrame(..) => "ScriptLoadedURLInIFrame",
|
||||
ScriptNewIFrame(..) => "ScriptNewIFrame",
|
||||
ScriptNewAuxiliary(..) => "ScriptNewAuxiliary",
|
||||
SetClipboardContents(..) => "SetClipboardContents",
|
||||
ActivateDocument => "ActivateDocument",
|
||||
SetDocumentState(..) => "SetDocumentState",
|
||||
SetFinalUrl(..) => "SetFinalUrl",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue