| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_CAPTURER_LINUX_H_ | 5 #ifndef REMOTING_HOST_CAPTURER_LINUX_H_ |
| 6 #define REMOTING_HOST_CAPTURER_LINUX_H_ | 6 #define REMOTING_HOST_CAPTURER_LINUX_H_ |
| 7 | 7 |
| 8 #include "remoting/host/capturer.h" | 8 #include "remoting/host/capturer.h" |
| 9 | 9 |
| 10 namespace remoting { | 10 namespace remoting { |
| 11 | 11 |
| 12 // A class to perform capturing for Linux. | 12 // A class to perform capturing for Linux. |
| 13 class CapturerLinux : public Capturer { | 13 class CapturerLinux : public Capturer { |
| 14 public: | 14 public: |
| 15 CapturerLinux(); | 15 CapturerLinux(); |
| 16 virtual ~CapturerLinux(); | 16 virtual ~CapturerLinux(); |
| 17 | 17 |
| 18 virtual void CaptureRects(const RectVector& rects, | |
| 19 CaptureCompletedCallback* callback); | |
| 20 | |
| 21 virtual void ScreenConfigurationChanged(); | 18 virtual void ScreenConfigurationChanged(); |
| 22 | 19 |
| 23 private: | 20 private: |
| 21 virtual void CalculateInvalidRects(); |
| 22 virtual void CaptureRects(const InvalidRects& rects, |
| 23 CaptureCompletedCallback* callback); |
| 24 | 24 |
| 25 DISALLOW_COPY_AND_ASSIGN(CapturerLinux); | 25 DISALLOW_COPY_AND_ASSIGN(CapturerLinux); |
| 26 }; | 26 }; |
| 27 | 27 |
| 28 } // namespace remoting | 28 } // namespace remoting |
| 29 | 29 |
| 30 #endif // REMOTING_HOST_CAPTURER_LINUX_H_ | 30 #endif // REMOTING_HOST_CAPTURER_LINUX_H_ |
| OLD | NEW |