| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #ifndef REMOTING_HOST_DISCONNECT_WINDOW_H | 5 #ifndef REMOTING_HOST_DISCONNECT_WINDOW_H |
| 6 #define REMOTING_HOST_DISCONNECT_WINDOW_H | 6 #define REMOTING_HOST_DISCONNECT_WINDOW_H |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/memory/scoped_ptr.h" |
| 11 |
| 10 namespace remoting { | 12 namespace remoting { |
| 11 | 13 |
| 12 class ChromotingHost; | 14 class ChromotingHost; |
| 13 | 15 |
| 14 class DisconnectWindow { | 16 class DisconnectWindow { |
| 15 public: | 17 public: |
| 16 | 18 |
| 17 enum { | 19 enum { |
| 18 kMaximumConnectedNameWidthInPixels = 400 | 20 kMaximumConnectedNameWidthInPixels = 400 |
| 19 }; | 21 }; |
| 20 | 22 |
| 21 virtual ~DisconnectWindow() {} | 23 virtual ~DisconnectWindow() {} |
| 22 | 24 |
| 23 // Show the disconnect window allowing the user to shut down |host|. | 25 // Show the disconnect window allowing the user to shut down |host|. |
| 24 virtual void Show(ChromotingHost* host, const std::string& username) = 0; | 26 virtual void Show(ChromotingHost* host, const std::string& username) = 0; |
| 25 | 27 |
| 26 // Hide the disconnect window. | 28 // Hide the disconnect window. |
| 27 virtual void Hide() = 0; | 29 virtual void Hide() = 0; |
| 28 | 30 |
| 29 static DisconnectWindow* Create(); | 31 static scoped_ptr<DisconnectWindow> Create(); |
| 30 }; | 32 }; |
| 31 | 33 |
| 32 } | 34 } |
| 33 | 35 |
| 34 #endif // REMOTING_HOST_DISCONNECT_WINDOW_H | 36 #endif // REMOTING_HOST_DISCONNECT_WINDOW_H |
| OLD | NEW |