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

Side by Side Diff: ash/laser/laser_pointer_controller_test_api.h

Issue 2311393004: Laser tool blocks events from propagating. (Closed)
Patch Set: Fixed patch set 2 errors. 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 #ifndef ASH_LASER_LASER_POINTER_CONTROLLER_TESTAPI_H_
6 #define ASH_LASER_LASER_POINTER_CONTROLLER_TESTAPI_H_
7
8 #include <memory>
9
10 #include "base/macros.h"
11
12 namespace ash {
13
14 class LaserPointerController;
15 class LaserPointerPoints;
16 class LaserPointerView;
17
18 // An api for testing the LaserPointerController class.
19 class LaserPointerControllerTestApi {
20 public:
21 explicit LaserPointerControllerTestApi(
22 std::unique_ptr<LaserPointerController> instance);
James Cook 2016/09/14 22:53:38 Hmm. It's unusual for a test API to own an instanc
sammiequon 2016/09/16 17:35:26 Done.
23 ~LaserPointerControllerTestApi();
24
25 void SetEnabled(bool enabled);
26 bool IsShowingLaserPointer();
27 const LaserPointerPoints& laser_points();
28 LaserPointerView* laser_pointer_view();
29
30 private:
31 std::unique_ptr<LaserPointerController> instance_;
James Cook 2016/09/14 22:53:38 and LaserPointerController* instance_ here.
sammiequon 2016/09/16 17:35:26 Done.
32
33 DISALLOW_COPY_AND_ASSIGN(LaserPointerControllerTestApi);
34 };
35
36 } // namespace ash
37
38 #endif // ASH_LASER_LASER_POINTER_CONTROLLER_TESTAPI_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698