Add WebContents API for PasteAndMatchStyle.
This commit is contained in:
parent
90fb7bc52d
commit
3913e18447
3 changed files with 7 additions and 0 deletions
|
@ -523,6 +523,10 @@ void WebContents::Paste() {
|
||||||
web_contents()->Paste();
|
web_contents()->Paste();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void WebContents::PasteAndMatchStyle() {
|
||||||
|
web_contents()->PasteAndMatchStyle();
|
||||||
|
}
|
||||||
|
|
||||||
void WebContents::Delete() {
|
void WebContents::Delete() {
|
||||||
web_contents()->Delete();
|
web_contents()->Delete();
|
||||||
}
|
}
|
||||||
|
@ -645,6 +649,7 @@ mate::ObjectTemplateBuilder WebContents::GetObjectTemplateBuilder(
|
||||||
.SetMethod("cut", &WebContents::Cut)
|
.SetMethod("cut", &WebContents::Cut)
|
||||||
.SetMethod("copy", &WebContents::Copy)
|
.SetMethod("copy", &WebContents::Copy)
|
||||||
.SetMethod("paste", &WebContents::Paste)
|
.SetMethod("paste", &WebContents::Paste)
|
||||||
|
.SetMethod("pasteAndMatchStyle", &WebContents::PasteAndMatchStyle)
|
||||||
.SetMethod("delete", &WebContents::Delete)
|
.SetMethod("delete", &WebContents::Delete)
|
||||||
.SetMethod("selectAll", &WebContents::SelectAll)
|
.SetMethod("selectAll", &WebContents::SelectAll)
|
||||||
.SetMethod("unselect", &WebContents::Unselect)
|
.SetMethod("unselect", &WebContents::Unselect)
|
||||||
|
|
|
@ -75,6 +75,7 @@ class WebContents : public mate::EventEmitter,
|
||||||
void Cut();
|
void Cut();
|
||||||
void Copy();
|
void Copy();
|
||||||
void Paste();
|
void Paste();
|
||||||
|
void PasteAndMatchStyle();
|
||||||
void Delete();
|
void Delete();
|
||||||
void SelectAll();
|
void SelectAll();
|
||||||
void Unselect();
|
void Unselect();
|
||||||
|
|
|
@ -261,6 +261,7 @@ registerWebViewElement = ->
|
||||||
"cut"
|
"cut"
|
||||||
"copy"
|
"copy"
|
||||||
"paste"
|
"paste"
|
||||||
|
"pasteAndMatchStyle"
|
||||||
"delete"
|
"delete"
|
||||||
"selectAll"
|
"selectAll"
|
||||||
"unselect"
|
"unselect"
|
||||||
|
|
Loading…
Add table
Reference in a new issue