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; | |
10 } | 9 } |
11 | 10 |
12 // Controller for the disconnect window which allows the host user to | 11 // Controller for the disconnect window which allows the host user to |
13 // quickly disconnect a session. | 12 // quickly disconnect a session. |
14 @interface DisconnectWindowController : NSWindowController { | 13 @interface DisconnectWindowController : NSWindowController { |
15 @private | 14 @private |
16 remoting::ChromotingHost* host_; | 15 remoting::ChromotingHost* host_; |
17 NSString* username_; | 16 NSString* username_; |
18 IBOutlet NSTextField* connectedToField_; | 17 IBOutlet NSTextField* connectedToField_; |
19 IBOutlet NSButton* disconnectButton_; | 18 IBOutlet NSButton* disconnectButton_; |
20 } | 19 } |
21 | 20 |
22 - (id)initWithHost:(remoting::ChromotingHost*)host | 21 - (id)initWithHost:(remoting::ChromotingHost*)host |
23 username:(NSString*)username; | 22 username:(NSString*)username; |
24 - (IBAction)stopSharing:(id)sender; | 23 - (IBAction)stopSharing:(id)sender; |
25 @end | 24 @end |
26 | 25 |
27 // A floating window with a custom border. The custom border and background | 26 // A floating window with a custom border. The custom border and background |
28 // content is defined by DisconnectView. Declared here so that it can be | 27 // content is defined by DisconnectView. Declared here so that it can be |
29 // instantiated via a xib. | 28 // instantiated via a xib. |
30 @interface DisconnectWindow : NSWindow | 29 @interface DisconnectWindow : NSWindow |
31 @end | 30 @end |
32 | 31 |
33 // The custom background/border for the DisconnectWindow. Declared here so that | 32 // The custom background/border for the DisconnectWindow. Declared here so that |
34 // it can be instantiated via a xib. | 33 // it can be instantiated via a xib. |
35 @interface DisconnectView : NSView | 34 @interface DisconnectView : NSView |
36 @end | 35 @end |
OLD | NEW |