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

Unified Diff: remoting/host/mouse_clamping_filter.h

Issue 1472873005: Add VideoStream interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move_video_pump
Patch Set: Created 5 years, 1 month 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/client_session_unittest.cc ('k') | remoting/host/mouse_clamping_filter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/mouse_clamping_filter.h
diff --git a/remoting/host/mouse_clamping_filter.h b/remoting/host/mouse_clamping_filter.h
deleted file mode 100644
index 994abbe28a4776b122921b27a0e648a6cf90c36b..0000000000000000000000000000000000000000
--- a/remoting/host/mouse_clamping_filter.h
+++ /dev/null
@@ -1,43 +0,0 @@
-// Copyright (c) 2012 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_MOUSE_CLAMPING_FILTER_H_
-#define REMOTING_HOST_MOUSE_CLAMPING_FILTER_H_
-
-#include "base/compiler_specific.h"
-#include "remoting/protocol/mouse_input_filter.h"
-#include "remoting/protocol/video_stub.h"
-
-namespace remoting {
-
-// Filtering VideoStub implementation which configures a MouseInputFilter to
-// clamp mouse events to fall within the dimensions of the most-recently
-// received video frame.
-class MouseClampingFilter : public protocol::VideoStub {
- public:
- explicit MouseClampingFilter(protocol::InputStub* input_stub);
- ~MouseClampingFilter() override;
-
- protocol::InputStub* input_filter() { return &input_filter_; }
-
- void set_video_stub(protocol::VideoStub* video_stub) {
- video_stub_ = video_stub;
- }
-
- // protocol::VideoStub implementation.
- void ProcessVideoPacket(scoped_ptr<VideoPacket> video_packet,
- const base::Closure& done) override;
-
- private:
- // Clamps mouse event coordinates to the video dimensions.
- protocol::MouseInputFilter input_filter_;
-
- protocol::VideoStub* video_stub_;
-
- DISALLOW_COPY_AND_ASSIGN(MouseClampingFilter);
-};
-
-} // namespace remoting
-
-#endif // REMOTING_HOST_MOUSE_CLAMPING_FILTER_H_
« no previous file with comments | « remoting/host/client_session_unittest.cc ('k') | remoting/host/mouse_clamping_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698