summaryrefslogtreecommitdiffstats
path: root/remoting/host/desktop_shape_tracker.h
blob: 3d9b4307c831711eb39b28e9f09b8f7f88e8016d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef REMOTING_HOST_DESKTOP_SHAPE_TRACKER_H_
#define REMOTING_HOST_DESKTOP_SHAPE_TRACKER_H_

#include "base/macros.h"
#include "base/memory/scoped_ptr.h"

namespace webrtc {
class DesktopCaptureOptions;
class DesktopRegion;
}  // namespace webrtc

namespace remoting {

// Tracks changes in the area of the desktop that is occupied by windows.
class DesktopShapeTracker {
 public:
  static scoped_ptr<DesktopShapeTracker> Create(
      webrtc::DesktopCaptureOptions options);

  DesktopShapeTracker() {}
  virtual ~DesktopShapeTracker() {}

  // Recalculates the desktop shape, as returned by desktop_shape();
  virtual void RefreshDesktopShape() = 0;

  // Returns a reference to the most recently capture desktop shape.
  virtual const webrtc::DesktopRegion& desktop_shape() = 0;

 private:
  DISALLOW_COPY_AND_ASSIGN(DesktopShapeTracker);
};

}  // namespace remoting

#endif  // REMOTING_HOST_DESKTOP_SHAPE_TRACKER_H_