diff options
author | alexeypa@chromium.org <alexeypa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-11 23:01:45 +0000 |
---|---|---|
committer | alexeypa@chromium.org <alexeypa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-11 23:01:45 +0000 |
commit | c3041a1ecdbaf632afccdc3643b887e0f1d80693 (patch) | |
tree | 390cd64c70edaae88ccbad4faf867c2c5031b110 /remoting/host/disconnect_window_mac.h | |
parent | b388e926b70990b6be241c3c81281725ac0bca35 (diff) | |
download | chromium_src-c3041a1ecdbaf632afccdc3643b887e0f1d80693.zip chromium_src-c3041a1ecdbaf632afccdc3643b887e0f1d80693.tar.gz chromium_src-c3041a1ecdbaf632afccdc3643b887e0f1d80693.tar.bz2 |
Chromoting: the Me2me host (on Mac and Windows) now presents a notification on the console allowing a user to disconnect an incoming session.
BUG=127321,127322
Review URL: https://chromiumcodereview.appspot.com/10384127
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@136698 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/host/disconnect_window_mac.h')
-rw-r--r-- | remoting/host/disconnect_window_mac.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/remoting/host/disconnect_window_mac.h b/remoting/host/disconnect_window_mac.h index 8014b4e..779650d 100644 --- a/remoting/host/disconnect_window_mac.h +++ b/remoting/host/disconnect_window_mac.h @@ -1,9 +1,12 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #import <Cocoa/Cocoa.h> +#include "base/callback.h" +#include "remoting/host/disconnect_window.h" + namespace remoting { class ChromotingHost; } @@ -13,12 +16,14 @@ class ChromotingHost; @interface DisconnectWindowController : NSWindowController { @private remoting::ChromotingHost* host_; + base::Closure disconnect_callback_; NSString* username_; IBOutlet NSTextField* connectedToField_; IBOutlet NSButton* disconnectButton_; } - (id)initWithHost:(remoting::ChromotingHost*)host + callback:(const base::Closure&)disconnect_callback username:(NSString*)username; - (IBAction)stopSharing:(id)sender; @end |