OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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 <string> | 7 #include <string> |
8 | 8 |
9 #include "base/callback.h" | 9 #include "base/callback.h" |
10 #include "base/string16.h" | 10 #include "base/string16.h" |
11 #include "base/utf_string_conversions.h" | 11 #include "base/utf_string_conversions.h" |
12 #include "remoting/host/disconnect_window.h" | 12 #include "remoting/host/disconnect_window.h" |
13 | 13 |
14 namespace remoting { | 14 namespace remoting { |
15 struct UiStrings; | 15 struct UiStrings; |
16 } | 16 } |
17 | 17 |
18 // Controller for the disconnect window which allows the host user to | 18 // Controller for the disconnect window which allows the host user to |
19 // quickly disconnect a session. | 19 // quickly disconnect a session. |
20 @interface DisconnectWindowController : NSWindowController { | 20 @interface DisconnectWindowController : NSWindowController { |
21 @private | 21 @private |
22 bool rtl_; | 22 const remoting::UiStrings* ui_strings_; |
23 string16 disconnect_message_; | |
24 string16 disconnect_button_text_; | |
25 base::Closure disconnect_callback_; | 23 base::Closure disconnect_callback_; |
26 string16 username_; | 24 string16 username_; |
27 IBOutlet NSTextField* connectedToField_; | 25 IBOutlet NSTextField* connectedToField_; |
28 IBOutlet NSButton* disconnectButton_; | 26 IBOutlet NSButton* disconnectButton_; |
29 } | 27 } |
30 | 28 |
31 - (id)initWithUiStrings:(const remoting::UiStrings&)ui_strings | 29 - (id)initWithUiStrings:(const remoting::UiStrings*)ui_strings |
32 callback:(const base::Closure&)disconnect_callback | 30 callback:(const base::Closure&)disconnect_callback |
33 username:(const std::string&)username; | 31 username:(const std::string&)username; |
34 - (IBAction)stopSharing:(id)sender; | 32 - (IBAction)stopSharing:(id)sender; |
35 @end | 33 @end |
36 | 34 |
37 // A floating window with a custom border. The custom border and background | 35 // A floating window with a custom border. The custom border and background |
38 // content is defined by DisconnectView. Declared here so that it can be | 36 // content is defined by DisconnectView. Declared here so that it can be |
39 // instantiated via a xib. | 37 // instantiated via a xib. |
40 @interface DisconnectWindow : NSWindow | 38 @interface DisconnectWindow : NSWindow |
41 @end | 39 @end |
42 | 40 |
43 // The custom background/border for the DisconnectWindow. Declared here so that | 41 // The custom background/border for the DisconnectWindow. Declared here so that |
44 // it can be instantiated via a xib. | 42 // it can be instantiated via a xib. |
45 @interface DisconnectView : NSView | 43 @interface DisconnectView : NSView |
46 @end | 44 @end |
OLD | NEW |