callback);
}
+void WebContents::SetAudioMuted(bool muted) {
+ web_contents()->SetAudioMuted(muted);
+}
+
+bool WebContents::IsAudioMuted() {
+ return web_contents()->IsAudioMuted();
+}
+
void WebContents::Undo() {
web_contents()->Undo();
}
.SetMethod("isDevToolsOpened", &WebContents::IsDevToolsOpened)
.SetMethod("toggleDevTools", &WebContents::ToggleDevTools)
.SetMethod("inspectElement", &WebContents::InspectElement)
+ .SetMethod("setAudioMuted", &WebContents::SetAudioMuted)
+ .SetMethod("isAudioMuted", &WebContents::IsAudioMuted)
.SetMethod("undo", &WebContents::Undo)
.SetMethod("redo", &WebContents::Redo)
.SetMethod("cut", &WebContents::Cut)
void InspectServiceWorker();
void HasServiceWorker(const base::Callback<void(bool)>&);
void UnregisterServiceWorker(const base::Callback<void(bool)>&);
+ void SetAudioMuted(bool muted);
+ bool IsAudioMuted();
// Editing commands.
void Undo();
Evaluates `code` in page.
+### WebContents.setAudioMuted(muted)
+
++ `muted` Boolean
+
+Set the page muted.
+
+### WebContents.isAudioMuted()
+
+Returns whether this page has been muted.
+
### WebContents.undo()
Executes editing command `undo` in page.
Opens the devtools for the service worker context present in the guest page.
+### `<webview>`.setAudioMuted(muted)
+
++ `muted` Boolean
+
+Set guest page muted.
+
+### `<webview>`.isAudioMuted()
+
+Returns whether guest page has been muted.
+
### `<webview>`.undo()
Executes editing command `undo` in page.