Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2300)

Unified Diff: remoting/webapp/client_session.js

Issue 11192042: Protocol plumbing for audio toggle. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/webapp/client_plugin_async.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/webapp/client_session.js
diff --git a/remoting/webapp/client_session.js b/remoting/webapp/client_session.js
index f4efe1fbb4802ba23d8a906cae9129f40005eb8a..56ccaf7c55fabadbf46db3dc99511d0edf429a82 100644
--- a/remoting/webapp/client_session.js
+++ b/remoting/webapp/client_session.js
@@ -600,6 +600,18 @@ remoting.ClientSession.prototype.pauseVideo = function(pause) {
}
/**
+ * Requests that the host pause or resume audio.
+ *
+ * @param {boolean} pause True to pause audio, false to resume.
+ * @return {void} Nothing.
+ */
+remoting.ClientSession.prototype.pauseAudio = function(pause) {
+ if (this.plugin) {
+ this.plugin.pauseAudio(pause)
+ }
+}
+
+/**
* This is a callback that gets called when the plugin notifies us of a change
* in the size of the remote desktop.
*
« no previous file with comments | « remoting/webapp/client_plugin_async.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698