mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Add Embbedder messages for setting/getting clipboard contents
This commit is contained in:
parent
18434c9927
commit
1e5103e675
1 changed files with 6 additions and 0 deletions
|
@ -132,6 +132,10 @@ pub enum EmbedderMsg {
|
||||||
AllowUnload(IpcSender<bool>),
|
AllowUnload(IpcSender<bool>),
|
||||||
/// Sends an unconsumed key event back to the embedder.
|
/// Sends an unconsumed key event back to the embedder.
|
||||||
Keyboard(KeyboardEvent),
|
Keyboard(KeyboardEvent),
|
||||||
|
/// Gets system clipboard contents
|
||||||
|
GetClipboardContents(IpcSender<String>),
|
||||||
|
/// Sets system clipboard contents
|
||||||
|
SetClipboardContents(String),
|
||||||
/// Changes the cursor.
|
/// Changes the cursor.
|
||||||
SetCursor(Cursor),
|
SetCursor(Cursor),
|
||||||
/// A favicon was detected
|
/// A favicon was detected
|
||||||
|
@ -175,6 +179,8 @@ impl Debug for EmbedderMsg {
|
||||||
EmbedderMsg::AllowUnload(..) => write!(f, "AllowUnload"),
|
EmbedderMsg::AllowUnload(..) => write!(f, "AllowUnload"),
|
||||||
EmbedderMsg::AllowNavigationRequest(..) => write!(f, "AllowNavigationRequest"),
|
EmbedderMsg::AllowNavigationRequest(..) => write!(f, "AllowNavigationRequest"),
|
||||||
EmbedderMsg::Keyboard(..) => write!(f, "Keyboard"),
|
EmbedderMsg::Keyboard(..) => write!(f, "Keyboard"),
|
||||||
|
EmbedderMsg::GetClipboardContents(..) => write!(f, "GetClipboardContents"),
|
||||||
|
EmbedderMsg::SetClipboardContents(..) => write!(f, "SetClipboardContents"),
|
||||||
EmbedderMsg::SetCursor(..) => write!(f, "SetCursor"),
|
EmbedderMsg::SetCursor(..) => write!(f, "SetCursor"),
|
||||||
EmbedderMsg::NewFavicon(..) => write!(f, "NewFavicon"),
|
EmbedderMsg::NewFavicon(..) => write!(f, "NewFavicon"),
|
||||||
EmbedderMsg::HeadParsed => write!(f, "HeadParsed"),
|
EmbedderMsg::HeadParsed => write!(f, "HeadParsed"),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue