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

Unified Diff: remoting/host/mouse_clamping_filter.h

Issue 11817048: Revert 175648 because it causes http://crbug.com/169126. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 11 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/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
===================================================================
--- remoting/host/mouse_clamping_filter.h (revision 176125)
+++ remoting/host/mouse_clamping_filter.h (working copy)
@@ -7,31 +7,26 @@
#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 {
+class VideoFrameCapturer;
+
+// Filtering InputStub implementation which clamps mouse each mouse event to
+// the current dimensions of a VideoFrameCapturer instance before passing
+// them on to the target |input_stub|.
+class MouseClampingFilter : public protocol::MouseInputFilter {
public:
- MouseClampingFilter(protocol::InputStub* input_stub,
- protocol::VideoStub* video_stub);
+ MouseClampingFilter(VideoFrameCapturer* capturer,
+ protocol::InputStub* input_stub);
virtual ~MouseClampingFilter();
- protocol::InputStub* input_filter() { return &input_filter_; }
+ // InputStub overrides.
+ virtual void InjectMouseEvent(const protocol::MouseEvent& event) OVERRIDE;
- // protocol::VideoStub implementation.
- virtual 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_;
+ VideoFrameCapturer* capturer_;
- protocol::VideoStub* video_stub_;
-
DISALLOW_COPY_AND_ASSIGN(MouseClampingFilter);
};
« 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