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_ | |
6 #define ASH_LASER_LASER_POINTER_CONTROLLER_TESTAPI_H_ | |
7 | |
8 #include <memory> | |
9 | |
10 #include "base/macros.h" | |
11 #include "ui/gfx/geometry/point.h" | |
jdufault
2016/09/12 21:10:12
Is this include needed?
sammiequon
2016/09/13 01:09:56
Done.
| |
12 | |
13 namespace ash { | |
14 | |
15 class LaserPointerController; | |
16 class LaserPointerPoints; | |
17 class LaserPointerView; | |
18 | |
19 // An api for testing the laser_pointer_controller class. | |
jdufault
2016/09/12 21:10:12
laser_pointer_controller => LaserPointerController
sammiequon
2016/09/13 01:09:56
Done.
| |
20 class LaserPointerControllerTestApi { | |
21 public: | |
22 LaserPointerControllerTestApi( | |
23 std::unique_ptr<LaserPointerController> instance); | |
24 ~LaserPointerControllerTestApi(); | |
25 | |
26 void OnEnable(); | |
27 void OnDisable(); | |
28 const LaserPointerPoints& laser_points(); | |
29 LaserPointerView* laser_pointer_view(); | |
30 | |
31 private: | |
32 std::unique_ptr<LaserPointerController> instance_; | |
33 | |
34 DISALLOW_COPY_AND_ASSIGN(LaserPointerControllerTestApi); | |
35 }; | |
36 | |
37 } // namespace ash | |
38 | |
39 #endif // ASH_LASER_LASER_POINTER_CONTROLLER_TESTAPI_H_ | |
OLD | NEW |