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

Side by Side Diff: ash/laser/laser_pointer_points_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_points.cc ('k') | ash/laser/laser_pointer_points_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_POINTS_TEST_API_H_ 5 #ifndef ASH_LASER_LASER_POINTER_POINTS_TEST_API_H_
6 #define ASH_LASER_LASER_POINTER_POINTS_TEST_API_H_ 6 #define ASH_LASER_LASER_POINTER_POINTS_TEST_API_H_
7 7
8 #include "ash/laser/laser_pointer_points.h"
8 #include "base/time/time.h" 9 #include "base/time/time.h"
9 10
10 namespace ash { 11 namespace ash {
11 12
12 class LaserPointerPoints;
13
14 // An api for testing the laser_pointer_points class. 13 // An api for testing the laser_pointer_points class.
15 class LaserPointerPointsTestApi { 14 class LaserPointerPointsTestApi {
16 public: 15 public:
17 LaserPointerPointsTestApi(LaserPointerPoints* instance); 16 LaserPointerPointsTestApi(LaserPointerPoints* instance);
18 ~LaserPointerPointsTestApi(); 17 ~LaserPointerPointsTestApi();
19 18
20 int GetNumberOfPoints() const; 19 int GetNumberOfPoints() const;
21 // Moves existing points back in time by |delta| and adds a new point at 20 // Moves existing points back in time by |delta| and adds a new point at
22 // (0,0). 21 // (0,0).
23 void MoveForwardInTime(const base::TimeDelta& delta); 22 void MoveForwardInTime(const base::TimeDelta& delta);
23 LaserPointerPoints::LaserPoint GetPointAtIndex(int index);
24 24
25 private: 25 private:
26 // The time the new points are added.
27 base::Time new_point_time_;
28 LaserPointerPoints* instance_; 26 LaserPointerPoints* instance_;
29 27
30 DISALLOW_COPY_AND_ASSIGN(LaserPointerPointsTestApi); 28 DISALLOW_COPY_AND_ASSIGN(LaserPointerPointsTestApi);
31 }; 29 };
32 } // namespace ash 30 } // namespace ash
33 31
34 #endif // ASH_LASER_LASER_POINTER_POINTS_TEST_API_H_ 32 #endif // ASH_LASER_LASER_POINTER_POINTS_TEST_API_H_
OLDNEW
« no previous file with comments | « ash/laser/laser_pointer_points.cc ('k') | ash/laser/laser_pointer_points_test_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698