| 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_IT2ME_HOST_USER_INTERFACE_H_ | 5 #ifndef REMOTING_HOST_IT2ME_HOST_USER_INTERFACE_H_ |
| 6 #define REMOTING_HOST_IT2ME_HOST_USER_INTERFACE_H_ | 6 #define REMOTING_HOST_IT2ME_HOST_USER_INTERFACE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 // Allow ChromotingHostTest::SetUp() to call InitFrom(). | 60 // Allow ChromotingHostTest::SetUp() to call InitFrom(). |
| 61 friend class ChromotingHostTest; | 61 friend class ChromotingHostTest; |
| 62 | 62 |
| 63 // Used by unit-tests as an alternative to Init() so that mock versions of | 63 // Used by unit-tests as an alternative to Init() so that mock versions of |
| 64 // internal objects can be used. This takes ownership of all objects passed | 64 // internal objects can be used. This takes ownership of all objects passed |
| 65 // in. | 65 // in. |
| 66 void InitFrom(DisconnectWindow* disconnect_window, | 66 void InitFrom(DisconnectWindow* disconnect_window, |
| 67 ContinueWindow* continue_window, | 67 ContinueWindow* continue_window, |
| 68 LocalInputMonitor* monitor); | 68 LocalInputMonitor* monitor); |
| 69 | 69 |
| 70 void OnConnect(const std::string& username); | 70 void ProcessOnClientAuthenticated(const std::string& username); |
| 71 void OnLastDisconnect(); | 71 void ProcessOnClientDisconnected(); |
| 72 | |
| 73 void ProcessOnConnect(const std::string& username); | |
| 74 void ProcessOnLastDisconnect(); | |
| 75 | 72 |
| 76 void MonitorLocalInputs(bool enable); | 73 void MonitorLocalInputs(bool enable); |
| 77 | 74 |
| 78 // Show or hide the Disconnect window on the UI thread. If |show| is false, | 75 // Show or hide the Disconnect window on the UI thread. If |show| is false, |
| 79 // hide the window, ignoring the |username| parameter. | 76 // hide the window, ignoring the |username| parameter. |
| 80 void ShowDisconnectWindow(bool show, const std::string& username); | 77 void ShowDisconnectWindow(bool show, const std::string& username); |
| 81 | 78 |
| 82 // Show or hide the Continue Sharing window on the UI thread. | 79 // Show or hide the Continue Sharing window on the UI thread. |
| 83 void ShowContinueWindow(bool show); | 80 void ShowContinueWindow(bool show); |
| 84 | 81 |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 // The JID of the currently-authenticated user (or an empty string if no user | 115 // The JID of the currently-authenticated user (or an empty string if no user |
| 119 // is connected). | 116 // is connected). |
| 120 std::string authenticated_jid_; | 117 std::string authenticated_jid_; |
| 121 | 118 |
| 122 DISALLOW_COPY_AND_ASSIGN(It2MeHostUserInterface); | 119 DISALLOW_COPY_AND_ASSIGN(It2MeHostUserInterface); |
| 123 }; | 120 }; |
| 124 | 121 |
| 125 } // namespace remoting | 122 } // namespace remoting |
| 126 | 123 |
| 127 #endif // REMOTING_HOST_IT2ME_HOST_USER_INTERFACE_H_ | 124 #endif // REMOTING_HOST_IT2ME_HOST_USER_INTERFACE_H_ |
| OLD | NEW |