Chromium Code Reviews| Index: ash/common/system/chromeos/palette/tools/laser_pointer_mode_test_api.cc |
| diff --git a/ash/common/system/chromeos/palette/tools/laser_pointer_mode_test_api.cc b/ash/common/system/chromeos/palette/tools/laser_pointer_mode_test_api.cc |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..469b4aa916a0cce9207f3564e797ba74decd1323 |
| --- /dev/null |
| +++ b/ash/common/system/chromeos/palette/tools/laser_pointer_mode_test_api.cc |
| @@ -0,0 +1,35 @@ |
| +// 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. |
| + |
| +#include "ash/common/system/chromeos/palette/tools/laser_pointer_mode_test_api.h" |
| + |
| +#include "ash/common/system/chromeos/palette/tools/laser_pointer_mode.h" |
| +#include "ash/common/system/chromeos/palette/tools/laser_pointer_points.h" |
| +#include "ash/common/system/chromeos/palette/tools/laser_pointer_view.h" |
| + |
| +namespace ash { |
| + |
| +LaserPointerModeTestApi::LaserPointerModeTestApi( |
| + std::unique_ptr<LaserPointerMode> instance) |
| + : instance_(std::move(instance)) {} |
| + |
| +LaserPointerModeTestApi::~LaserPointerModeTestApi() {} |
| + |
| +void LaserPointerModeTestApi::OnEnable() { |
| + instance_->OnEnable(); |
| +} |
| + |
| +void LaserPointerModeTestApi::OnDisable() { |
| + instance_->OnDisable(); |
| +} |
| + |
| +const LaserPointerPoints& LaserPointerModeTestApi::laser_points() { |
| + return instance_->laser_pointer_view_->laser_points_; |
| +} |
| + |
| +gfx::Point LaserPointerModeTestApi::current_mouse_location() { |
|
oshima
2016/08/24 23:01:03
const gfx::Point&
sammiequon
2016/08/25 17:59:04
Done.
|
| + return instance_->current_mouse_location_; |
| +} |
| + |
| +} // namespace ash |