Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(448)

Side by Side Diff: remoting/host/it2me_host_user_interface.cc

Issue 13212009: Made DesktopEnvironment responsible for creation of the disconnect window. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Mac Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW
« no previous file with comments | « remoting/host/ipc_desktop_environment_unittest.cc ('k') | remoting/host/me2me_desktop_environment.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698