ozone: DCHECK page_flip_request instead of page_flip_request_
[chromium-blink-merge.git] / remoting / host / disconnect_window_mac.h
blob7fd6115d4e5d23cf232a911fe0fb4bb7df77fc0f
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>
7 #include <string>
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 {
16 @private
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;
26 @end
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
32 @end
34 // The custom background/border for the DisconnectWindow. Declared here so that
35 // it can be instantiated via a xib.
36 @interface DisconnectView : NSView
37 @end