Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(632)

Unified Diff: remoting/host/shaped_screen_capturer.h

Issue 455073004: Switch DesktopEnvironment to return a DesktopCapturer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove ShapedDesktopCapturer::Create() Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/host/shaped_desktop_capturer_unittest.cc ('k') | remoting/host/shaped_screen_capturer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/shaped_screen_capturer.h
diff --git a/remoting/host/shaped_screen_capturer.h b/remoting/host/shaped_screen_capturer.h
deleted file mode 100644
index c343293094751a10fb40d5bdfba7fd3f34106705..0000000000000000000000000000000000000000
--- a/remoting/host/shaped_screen_capturer.h
+++ /dev/null
@@ -1,48 +0,0 @@
-// 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_SHAPED_SCREEN_CAPTURER_H_
-#define REMOTING_HOST_SHAPED_SCREEN_CAPTURER_H_
-
-#include "base/memory/scoped_ptr.h"
-#include "third_party/webrtc/modules/desktop_capture/screen_capturer.h"
-
-namespace remoting {
-
-class DesktopShapeTracker;
-
-// Screen capturer that also captures desktop shape.
-class ShapedScreenCapturer : public webrtc::ScreenCapturer,
- public webrtc::DesktopCapturer::Callback {
- public:
- static scoped_ptr<ShapedScreenCapturer> Create(
- webrtc::DesktopCaptureOptions options);
-
- ShapedScreenCapturer(scoped_ptr<webrtc::ScreenCapturer> screen_capturer,
- scoped_ptr<DesktopShapeTracker> shape_tracker);
- virtual ~ShapedScreenCapturer();
-
- // webrtc::ScreenCapturer interface.
- virtual void Start(webrtc::ScreenCapturer::Callback* callback) OVERRIDE;
- virtual void Capture(const webrtc::DesktopRegion& region) OVERRIDE;
- virtual void SetMouseShapeObserver(
- MouseShapeObserver* mouse_shape_observer) OVERRIDE;
- virtual bool GetScreenList(ScreenList* screens) OVERRIDE;
- virtual bool SelectScreen(webrtc::ScreenId id) OVERRIDE;
-
- private:
- // webrtc::ScreenCapturer::Callback interface.
- virtual webrtc::SharedMemory* CreateSharedMemory(size_t size) OVERRIDE;
- virtual void OnCaptureCompleted(webrtc::DesktopFrame* frame) OVERRIDE;
-
- scoped_ptr<webrtc::ScreenCapturer> screen_capturer_;
- scoped_ptr<DesktopShapeTracker> shape_tracker_;
- webrtc::ScreenCapturer::Callback* callback_;
-
- DISALLOW_COPY_AND_ASSIGN(ShapedScreenCapturer);
-};
-
-} // namespace remoting
-
-#endif // REMOTING_HOST_SHAPED_SCREEN_CAPTURER_H_
« no previous file with comments | « remoting/host/shaped_desktop_capturer_unittest.cc ('k') | remoting/host/shaped_screen_capturer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698