| 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/curtain_mode.h" | 5 #include "remoting/host/curtain_mode.h" |
| 6 | 6 |
| 7 #include <X11/extensions/XInput.h> | 7 #include <X11/extensions/XInput.h> |
| 8 | 8 |
| 9 #include "base/callback.h" | 9 #include "base/callback.h" |
| 10 #include "base/single_thread_task_runner.h" | 10 #include "base/single_thread_task_runner.h" |
| 11 #include "remoting/base/logging.h" | 11 #include "remoting/base/logging.h" |
| 12 #include "remoting/host/client_session_control.h" | 12 #include "remoting/host/client_session_control.h" |
| 13 | 13 |
| 14 namespace remoting { | 14 namespace remoting { |
| 15 | 15 |
| 16 class CurtainModeLinux : public CurtainMode { | 16 class CurtainModeLinux : public CurtainMode { |
| 17 public: | 17 public: |
| 18 CurtainModeLinux(); | 18 CurtainModeLinux(); |
| 19 | 19 |
| 20 // Overriden from CurtainMode. | 20 // Overriden from CurtainMode. |
| 21 virtual bool Activate() OVERRIDE; | 21 virtual bool Activate() override; |
| 22 | 22 |
| 23 private: | 23 private: |
| 24 // Returns true if the host is running under an Xvfb session. | 24 // Returns true if the host is running under an Xvfb session. |
| 25 bool IsXvfbSession(); | 25 bool IsXvfbSession(); |
| 26 | 26 |
| 27 DISALLOW_COPY_AND_ASSIGN(CurtainModeLinux); | 27 DISALLOW_COPY_AND_ASSIGN(CurtainModeLinux); |
| 28 }; | 28 }; |
| 29 | 29 |
| 30 CurtainModeLinux::CurtainModeLinux() { | 30 CurtainModeLinux::CurtainModeLinux() { |
| 31 } | 31 } |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 | 100 |
| 101 // static | 101 // static |
| 102 scoped_ptr<CurtainMode> CurtainMode::Create( | 102 scoped_ptr<CurtainMode> CurtainMode::Create( |
| 103 scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner, | 103 scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner, |
| 104 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner, | 104 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner, |
| 105 base::WeakPtr<ClientSessionControl> client_session_control) { | 105 base::WeakPtr<ClientSessionControl> client_session_control) { |
| 106 return make_scoped_ptr(new CurtainModeLinux()); | 106 return make_scoped_ptr(new CurtainModeLinux()); |
| 107 } | 107 } |
| 108 | 108 |
| 109 } // namespace remoting | 109 } // namespace remoting |
| OLD | NEW |