OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | |
Wez
2015/01/21 03:08:38
Remove (c) - that's from some ancient license word
Rintaro Kuroiwa
2015/01/28 01:12:30
Done.
| |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef REMOTING_PROTOCOL_TOUCH_INPUT_FILTER_H_ | |
6 #define REMOTING_PROTOCOL_TOUCH_INPUT_FILTER_H_ | |
7 | |
8 #include "base/macros.h" | |
Wez
2015/01/21 03:08:38
What do we need base/macros.h explicitly pulling i
Rintaro Kuroiwa
2015/01/28 01:12:30
DISALLOW_COPY_AND_ASSIGN is defined there. It stil
| |
9 #include "remoting/protocol/input_filter.h" | |
10 #include "third_party/webrtc/modules/desktop_capture/desktop_geometry.h" | |
11 | |
12 namespace remoting { | |
13 namespace protocol { | |
14 | |
15 class TouchEvent; | |
16 | |
17 // TODO(rkuroiwa): Consider renaming this to TouchInputRescaler. | |
Wez
2015/01/21 03:08:38
Agreed; suggest TouchInputScaler.
Is this used at
Rintaro Kuroiwa
2015/01/28 01:12:30
Renaming to TouchInputScalar.
Looking at the Mous
| |
18 class TouchInputFilter : public InputFilter { | |
19 public: | |
20 TouchInputFilter(); | |
21 explicit TouchInputFilter(InputStub* input_stub); | |
22 ~TouchInputFilter() override; | |
23 | |
24 void set_input_size(const webrtc::DesktopSize& size); | |
Wez
2015/01/21 03:08:38
These two setters should match the names of the fi
Rintaro Kuroiwa
2015/01/28 01:12:30
Yes, I'm aware of it :) Renaming.
| |
25 | |
26 void set_output_size(const webrtc::DesktopSize& size); | |
27 | |
28 // Scales the coordinates to host x,y value. | |
Wez
2015/01/21 03:08:38
This comment doesn't add anything; this method is
Rintaro Kuroiwa
2015/01/28 01:12:30
Done.
| |
29 void InjectTouchEvent(const protocol::TouchEvent& event) override; | |
30 | |
31 private: | |
32 // Sizes for scaling the coordinates. | |
33 webrtc::DesktopSize input_max_; | |
34 webrtc::DesktopSize output_max_; | |
Wez
2015/01/21 03:08:38
nit: Why the max_ suffix? Surely we always scale t
Rintaro Kuroiwa
2015/01/28 01:12:30
Done.
| |
35 | |
36 DISALLOW_COPY_AND_ASSIGN(TouchInputFilter); | |
37 }; | |
38 | |
39 } // namespace protocol | |
40 } // namespace remoting | |
41 | |
42 #endif // REMOTING_PROTOCOL_TOUCH_INPUT_FILTER_H_ | |
OLD | NEW |