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

Side by Side Diff: ash/laser/laser_pointer_controller_test_api.cc

Issue 2745953002: ash: Add basic prediction code to the laser pointer. (Closed)
Patch Set: Add unit test and fix nits Created 3 years, 9 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "ash/laser/laser_pointer_controller_test_api.h" 5 #include "ash/laser/laser_pointer_controller_test_api.h"
6 6
7 #include "ash/laser/laser_pointer_controller.h" 7 #include "ash/laser/laser_pointer_controller.h"
8 #include "ash/laser/laser_pointer_points.h" 8 #include "ash/laser/laser_pointer_points.h"
9 #include "ash/laser/laser_pointer_view.h" 9 #include "ash/laser/laser_pointer_view.h"
10 10
(...skipping 18 matching lines...) Expand all
29 } 29 }
30 30
31 void LaserPointerControllerTestApi::SetIsFadingAway(bool fading_away) { 31 void LaserPointerControllerTestApi::SetIsFadingAway(bool fading_away) {
32 instance_->is_fading_away_ = fading_away; 32 instance_->is_fading_away_ = fading_away;
33 } 33 }
34 34
35 const LaserPointerPoints& LaserPointerControllerTestApi::laser_points() { 35 const LaserPointerPoints& LaserPointerControllerTestApi::laser_points() {
36 return instance_->laser_pointer_view_->laser_points_; 36 return instance_->laser_pointer_view_->laser_points_;
37 } 37 }
38 38
39 const LaserPointerPoints&
40 LaserPointerControllerTestApi::predicted_laser_points() {
41 return instance_->laser_pointer_view_->predicted_laser_points_;
42 }
43
39 LaserPointerView* LaserPointerControllerTestApi::laser_pointer_view() { 44 LaserPointerView* LaserPointerControllerTestApi::laser_pointer_view() {
40 return instance_->laser_pointer_view_.get(); 45 return instance_->laser_pointer_view_.get();
41 } 46 }
42 47
43 } // namespace ash 48 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698