feat: surface more webContents text selection commands (#37978)

* feat: surface more text selection commands

* refactor: use options argument

* docs: correct for review
This commit is contained in:
Shelley Vohr 2023-05-03 03:14:29 +02:00 committed by GitHub
parent a26343f3e0
commit a8c0ed890f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 108 additions and 0 deletions

View file

@ -241,11 +241,15 @@ class WebContents : public ExclusiveAccessContext,
void Redo();
void Cut();
void Copy();
void CenterSelection();
void Paste();
void PasteAndMatchStyle();
void Delete();
void SelectAll();
void Unselect();
void ScrollToTopOfDocument();
void ScrollToBottomOfDocument();
void AdjustSelectionByCharacterOffset(gin::Arguments* args);
void Replace(const std::u16string& word);
void ReplaceMisspelling(const std::u16string& word);
uint32_t FindInPage(gin::Arguments* args);