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

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: Added comments, removed extraneous commented out code, and reformatted. 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
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..b1b4604be25d63b70e5248502ab8d435d40e3379
--- /dev/null
+++ b/remoting/host/window_capturer_screen_wrapper.cc
@@ -0,0 +1,41 @@
+// Copyright 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"
Lambros 2014/08/05 22:47:25 nit: Blank line after this, as it's logically dist
ronakvora do not use 2014/08/06 20:56:20 Done.
+#include "base/logging.h"
+#include "third_party/webrtc/modules/desktop_capture/window_capturer.h"
+
+namespace remoting {
+
+WindowCapturerScreenWrapper::WindowCapturerScreenWrapper(
+ scoped_ptr<webrtc::WindowCapturer> window_capturer)
+ : window_capturer_(window_capturer.Pass()) {
+}
+
+WindowCapturerScreenWrapper::~WindowCapturerScreenWrapper() {
+}
+
+void WindowCapturerScreenWrapper::Start(Callback* callback) {
+ window_capturer_->Start(callback);
+}
+
+void WindowCapturerScreenWrapper::Capture(const webrtc::DesktopRegion& region) {
+ window_capturer_->Capture(region);
+}
+
+void WindowCapturerScreenWrapper::SetMouseShapeObserver(
+ MouseShapeObserver* mouse_shape_observer) {
+ return;
Lambros 2014/08/05 22:47:25 Should be NOT_IMPLEMENTED() ? nit: remove 'return;
ronakvora do not use 2014/08/06 20:56:20 Right now, we call this method. Is it alright if N
+}
+bool WindowCapturerScreenWrapper::GetScreenList(ScreenList* screens) {
Lambros 2014/08/05 22:47:25 nit: Blank line between methods.
ronakvora do not use 2014/08/06 20:56:20 Done.
+ NOTIMPLEMENTED();
+ return false;
+}
+
+bool WindowCapturerScreenWrapper::SelectScreen(webrtc::ScreenId id) {
+ NOTIMPLEMENTED();
+ return false;
+}
+
+} // namespace remoting

Powered by Google App Engine
This is Rietveld 408576698