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

Unified Diff: ash/laser/laser_pointer_controller.h

Issue 2745953002: ash: Add basic prediction code to the laser pointer. (Closed)
Patch Set: more tests and nits Created 3 years, 9 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/common/ash_switches.cc ('k') | ash/laser/laser_pointer_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/laser/laser_pointer_controller.h
diff --git a/ash/laser/laser_pointer_controller.h b/ash/laser/laser_pointer_controller.h
index 57ae3cc0e1bca7c354e6fa4b6a0f71356ebb7f2a..c23b8009da619dcc6a555d638dc77172b77d8a6f 100644
--- a/ash/laser/laser_pointer_controller.h
+++ b/ash/laser/laser_pointer_controller.h
@@ -9,6 +9,7 @@
#include "ash/ash_export.h"
#include "base/macros.h"
+#include "base/time/time.h"
#include "ui/aura/window_observer.h"
#include "ui/events/event_handler.h"
#include "ui/gfx/geometry/point_f.h"
@@ -66,6 +67,9 @@ class ASH_EXPORT LaserPointerController : public ui::EventHandler,
std::unique_ptr<base::Timer> stationary_timer_;
int stationary_timer_repeat_count_ = 0;
+ // The presentation delay used for prediction by the laser pointer view.
+ base::TimeDelta presentation_delay_;
+
bool enabled_ = false;
// |is_fading_away_| determines whether the laser pointer view should accept
« no previous file with comments | « ash/common/ash_switches.cc ('k') | ash/laser/laser_pointer_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698