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

Unified Diff: remoting/host/window_capturer_screen_wrapper.cc

Issue 422503004: Adding ability to stream windows and inject events to them (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: I updated the code with almost all of the comments Lambros had. The exceptions are the redesign of … Created 6 years, 5 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
Index: remoting/host/window_capturer_screen_wrapper.cc
diff --git a/remoting/host/window_capturer_screen_wrapper.cc b/remoting/host/window_capturer_screen_wrapper.cc
new file mode 100644
index 0000000000000000000000000000000000000000..0d79ff4d35f5f8e65263a7148871f4a4f2a31561
--- /dev/null
+++ b/remoting/host/window_capturer_screen_wrapper.cc
@@ -0,0 +1,44 @@
+// Copyright (c) 2014 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.
+
+#include "remoting/host/window_capturer_screen_wrapper.h"
+
+namespace remoting {
+
+WindowCapturerScreenWrapper::WindowCapturerScreenWrapper() {
Wez 2014/08/01 23:41:55 You're not initializing the |window_capturer_| bar
ronakvora do not use 2014/08/05 19:54:50 Changed to scoped_ptr.
+}
+
+WindowCapturerScreenWrapper::~WindowCapturerScreenWrapper() {
+}
+
+bool WindowCapturerScreenWrapper::SelectWindow
+ (webrtc::WindowCapturer::WindowId id) {
+ return window_capturer_->SelectWindow(id);
+}
+void WindowCapturerScreenWrapper::SetWindow
+ (const webrtc::DesktopCaptureOptions& options) {
+ window_capturer_ = webrtc::WindowCapturer::Create(options);
+}
+
+void WindowCapturerScreenWrapper::Start(Callback* callback) {
+ window_capturer_->Start(callback);
Wez 2014/08/01 23:41:55 When you switch |window_capturer_| to scoped_ptr<>
ronakvora do not use 2014/08/05 19:54:50 Got it.
+}
+
+void WindowCapturerScreenWrapper::Capture(const webrtc::DesktopRegion& region) {
+ window_capturer_->Capture(region);
+}
+
+void WindowCapturerScreenWrapper::SetMouseShapeObserver(
+ MouseShapeObserver* mouse_shape_observer) {
Wez 2014/08/01 23:41:55 NOTIMPLEMENTED();
ronakvora do not use 2014/08/05 19:54:50 This method gets called since we're using it as a
+ return;
+}
+bool WindowCapturerScreenWrapper::GetScreenList(ScreenList* screens) {
Wez 2014/08/01 23:41:55 NOTIMPLENTED();
ronakvora do not use 2014/08/05 19:54:50 Even though it returns a boolean?
+ return false;
+}
+
+bool WindowCapturerScreenWrapper::SelectScreen(webrtc::ScreenId id) {
Wez 2014/08/01 23:41:55 NOTIMPLEMENTED();
ronakvora do not use 2014/08/05 19:54:50 Even though it returns a boolean?
+ return false;
+}
+
+} // namespace remoting

Powered by Google App Engine
This is Rietveld 408576698