Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(78)

Side by Side Diff: ash/common/system/chromeos/palette/tools/laser_pointer_mode_test_api.cc

Issue 2239743004: Palette tool laser prototype. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@patch
Patch Set: Rebased. Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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 #include "ash/common/system/chromeos/palette/tools/laser_pointer_mode_test_api.h "
6
7 #include "ash/common/system/chromeos/palette/tools/laser_pointer_mode.h"
8 #include "ash/common/system/chromeos/palette/tools/laser_pointer_points.h"
9 #include "ash/common/system/chromeos/palette/tools/laser_pointer_view.h"
10
11 namespace ash {
12
13 LaserPointerModeTestApi::LaserPointerModeTestApi(
14 std::unique_ptr<LaserPointerMode> instance)
15 : instance_(std::move(instance)) {}
16
17 LaserPointerModeTestApi::~LaserPointerModeTestApi() {}
18
19 void LaserPointerModeTestApi::OnEnable() {
20 instance_->OnEnable();
21 }
22
23 void LaserPointerModeTestApi::OnDisable() {
24 instance_->OnDisable();
25 }
26
27 const LaserPointerPoints& LaserPointerModeTestApi::laser_points() {
28 return instance_->laser_pointer_view_->laser_points_;
29 }
30
31 const gfx::Point& LaserPointerModeTestApi::current_mouse_location() {
32 return instance_->current_mouse_location_;
33 }
34
35 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698