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

Unified Diff: remoting/host/disconnect_window.h

Issue 10384127: Chromoting: the Me2me host now presents a notification on the console allowing a user to disconnect… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Unix-line endings. The license text. Created 8 years, 7 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/host/continue_window_win.cc ('k') | remoting/host/disconnect_window_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/disconnect_window.h
diff --git a/remoting/host/disconnect_window.h b/remoting/host/disconnect_window.h
index e5345ed9e69646741a458f664c60c8b99915654a..f55a90b83809a15a41aa72f84264d94f9ea49445 100644
--- a/remoting/host/disconnect_window.h
+++ b/remoting/host/disconnect_window.h
@@ -7,6 +7,7 @@
#include <string>
+#include "base/callback.h"
#include "base/memory/scoped_ptr.h"
namespace remoting {
@@ -20,10 +21,17 @@ class DisconnectWindow {
kMaximumConnectedNameWidthInPixels = 400
};
+ // DisconnectCallback is called when the user clicks on the Disconnect button
+ // to disconnect the session. This callback is provided as a parameter to the
+ // Show() method, and will be triggered on the UI thread.
+ typedef base::Callback<void(void)> DisconnectCallback;
+
virtual ~DisconnectWindow() {}
// Show the disconnect window allowing the user to shut down |host|.
- virtual void Show(ChromotingHost* host, const std::string& username) = 0;
+ virtual void Show(ChromotingHost* host,
+ const DisconnectCallback& disconnect_callback,
+ const std::string& username) = 0;
// Hide the disconnect window.
virtual void Hide() = 0;
« no previous file with comments | « remoting/host/continue_window_win.cc ('k') | remoting/host/disconnect_window_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698