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 virtual ~DisconnectWindow() {} | 16 virtual ~DisconnectWindow() {} |
17 | 17 |
18 static const char kTitle[]; | 18 static const char kTitle[]; |
19 static const char kSharingWith[]; | 19 static const char kSharingWith[]; |
20 static const char kDisconnectButton[]; | 20 static const char kDisconnectButton[]; |
21 | 21 |
22 static const char kDisconnectKeysLinux[]; | 22 static const char kDisconnectKeysLinux[]; |
23 static const char kDisconnectKeysMac[]; | 23 static const char kDisconnectKeysMac[]; |
24 static const char kDisconnectKeysWin[]; | 24 static const char kDisconnectKeysWin[]; |
25 | 25 |
26 // Show the disconnect window allowing the user to shut down |host|. | 26 // Show the disconnect window allowing the user to shut down |host|. |
| 27 // TODO(jamiewalch): Once all platforms are using localized strings, |
| 28 // remove |username| from this signature (it will be substituted as |
| 29 // appropriate at the localization stage). |
27 virtual void Show(ChromotingHost* host, const std::string& username) = 0; | 30 virtual void Show(ChromotingHost* host, const std::string& username) = 0; |
28 | 31 |
29 // Hide the disconnect window. | 32 // Hide the disconnect window. |
30 virtual void Hide() = 0; | 33 virtual void Hide() = 0; |
31 | 34 |
32 static DisconnectWindow* Create(); | 35 static DisconnectWindow* Create(); |
33 }; | 36 }; |
34 | 37 |
35 } | 38 } |
36 | 39 |
37 #endif // REMOTING_HOST_DISCONNECT_WINDOW_H | 40 #endif // REMOTING_HOST_DISCONNECT_WINDOW_H |
OLD | NEW |