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

Side by Side Diff: remoting/client/input/touch_input_scaler.cc

Issue 2903623002: Moving input related classes to the input folder. (Closed)
Patch Set: Working the build files to pull in the correct imports as needed. Created 3 years, 7 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #include "remoting/client/touch_input_scaler.h" 5 #include "remoting/client/input/touch_input_scaler.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "remoting/proto/event.pb.h" 8 #include "remoting/proto/event.pb.h"
9 9
10 namespace remoting { 10 namespace remoting {
11 11
12 using protocol::TouchEvent; 12 using protocol::TouchEvent;
13 using protocol::TouchEventPoint; 13 using protocol::TouchEventPoint;
14 14
15 namespace { 15 namespace {
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 Scale(point->radius_x(), output_size_.width(), input_size_.width())); 78 Scale(point->radius_x(), output_size_.width(), input_size_.width()));
79 point->set_radius_y(Scale(point->radius_y(), output_size_.height(), 79 point->set_radius_y(Scale(point->radius_y(), output_size_.height(),
80 input_size_.height())); 80 input_size_.height()));
81 } 81 }
82 } 82 }
83 83
84 InputFilter::InjectTouchEvent(out_event); 84 InputFilter::InjectTouchEvent(out_event);
85 } 85 }
86 86
87 } // namespace remoting 87 } // namespace remoting
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698