| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "remoting/host/it2me_host_user_interface.h" | 5 #include "remoting/host/it2me_host_user_interface.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "remoting/host/chromoting_host.h" | 8 #include "remoting/host/chromoting_host.h" |
| 9 #include "remoting/host/continue_window.h" | 9 #include "remoting/host/continue_window.h" |
| 10 #include "remoting/host/disconnect_window.h" | |
| 11 #include "remoting/host/local_input_monitor.h" | 10 #include "remoting/host/local_input_monitor.h" |
| 12 | 11 |
| 13 namespace { | 12 namespace { |
| 14 | 13 |
| 15 // Milliseconds before the continue window is shown. | 14 // Milliseconds before the continue window is shown. |
| 16 static const int kContinueWindowShowTimeoutMs = 10 * 60 * 1000; | 15 static const int kContinueWindowShowTimeoutMs = 10 * 60 * 1000; |
| 17 | 16 |
| 18 // Milliseconds before the continue window is automatically dismissed and | 17 // Milliseconds before the continue window is automatically dismissed and |
| 19 // the connection is closed. | 18 // the connection is closed. |
| 20 static const int kContinueWindowHideTimeoutMs = 60 * 1000; | 19 static const int kContinueWindowHideTimeoutMs = 60 * 1000; |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 if (start) { | 112 if (start) { |
| 114 ui_task_runner()->PostDelayedTask( | 113 ui_task_runner()->PostDelayedTask( |
| 115 FROM_HERE, | 114 FROM_HERE, |
| 116 base::Bind(&It2MeHostUserInterface::OnContinueWindowTimer, | 115 base::Bind(&It2MeHostUserInterface::OnContinueWindowTimer, |
| 117 timer_weak_factory_.GetWeakPtr()), | 116 timer_weak_factory_.GetWeakPtr()), |
| 118 base::TimeDelta::FromMilliseconds(kContinueWindowShowTimeoutMs)); | 117 base::TimeDelta::FromMilliseconds(kContinueWindowShowTimeoutMs)); |
| 119 } | 118 } |
| 120 } | 119 } |
| 121 | 120 |
| 122 } // namespace remoting | 121 } // namespace remoting |
| OLD | NEW |