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_DESKTOP_ENVIRONMENT_H_ | 5 #ifndef REMOTING_HOST_DESKTOP_ENVIRONMENT_H_ |
6 #define REMOTING_HOST_DESKTOP_ENVIRONMENT_H_ | 6 #define REMOTING_HOST_DESKTOP_ENVIRONMENT_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
98 // the connection. | 98 // the connection. |
99 scoped_ptr<ContinueWindow> continue_window_; | 99 scoped_ptr<ContinueWindow> continue_window_; |
100 | 100 |
101 // Monitor local inputs to allow remote inputs to be blocked while the local | 101 // Monitor local inputs to allow remote inputs to be blocked while the local |
102 // user is trying to do something. | 102 // user is trying to do something. |
103 scoped_ptr<LocalInputMonitor> local_input_monitor_; | 103 scoped_ptr<LocalInputMonitor> local_input_monitor_; |
104 | 104 |
105 bool is_monitoring_local_inputs_; | 105 bool is_monitoring_local_inputs_; |
106 | 106 |
107 // Timer controlling the "continue session" dialog. | 107 // Timer controlling the "continue session" dialog. |
108 bool continue_timer_started_; | 108 enum ContinueTimerState { |
Sergey Ulanov
2011/08/24 18:38:37
Type definition should precede methods declaration
Jamie
2011/08/25 00:16:39
Done.
| |
109 INACTIVE, // The timer is not running or has been cancelled. | |
110 SHOW_DIALOG, // Show the continue dialog when the timer expires. | |
111 SHUTDOWN_HOST // Shutdown the Chromoting host when the timer expires. | |
112 }; | |
113 ContinueTimerState continue_timer_state_; | |
109 base::Time continue_timer_target_time_; | 114 base::Time continue_timer_target_time_; |
110 | 115 |
111 scoped_refptr<UIThreadProxy> proxy_; | 116 scoped_refptr<UIThreadProxy> proxy_; |
112 | 117 |
113 DISALLOW_COPY_AND_ASSIGN(DesktopEnvironment); | 118 DISALLOW_COPY_AND_ASSIGN(DesktopEnvironment); |
114 }; | 119 }; |
115 | 120 |
116 } // namespace remoting | 121 } // namespace remoting |
117 | 122 |
118 #endif // REMOTING_HOST_DESKTOP_ENVIRONMENT_H_ | 123 #endif // REMOTING_HOST_DESKTOP_ENVIRONMENT_H_ |
OLD | NEW |