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 #ifndef REMOTING_HOST_CAPTURER_H_ | 5 #ifndef REMOTING_HOST_CAPTURER_H_ |
6 #define REMOTING_HOST_CAPTURER_H_ | 6 #define REMOTING_HOST_CAPTURER_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/callback.h" | 9 #include "base/callback.h" |
10 #include "media/base/video_frame.h" | 10 #include "media/base/video_frame.h" |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 class Capturer { | 52 class Capturer { |
53 public: | 53 public: |
54 // CaptureCompletedCallback is called when the capturer has completed. | 54 // CaptureCompletedCallback is called when the capturer has completed. |
55 typedef base::Callback<void(scoped_refptr<CaptureData>)> | 55 typedef base::Callback<void(scoped_refptr<CaptureData>)> |
56 CaptureCompletedCallback; | 56 CaptureCompletedCallback; |
57 | 57 |
58 // CursorShapeChangedCallback is called when the cursor shape has changed. | 58 // CursorShapeChangedCallback is called when the cursor shape has changed. |
59 typedef base::Callback<void(scoped_ptr<protocol::CursorShapeInfo>)> | 59 typedef base::Callback<void(scoped_ptr<protocol::CursorShapeInfo>)> |
60 CursorShapeChangedCallback; | 60 CursorShapeChangedCallback; |
61 | 61 |
62 virtual ~Capturer() {}; | 62 virtual ~Capturer() {} |
63 | 63 |
64 // Create platform-specific capturer. | 64 // Create platform-specific capturer. |
65 static Capturer* Create(); | 65 static Capturer* Create(); |
66 | 66 |
67 #if defined(OS_LINUX) | 67 #if defined(OS_LINUX) |
68 // Set whether the Capturer should try to use X DAMAGE support if it is | 68 // Set whether the Capturer should try to use X DAMAGE support if it is |
69 // available. This needs to be called before the Capturer is created. | 69 // available. This needs to be called before the Capturer is created. |
70 // This is used by the Virtual Me2Me host, since the XDamage extension is | 70 // This is used by the Virtual Me2Me host, since the XDamage extension is |
71 // known to work reliably in this case. | 71 // known to work reliably in this case. |
72 | 72 |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 virtual void CaptureInvalidRegion( | 116 virtual void CaptureInvalidRegion( |
117 const CaptureCompletedCallback& callback) = 0; | 117 const CaptureCompletedCallback& callback) = 0; |
118 | 118 |
119 // Get the size of the most recently captured screen. | 119 // Get the size of the most recently captured screen. |
120 virtual const SkISize& size_most_recent() const = 0; | 120 virtual const SkISize& size_most_recent() const = 0; |
121 }; | 121 }; |
122 | 122 |
123 } // namespace remoting | 123 } // namespace remoting |
124 | 124 |
125 #endif // REMOTING_HOST_CAPTURER_H_ | 125 #endif // REMOTING_HOST_CAPTURER_H_ |
OLD | NEW |