Merge pull request #1701 from CharlieHess/paste-and-match-style
Paste and Match Style
This commit is contained in:
commit
dbecc8d5f5
5 changed files with 15 additions and 0 deletions
|
@ -540,6 +540,10 @@ void WebContents::Paste() {
|
|||
web_contents()->Paste();
|
||||
}
|
||||
|
||||
void WebContents::PasteAndMatchStyle() {
|
||||
web_contents()->PasteAndMatchStyle();
|
||||
}
|
||||
|
||||
void WebContents::Delete() {
|
||||
web_contents()->Delete();
|
||||
}
|
||||
|
@ -662,6 +666,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)
|
||||
|
|
|
@ -77,6 +77,7 @@ class WebContents : public mate::EventEmitter,
|
|||
void Cut();
|
||||
void Copy();
|
||||
void Paste();
|
||||
void PasteAndMatchStyle();
|
||||
void Delete();
|
||||
void SelectAll();
|
||||
void Unselect();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue