Chromium Code Reviews| 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 |