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

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

Issue 2362063002: cros: Laser pointer fades out on release, do not cover palette. (Closed)
Patch Set: Nit. Created 4 years, 2 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
« 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef ASH_LASER_LASER_POINTER_CONTROLLER_TEST_API_H_ 5 #ifndef ASH_LASER_LASER_POINTER_CONTROLLER_TEST_API_H_
6 #define ASH_LASER_LASER_POINTER_CONTROLLER_TEST_API_H_ 6 #define ASH_LASER_LASER_POINTER_CONTROLLER_TEST_API_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 9
10 namespace ash { 10 namespace ash {
11 11
12 class LaserPointerController; 12 class LaserPointerController;
13 class LaserPointerPoints; 13 class LaserPointerPoints;
14 class LaserPointerView; 14 class LaserPointerView;
15 15
16 // An api for testing the LaserPointerController class. 16 // An api for testing the LaserPointerController class.
17 class LaserPointerControllerTestApi { 17 class LaserPointerControllerTestApi {
18 public: 18 public:
19 explicit LaserPointerControllerTestApi(LaserPointerController* instance); 19 explicit LaserPointerControllerTestApi(LaserPointerController* instance);
20 ~LaserPointerControllerTestApi(); 20 ~LaserPointerControllerTestApi();
21 21
22 void SetEnabled(bool enabled); 22 void SetEnabled(bool enabled);
23 bool IsShowingLaserPointer(); 23 bool IsShowingLaserPointer();
24 bool IsFadingAway();
25 void SetIsFadingAway(bool fading_away);
24 const LaserPointerPoints& laser_points(); 26 const LaserPointerPoints& laser_points();
25 LaserPointerView* laser_pointer_view(); 27 LaserPointerView* laser_pointer_view();
26 28
27 private: 29 private:
28 LaserPointerController* instance_; 30 LaserPointerController* instance_;
29 31
30 DISALLOW_COPY_AND_ASSIGN(LaserPointerControllerTestApi); 32 DISALLOW_COPY_AND_ASSIGN(LaserPointerControllerTestApi);
31 }; 33 };
32 34
33 } // namespace ash 35 } // namespace ash
34 36
35 #endif // ASH_LASER_LASER_POINTER_CONTROLLER_TEST_API_H_ 37 #endif // ASH_LASER_LASER_POINTER_CONTROLLER_TEST_API_H_
OLDNEW
« 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