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

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

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 #ifndef ASH_LASER_LASER_POINTER_CONTROLLER_TEST_API_H_ 5 #ifndef ASH_LASER_LASER_POINTER_CONTROLLER_TEST_API_H_
6 #define ASH_LASER_LASER_POINTER_CONTROLLER_TEST_API_H_ 6 #define ASH_LASER_LASER_POINTER_CONTROLLER_TEST_API_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 9
10 namespace ash { 10 namespace ash {
11 11
12 class LaserPointerController; 12 class LaserPointerController;
13 class LaserPointerPoints; 13 class LaserPointerPoints;
14 class LaserPointerView; 14 class LaserPointerView;
15 15
16 // An api for testing the LaserPointerController class. 16 // An api for testing the LaserPointerController class.
17 class LaserPointerControllerTestApi { 17 class LaserPointerControllerTestApi {
18 public: 18 public:
19 explicit LaserPointerControllerTestApi(LaserPointerController* instance); 19 explicit LaserPointerControllerTestApi(LaserPointerController* instance);
20 ~LaserPointerControllerTestApi(); 20 ~LaserPointerControllerTestApi();
21 21
22 void SetEnabled(bool enabled); 22 void SetEnabled(bool enabled);
23 bool IsShowingLaserPointer(); 23 bool IsShowingLaserPointer();
24 bool IsFadingAway(); 24 bool IsFadingAway();
25 void SetIsFadingAway(bool fading_away); 25 void SetIsFadingAway(bool fading_away);
26 const LaserPointerPoints& laser_points(); 26 const LaserPointerPoints& laser_points();
27 const LaserPointerPoints& predicted_laser_points();
Daniel Erat 2017/03/16 20:18:30 unrelated to your change, but most of these could
reveman 2017/03/16 20:42:49 Fixed in latest patch.
27 LaserPointerView* laser_pointer_view(); 28 LaserPointerView* laser_pointer_view();
28 29
29 private: 30 private:
30 LaserPointerController* instance_; 31 LaserPointerController* instance_;
31 32
32 DISALLOW_COPY_AND_ASSIGN(LaserPointerControllerTestApi); 33 DISALLOW_COPY_AND_ASSIGN(LaserPointerControllerTestApi);
33 }; 34 };
34 35
35 } // namespace ash 36 } // namespace ash
36 37
37 #endif // ASH_LASER_LASER_POINTER_CONTROLLER_TEST_API_H_ 38 #endif // ASH_LASER_LASER_POINTER_CONTROLLER_TEST_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698