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_COMMON_SYSTEM_CHROMEOS_PALETTE_TOOLS_LASER_POINTER_MODE_TESTAPI_H_ |
| 6 #define ASH_COMMON_SYSTEM_CHROMEOS_PALETTE_TOOLS_LASER_POINTER_MODE_TESTAPI_H_ |
| 7 |
| 8 #include <memory> |
| 9 |
| 10 #include "base/macros.h" |
| 11 #include "ui/gfx/geometry/point.h" |
| 12 |
| 13 namespace ash { |
| 14 |
| 15 class LaserPointerMode; |
| 16 class LaserPointerPoints; |
| 17 |
| 18 // An api for testing the laser_pointer_mode class. |
| 19 class LaserPointerModeTestApi { |
| 20 public: |
| 21 LaserPointerModeTestApi(std::unique_ptr<LaserPointerMode> instance); |
| 22 ~LaserPointerModeTestApi(); |
| 23 |
| 24 void OnEnable(); |
| 25 void OnDisable(); |
| 26 const LaserPointerPoints& laser_points(); |
| 27 const gfx::Point& current_mouse_location(); |
| 28 |
| 29 private: |
| 30 std::unique_ptr<LaserPointerMode> instance_; |
| 31 |
| 32 DISALLOW_COPY_AND_ASSIGN(LaserPointerModeTestApi); |
| 33 }; |
| 34 |
| 35 } // namespace ash |
| 36 |
| 37 #endif // ASH_COMMON_SYSTEM_CHROMEOS_PALETTE_TOOLS_LASER_POINTER_MODE_TESTAPI_H
_ |
OLD | NEW |