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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 #include "remoting/host/disconnect_window.h"
8
7 namespace remoting { 9 namespace remoting {
8 class ChromotingHost; 10 class ChromotingHost;
9 } 11 }
10 12
13 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
14
11 // Controller for the disconnect window which allows the host user to 15 // Controller for the disconnect window which allows the host user to
12 // quickly disconnect a session. 16 // quickly disconnect a session.
13 @interface DisconnectWindowController : NSWindowController { 17 @interface DisconnectWindowController : NSWindowController {
14 @private 18 @private
15 remoting::ChromotingHost* host_; 19 remoting::ChromotingHost* host_;
20 DisconnectCallback disconnect_callback_;
16 NSString* username_; 21 NSString* username_;
17 IBOutlet NSTextField* connectedToField_; 22 IBOutlet NSTextField* connectedToField_;
18 IBOutlet NSButton* disconnectButton_; 23 IBOutlet NSButton* disconnectButton_;
19 } 24 }
20 25
21 - (id)initWithHost:(remoting::ChromotingHost*)host 26 - (id)initWithHost:(remoting::ChromotingHost*)host
27 callback:(const DisconnectCallback&)disconnect_callback
22 username:(NSString*)username; 28 username:(NSString*)username;
23 - (IBAction)stopSharing:(id)sender; 29 - (IBAction)stopSharing:(id)sender;
24 @end 30 @end
25 31
26 // A floating window with a custom border. The custom border and background 32 // A floating window with a custom border. The custom border and background
27 // content is defined by DisconnectView. Declared here so that it can be 33 // content is defined by DisconnectView. Declared here so that it can be
28 // instantiated via a xib. 34 // instantiated via a xib.
29 @interface DisconnectWindow : NSWindow 35 @interface DisconnectWindow : NSWindow
30 @end 36 @end
31 37
32 // The custom background/border for the DisconnectWindow. Declared here so that 38 // The custom background/border for the DisconnectWindow. Declared here so that
33 // it can be instantiated via a xib. 39 // it can be instantiated via a xib.
34 @interface DisconnectView : NSView 40 @interface DisconnectView : NSView
35 @end 41 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698