OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef ASH_LASER_LASER_POINTER_CONTROLLER_TEST_API_H_ |
| 6 #define ASH_LASER_LASER_POINTER_CONTROLLER_TEST_API_H_ |
| 7 |
| 8 #include "base/macros.h" |
| 9 |
| 10 namespace ash { |
| 11 |
| 12 class LaserPointerController; |
| 13 class LaserPointerPoints; |
| 14 class LaserPointerView; |
| 15 |
| 16 // An api for testing the LaserPointerController class. |
| 17 class LaserPointerControllerTestApi { |
| 18 public: |
| 19 explicit LaserPointerControllerTestApi(LaserPointerController* instance); |
| 20 ~LaserPointerControllerTestApi(); |
| 21 |
| 22 void SetEnabled(bool enabled); |
| 23 bool IsShowingLaserPointer(); |
| 24 const LaserPointerPoints& laser_points(); |
| 25 LaserPointerView* laser_pointer_view(); |
| 26 |
| 27 private: |
| 28 LaserPointerController* instance_; |
| 29 |
| 30 DISALLOW_COPY_AND_ASSIGN(LaserPointerControllerTestApi); |
| 31 }; |
| 32 |
| 33 } // namespace ash |
| 34 |
| 35 #endif // ASH_LASER_LASER_POINTER_CONTROLLER_TEST_API_H_ |
OLD | NEW |