Chromium Code Reviews| 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 namespace remoting { | 10 namespace remoting { |
| 11 | 11 |
| 12 class ChromotingHost; | 12 class ChromotingHost; |
| 13 | 13 |
| 14 class DisconnectWindow { | 14 class DisconnectWindow { |
| 15 public: | 15 public: |
| 16 | |
| 17 enum { | |
| 18 kMaximumConnectedNameWidthInPixels = 400 | |
|
Jamie
2011/10/21 00:50:31
Can we rename this? As it is, it suggests that it'
| |
| 19 }; | |
| 20 | |
| 16 virtual ~DisconnectWindow() {} | 21 virtual ~DisconnectWindow() {} |
| 17 | 22 |
| 18 // Show the disconnect window allowing the user to shut down |host|. | 23 // Show the disconnect window allowing the user to shut down |host|. |
| 19 virtual void Show(ChromotingHost* host, const std::string& username) = 0; | 24 virtual void Show(ChromotingHost* host, const std::string& username) = 0; |
| 20 | 25 |
| 21 // Hide the disconnect window. | 26 // Hide the disconnect window. |
| 22 virtual void Hide() = 0; | 27 virtual void Hide() = 0; |
| 23 | 28 |
| 24 static DisconnectWindow* Create(); | 29 static DisconnectWindow* Create(); |
| 25 }; | 30 }; |
| 26 | 31 |
| 27 } | 32 } |
| 28 | 33 |
| 29 #endif // REMOTING_HOST_DISCONNECT_WINDOW_H | 34 #endif // REMOTING_HOST_DISCONNECT_WINDOW_H |
| OLD | NEW |