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

Unified Diff: ash/laser/laser_pointer_controller_test_api.h

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.cc ('k') | ash/laser/laser_pointer_controller_test_api.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.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..6305c7688fbbedfdf26e4aa49de87c86f9e82d17
--- /dev/null
+++ b/ash/laser/laser_pointer_controller_test_api.h
@@ -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.
+
+#ifndef ASH_LASER_LASER_POINTER_CONTROLLER_TEST_API_H_
+#define ASH_LASER_LASER_POINTER_CONTROLLER_TEST_API_H_
+
+#include "base/macros.h"
+
+namespace ash {
+
+class LaserPointerController;
+class LaserPointerPoints;
+class LaserPointerView;
+
+// An api for testing the LaserPointerController class.
+class LaserPointerControllerTestApi {
+ public:
+ explicit LaserPointerControllerTestApi(LaserPointerController* instance);
+ ~LaserPointerControllerTestApi();
+
+ void SetEnabled(bool enabled);
+ bool IsShowingLaserPointer();
+ const LaserPointerPoints& laser_points();
+ LaserPointerView* laser_pointer_view();
+
+ private:
+ LaserPointerController* instance_;
+
+ DISALLOW_COPY_AND_ASSIGN(LaserPointerControllerTestApi);
+};
+
+} // namespace ash
+
+#endif // ASH_LASER_LASER_POINTER_CONTROLLER_TEST_API_H_
« no previous file with comments | « ash/laser/laser_pointer_controller.cc ('k') | ash/laser/laser_pointer_controller_test_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698