diff options
author | alexeypa@chromium.org <alexeypa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-07 09:06:36 +0000 |
---|---|---|
committer | alexeypa@chromium.org <alexeypa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-07 09:06:36 +0000 |
commit | b90785fff5deb3cdebaf0be2da39f4942b5203f1 (patch) | |
tree | 9a272cf208c729d54cf57d2146a4c92f3954a4dd /remoting/host/disconnect_window_mac.h | |
parent | 47409d02178598ba340540966d6a3c77269b385a (diff) | |
download | chromium_src-b90785fff5deb3cdebaf0be2da39f4942b5203f1.zip chromium_src-b90785fff5deb3cdebaf0be2da39f4942b5203f1.tar.gz chromium_src-b90785fff5deb3cdebaf0be2da39f4942b5203f1.tar.bz2 |
Make sure that DisconnectWindow class does not depend on ChromotingHost so it could be used in the desktop process.
BUG=134694
Review URL: https://chromiumcodereview.appspot.com/11471008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@171742 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/host/disconnect_window_mac.h')
-rw-r--r-- | remoting/host/disconnect_window_mac.h | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/remoting/host/disconnect_window_mac.h b/remoting/host/disconnect_window_mac.h index 779650d..c5e1db9 100644 --- a/remoting/host/disconnect_window_mac.h +++ b/remoting/host/disconnect_window_mac.h @@ -4,27 +4,33 @@ #import <Cocoa/Cocoa.h> +#include <string> + #include "base/callback.h" +#include "base/string16.h" +#include "base/utf_string_conversions.h" #include "remoting/host/disconnect_window.h" namespace remoting { -class ChromotingHost; +struct UiStrings; } // Controller for the disconnect window which allows the host user to // quickly disconnect a session. @interface DisconnectWindowController : NSWindowController { @private - remoting::ChromotingHost* host_; + bool rtl_; + string16 disconnect_message_; + string16 disconnect_button_text_; base::Closure disconnect_callback_; - NSString* username_; + string16 username_; IBOutlet NSTextField* connectedToField_; IBOutlet NSButton* disconnectButton_; } -- (id)initWithHost:(remoting::ChromotingHost*)host - callback:(const base::Closure&)disconnect_callback - username:(NSString*)username; +- (id)initWithUiStrings:(const remoting::UiStrings&)ui_strings + callback:(const base::Closure&)disconnect_callback + username:(const std::string&)username; - (IBAction)stopSharing:(id)sender; @end |