From a04494cb170366bdf8be44c33e76f6e6ab98ab7b Mon Sep 17 00:00:00 2001 From: "sergeyu@chromium.org" Date: Mon, 23 Jul 2012 05:00:32 +0000 Subject: Show connection state in the Chromoting client UI. Now screen is desaturated when we get notification that video channel is not working. BUG=131411 Review URL: https://chromiumcodereview.appspot.com/10692179 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@147830 0039d316-1c4b-4281-b951-d872f2087c98 --- remoting/protocol/connection_to_host.cc | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'remoting/protocol/connection_to_host.cc') diff --git a/remoting/protocol/connection_to_host.cc b/remoting/protocol/connection_to_host.cc index 5794c50..144c1fc 100644 --- a/remoting/protocol/connection_to_host.cc +++ b/remoting/protocol/connection_to_host.cc @@ -209,6 +209,17 @@ void ConnectionToHost::OnSessionRouteChange(const std::string& channel_name, const TransportRoute& route) { } +void ConnectionToHost::OnSessionChannelReady(const std::string& channel_name, + bool ready) { + if (ready) { + not_ready_channels_.erase(channel_name); + } else if (!ready) { + not_ready_channels_.insert(channel_name); + } + + event_callback_->OnConnectionReady(ready); +} + ConnectionToHost::State ConnectionToHost::state() const { return state_; } -- cgit v1.1