mirror of
https://github.com/HackPlan/atom-shell.git
synced 2026-04-24 11:56:08 +08:00
Add WebContents API for PasteAndMatchStyle.
This commit is contained in:
@@ -523,6 +523,10 @@ void WebContents::Paste() {
|
||||
web_contents()->Paste();
|
||||
}
|
||||
|
||||
void WebContents::PasteAndMatchStyle() {
|
||||
web_contents()->PasteAndMatchStyle();
|
||||
}
|
||||
|
||||
void WebContents::Delete() {
|
||||
web_contents()->Delete();
|
||||
}
|
||||
@@ -645,6 +649,7 @@ mate::ObjectTemplateBuilder WebContents::GetObjectTemplateBuilder(
|
||||
.SetMethod("cut", &WebContents::Cut)
|
||||
.SetMethod("copy", &WebContents::Copy)
|
||||
.SetMethod("paste", &WebContents::Paste)
|
||||
.SetMethod("pasteAndMatchStyle", &WebContents::PasteAndMatchStyle)
|
||||
.SetMethod("delete", &WebContents::Delete)
|
||||
.SetMethod("selectAll", &WebContents::SelectAll)
|
||||
.SetMethod("unselect", &WebContents::Unselect)
|
||||
|
||||
@@ -75,6 +75,7 @@ class WebContents : public mate::EventEmitter,
|
||||
void Cut();
|
||||
void Copy();
|
||||
void Paste();
|
||||
void PasteAndMatchStyle();
|
||||
void Delete();
|
||||
void SelectAll();
|
||||
void Unselect();
|
||||
|
||||
@@ -261,6 +261,7 @@ registerWebViewElement = ->
|
||||
"cut"
|
||||
"copy"
|
||||
"paste"
|
||||
"pasteAndMatchStyle"
|
||||
"delete"
|
||||
"selectAll"
|
||||
"unselect"
|
||||
|
||||
Reference in New Issue
Block a user