Add editing commands for WebContents

This commit is contained in:
Cheng Zhao 2015-01-19 12:09:47 -08:00
parent e75950cb89
commit 7fbf4246ac
2 changed files with 67 additions and 3 deletions

View file

@ -67,6 +67,20 @@ class WebContents : public mate::EventEmitter,
void OpenDevTools();
void CloseDevTools();
bool IsDevToolsOpened();
// Editing commands.
void Undo();
void Redo();
void Cut();
void Copy();
void Paste();
void Delete();
void SelectAll();
void Unselect();
void Replace(const base::string16& word);
void ReplaceMisspelling(const base::string16& word);
// Sending messages to browser.
bool SendIPCMessage(const base::string16& channel,
const base::ListValue& args);