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

Unified Diff: remoting/host/disconnect_window_mac.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: 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
Index: remoting/host/disconnect_window_mac.h
diff --git a/remoting/host/disconnect_window_mac.h b/remoting/host/disconnect_window_mac.h
index 8014b4e7b2d4482367ab4cb43085eba643a39cab..473706e8f19fa173647e8d87ddd59b7c8fe7bb5c 100644
--- a/remoting/host/disconnect_window_mac.h
+++ b/remoting/host/disconnect_window_mac.h
@@ -4,21 +4,27 @@
#import <Cocoa/Cocoa.h>
+#include "remoting/host/disconnect_window.h"
+
namespace remoting {
class ChromotingHost;
}
+typedef remoting::DisconnectWindow::DisconnectCallback DisconnectCallback;
Jamie 2012/05/11 19:51:39 Is this just to save typing, or is it required? If
alexeypa (please no reviews) 2012/05/11 20:01:21 That I don't know. :-) I was mimicking the existin
+
// Controller for the disconnect window which allows the host user to
// quickly disconnect a session.
@interface DisconnectWindowController : NSWindowController {
@private
remoting::ChromotingHost* host_;
+ DisconnectCallback disconnect_callback_;
NSString* username_;
IBOutlet NSTextField* connectedToField_;
IBOutlet NSButton* disconnectButton_;
}
- (id)initWithHost:(remoting::ChromotingHost*)host
+ callback:(const DisconnectCallback&)disconnect_callback
username:(NSString*)username;
- (IBAction)stopSharing:(id)sender;
@end

Powered by Google App Engine
This is Rietveld 408576698