| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #import <Cocoa/Cocoa.h> | 5 #import <Cocoa/Cocoa.h> |
| 6 | 6 |
| 7 namespace remoting { | 7 namespace remoting { |
| 8 class ChromotingHost; | 8 class ChromotingHost; |
| 9 class DisconnectWindowMac; | 9 class DisconnectWindowMac; |
| 10 } | 10 } |
| 11 | 11 |
| 12 // Controller for the disconnect window which allows the host user to | 12 // Controller for the disconnect window which allows the host user to |
| 13 // quickly disconnect a session. | 13 // quickly disconnect a session. |
| 14 @interface DisconnectWindowController : NSWindowController { | 14 @interface DisconnectWindowController : NSWindowController { |
| 15 @private | 15 @private |
| 16 remoting::ChromotingHost* host_; | 16 remoting::ChromotingHost* host_; |
| 17 remoting::DisconnectWindowMac* disconnectWindow_; | |
| 18 NSString* username_; | 17 NSString* username_; |
| 19 IBOutlet NSTextField* connectedToField_; | 18 IBOutlet NSTextField* connectedToField_; |
| 20 IBOutlet NSButton* disconnectButton_; | 19 IBOutlet NSButton* disconnectButton_; |
| 21 } | 20 } |
| 22 | 21 |
| 22 - (id)initWithHost:(remoting::ChromotingHost*)host |
| 23 username:(NSString*)username; |
| 23 - (IBAction)stopSharing:(id)sender; | 24 - (IBAction)stopSharing:(id)sender; |
| 24 - (id)initWithHost:(remoting::ChromotingHost*)host | |
| 25 window:(remoting::DisconnectWindowMac*)window | |
| 26 username:(NSString*)username; | |
| 27 @end | 25 @end |
| 28 | 26 |
| 29 // A floating window with a custom border. The custom border and background | 27 // A floating window with a custom border. The custom border and background |
| 30 // content is defined by DisconnectView. Declared here so that it can be | 28 // content is defined by DisconnectView. Declared here so that it can be |
| 31 // instantiated via a xib. | 29 // instantiated via a xib. |
| 32 @interface DisconnectWindow : NSWindow | 30 @interface DisconnectWindow : NSWindow |
| 33 @end | 31 @end |
| 34 | 32 |
| 35 // The custom background/border for the DisconnectWindow. Declared here so that | 33 // The custom background/border for the DisconnectWindow. Declared here so that |
| 36 // it can be instantiated via a xib. | 34 // it can be instantiated via a xib. |
| 37 @interface DisconnectView : NSView | 35 @interface DisconnectView : NSView |
| 38 @end | 36 @end |
| OLD | NEW |