summaryrefslogtreecommitdiffstats
path: root/remoting/host/disconnect_window.h
blob: e5345ed9e69646741a458f664c60c8b99915654a (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
// 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/memory/scoped_ptr.h"

namespace remoting {

class ChromotingHost;

class DisconnectWindow {
 public:

  enum {
    kMaximumConnectedNameWidthInPixels = 400
  };

  virtual ~DisconnectWindow() {}

  // Show the disconnect window allowing the user to shut down |host|.
  virtual void Show(ChromotingHost* host, const std::string& username) = 0;

  // Hide the disconnect window.
  virtual void Hide() = 0;

  static scoped_ptr<DisconnectWindow> Create();
};

}

#endif  // REMOTING_HOST_DISCONNECT_WINDOW_H