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

Side by Side Diff: remoting/host/mouse_clamping_filter.h

Issue 667123002: Standardize usage of virtual/override/final in remoting/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef REMOTING_HOST_MOUSE_CLAMPING_FILTER_H_ 5 #ifndef REMOTING_HOST_MOUSE_CLAMPING_FILTER_H_
6 #define REMOTING_HOST_MOUSE_CLAMPING_FILTER_H_ 6 #define REMOTING_HOST_MOUSE_CLAMPING_FILTER_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "remoting/protocol/mouse_input_filter.h" 9 #include "remoting/protocol/mouse_input_filter.h"
10 #include "remoting/protocol/video_stub.h" 10 #include "remoting/protocol/video_stub.h"
11 11
12 namespace remoting { 12 namespace remoting {
13 13
14 // Filtering VideoStub implementation which configures a MouseInputFilter to 14 // Filtering VideoStub implementation which configures a MouseInputFilter to
15 // clamp mouse events to fall within the dimensions of the most-recently 15 // clamp mouse events to fall within the dimensions of the most-recently
16 // received video frame. 16 // received video frame.
17 class MouseClampingFilter : public protocol::VideoStub { 17 class MouseClampingFilter : public protocol::VideoStub {
18 public: 18 public:
19 explicit MouseClampingFilter(protocol::InputStub* input_stub); 19 explicit MouseClampingFilter(protocol::InputStub* input_stub);
20 virtual ~MouseClampingFilter(); 20 ~MouseClampingFilter() override;
21 21
22 protocol::InputStub* input_filter() { return &input_filter_; } 22 protocol::InputStub* input_filter() { return &input_filter_; }
23 23
24 void set_video_stub(protocol::VideoStub* video_stub) { 24 void set_video_stub(protocol::VideoStub* video_stub) {
25 video_stub_ = video_stub; 25 video_stub_ = video_stub;
26 } 26 }
27 27
28 // protocol::VideoStub implementation. 28 // protocol::VideoStub implementation.
29 virtual void ProcessVideoPacket(scoped_ptr<VideoPacket> video_packet, 29 void ProcessVideoPacket(scoped_ptr<VideoPacket> video_packet,
30 const base::Closure& done) override; 30 const base::Closure& done) override;
31 31
32 private: 32 private:
33 // Clamps mouse event coordinates to the video dimensions. 33 // Clamps mouse event coordinates to the video dimensions.
34 protocol::MouseInputFilter input_filter_; 34 protocol::MouseInputFilter input_filter_;
35 35
36 protocol::VideoStub* video_stub_; 36 protocol::VideoStub* video_stub_;
37 37
38 DISALLOW_COPY_AND_ASSIGN(MouseClampingFilter); 38 DISALLOW_COPY_AND_ASSIGN(MouseClampingFilter);
39 }; 39 };
40 40
41 } // namespace remoting 41 } // namespace remoting
42 42
43 #endif // REMOTING_HOST_MOUSE_CLAMPING_FILTER_H_ 43 #endif // REMOTING_HOST_MOUSE_CLAMPING_FILTER_H_
OLDNEW
« no previous file with comments | « remoting/host/me2me_desktop_environment.h ('k') | remoting/host/native_messaging/native_messaging_pipe.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698