OLD | NEW |
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 const LaserPointerPoints& laser_points(); | 25 const LaserPointerPoints& laser_points(); |
25 LaserPointerView* laser_pointer_view(); | 26 LaserPointerView* laser_pointer_view(); |
26 | 27 |
27 private: | 28 private: |
28 LaserPointerController* instance_; | 29 LaserPointerController* instance_; |
29 | 30 |
30 DISALLOW_COPY_AND_ASSIGN(LaserPointerControllerTestApi); | 31 DISALLOW_COPY_AND_ASSIGN(LaserPointerControllerTestApi); |
31 }; | 32 }; |
32 | 33 |
33 } // namespace ash | 34 } // namespace ash |
34 | 35 |
35 #endif // ASH_LASER_LASER_POINTER_CONTROLLER_TEST_API_H_ | 36 #endif // ASH_LASER_LASER_POINTER_CONTROLLER_TEST_API_H_ |
OLD | NEW |