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

Unified Diff: remoting/client/plugin/chromoting_instance.cc

Issue 10692179: Propagate connection state from networking layer to UI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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
Index: remoting/client/plugin/chromoting_instance.cc
diff --git a/remoting/client/plugin/chromoting_instance.cc b/remoting/client/plugin/chromoting_instance.cc
index 95decc04d697bf92f8a60be75936b748277462f0..c4c78b15f01649a011674ba58b5a6bbd975a39f6 100644
--- a/remoting/client/plugin/chromoting_instance.cc
+++ b/remoting/client/plugin/chromoting_instance.cc
@@ -388,6 +388,12 @@ void ChromotingInstance::OnConnectionState(
PostChromotingMessage("onConnectionStatus", data.Pass());
}
+void ChromotingInstance::OnConnectionInactive(bool inactive) {
+ scoped_ptr<base::DictionaryValue> data(new base::DictionaryValue());
+ data->SetBoolean("inactive", inactive);
+ PostChromotingMessage("onConnectionInactive", data.Pass());
+}
+
void ChromotingInstance::ProcessClipboardEvent(
const protocol::ClipboardEvent& event) {
scoped_ptr<base::DictionaryValue> data(new base::DictionaryValue());

Powered by Google App Engine
This is Rietveld 408576698