Chromium Code Reviews| 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_TESTAPI_H_ | |
|
jdufault
2016/09/16 18:43:54
nit: ..._TEST_API_H_
sammiequon
2016/09/16 19:21:03
Done.
| |
| 6 #define ASH_LASER_LASER_POINTER_CONTROLLER_TESTAPI_H_ | |
| 7 | |
| 8 #include <memory> | |
|
jdufault
2016/09/16 18:43:53
Needed?
sammiequon
2016/09/16 19:21:03
Done.
| |
| 9 | |
| 10 #include "base/macros.h" | |
| 11 | |
| 12 namespace ash { | |
| 13 | |
| 14 class LaserPointerController; | |
| 15 class LaserPointerPoints; | |
| 16 class LaserPointerView; | |
| 17 | |
| 18 // An api for testing the LaserPointerController class. | |
| 19 class LaserPointerControllerTestApi { | |
| 20 public: | |
| 21 explicit LaserPointerControllerTestApi(LaserPointerController* instance); | |
| 22 ~LaserPointerControllerTestApi(); | |
| 23 | |
| 24 void SetEnabled(bool enabled); | |
| 25 bool IsShowingLaserPointer(); | |
| 26 const LaserPointerPoints& laser_points(); | |
| 27 LaserPointerView* laser_pointer_view(); | |
| 28 | |
| 29 private: | |
| 30 LaserPointerController* instance_; | |
| 31 | |
| 32 DISALLOW_COPY_AND_ASSIGN(LaserPointerControllerTestApi); | |
| 33 }; | |
| 34 | |
| 35 } // namespace ash | |
| 36 | |
| 37 #endif // ASH_LASER_LASER_POINTER_CONTROLLER_TESTAPI_H_ | |
| OLD | NEW |