Chromium Code Reviews| Index: ash/laser/laser_pointer_controller_test_api.h |
| diff --git a/ash/laser/laser_pointer_controller_test_api.h b/ash/laser/laser_pointer_controller_test_api.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..b97f2228c0a80e6ef4deb4dccf5faeda43c0db81 |
| --- /dev/null |
| +++ b/ash/laser/laser_pointer_controller_test_api.h |
| @@ -0,0 +1,39 @@ |
| +// Copyright 2016 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef ASH_LASER_LASER_POINTER_CONTROLLER_TESTAPI_H_ |
| +#define ASH_LASER_LASER_POINTER_CONTROLLER_TESTAPI_H_ |
| + |
| +#include <memory> |
| + |
| +#include "base/macros.h" |
| +#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.
|
| + |
| +namespace ash { |
| + |
| +class LaserPointerController; |
| +class LaserPointerPoints; |
| +class LaserPointerView; |
| + |
| +// 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.
|
| +class LaserPointerControllerTestApi { |
| + public: |
| + LaserPointerControllerTestApi( |
| + std::unique_ptr<LaserPointerController> instance); |
| + ~LaserPointerControllerTestApi(); |
| + |
| + void OnEnable(); |
| + void OnDisable(); |
| + const LaserPointerPoints& laser_points(); |
| + LaserPointerView* laser_pointer_view(); |
| + |
| + private: |
| + std::unique_ptr<LaserPointerController> instance_; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(LaserPointerControllerTestApi); |
| +}; |
| + |
| +} // namespace ash |
| + |
| +#endif // ASH_LASER_LASER_POINTER_CONTROLLER_TESTAPI_H_ |