1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #import <Cocoa/Cocoa.h>
9 #include "base/callback.h"
10 #include "base/strings/string16.h"
11 #include "base/strings/utf_string_conversions.h"
13 // Controller for the disconnect window which allows the host user to
14 // quickly disconnect a session.
15 @interface DisconnectWindowController : NSWindowController {
17 base::Closure disconnect_callback_;
18 base::string16 username_;
19 IBOutlet NSTextField* connectedToField_;
20 IBOutlet NSButton* disconnectButton_;
23 - (id)initWithCallback:(const base::Closure&)disconnect_callback
24 username:(const std::string&)username;
25 - (IBAction)stopSharing:(id)sender;
28 // A floating window with a custom border. The custom border and background
29 // content is defined by DisconnectView. Declared here so that it can be
30 // instantiated via a xib.
31 @interface DisconnectWindow : NSWindow
34 // The custom background/border for the DisconnectWindow. Declared here so that
35 // it can be instantiated via a xib.
36 @interface DisconnectView : NSView