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

Unified Diff: ash/laser/laser_pointer_controller_test_api.cc

Issue 2361563002: chromeos: Laser tool blocks events from propagating. (Closed)
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/laser/laser_pointer_controller_test_api.h ('k') | ash/laser/laser_pointer_controller_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/laser/laser_pointer_controller_test_api.cc
diff --git a/ash/laser/laser_pointer_controller_test_api.cc b/ash/laser/laser_pointer_controller_test_api.cc
new file mode 100644
index 0000000000000000000000000000000000000000..eda09a9fa5f594ae45ef569390b5f57c9ecd7b2a
--- /dev/null
+++ b/ash/laser/laser_pointer_controller_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/laser/laser_pointer_controller_test_api.h"
+
+#include "ash/laser/laser_pointer_controller.h"
+#include "ash/laser/laser_pointer_points.h"
+#include "ash/laser/laser_pointer_view.h"
+
+namespace ash {
+
+LaserPointerControllerTestApi::LaserPointerControllerTestApi(
+ LaserPointerController* instance)
+ : instance_(instance) {}
+
+LaserPointerControllerTestApi::~LaserPointerControllerTestApi() {}
+
+void LaserPointerControllerTestApi::SetEnabled(bool enabled) {
+ instance_->SetEnabled(enabled);
+}
+
+bool LaserPointerControllerTestApi::IsShowingLaserPointer() {
+ return instance_->laser_pointer_view_ != nullptr;
+}
+
+const LaserPointerPoints& LaserPointerControllerTestApi::laser_points() {
+ return instance_->laser_pointer_view_->laser_points_;
+}
+
+LaserPointerView* LaserPointerControllerTestApi::laser_pointer_view() {
+ return instance_->laser_pointer_view_.get();
+}
+
+} // namespace ash
« no previous file with comments | « ash/laser/laser_pointer_controller_test_api.h ('k') | ash/laser/laser_pointer_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698