blob: f55a90b83809a15a41aa72f84264d94f9ea49445 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
// 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.
#ifndef REMOTING_HOST_DISCONNECT_WINDOW_H
#define REMOTING_HOST_DISCONNECT_WINDOW_H
#include <string>
#include "base/callback.h"
#include "base/memory/scoped_ptr.h"
namespace remoting {
class ChromotingHost;
class DisconnectWindow {
public:
enum {
kMaximumConnectedNameWidthInPixels = 400
};
// DisconnectCallback is called when the user clicks on the Disconnect button
// to disconnect the session. This callback is provided as a parameter to the
// Show() method, and will be triggered on the UI thread.
typedef base::Callback<void(void)> DisconnectCallback;
virtual ~DisconnectWindow() {}
// Show the disconnect window allowing the user to shut down |host|.
virtual void Show(ChromotingHost* host,
const DisconnectCallback& disconnect_callback,
const std::string& username) = 0;
// Hide the disconnect window.
virtual void Hide() = 0;
static scoped_ptr<DisconnectWindow> Create();
};
}
#endif // REMOTING_HOST_DISCONNECT_WINDOW_H
|