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

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

Issue 1228333004: Move code that doesn't depend on PPAPI out of remoting/client/plugin (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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
« no previous file with comments | « remoting/client/touch_input_scaler.h ('k') | remoting/client/touch_input_scaler_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/plugin/touch_input_scaler.h" 5 #include "remoting/client/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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 Scale(point->radius_x(), output_size_.width(), input_size_.width())); 77 Scale(point->radius_x(), output_size_.width(), input_size_.width()));
78 point->set_radius_y(Scale(point->radius_y(), output_size_.height(), 78 point->set_radius_y(Scale(point->radius_y(), output_size_.height(),
79 input_size_.height())); 79 input_size_.height()));
80 } 80 }
81 } 81 }
82 82
83 InputFilter::InjectTouchEvent(out_event); 83 InputFilter::InjectTouchEvent(out_event);
84 } 84 }
85 85
86 } // namespace remoting 86 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/client/touch_input_scaler.h ('k') | remoting/client/touch_input_scaler_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698