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

Unified Diff: ash/laser/laser_pointer_controller.h

Issue 2716223002: ash: Use floating point precision for laser pointer. (Closed)
Patch Set: rebase and fix unit test Created 3 years, 10 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 | « no previous file | 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 8ccd0f40c7cd825eb3ecc7a9b8b8f223998efc0b..57ae3cc0e1bca7c354e6fa4b6a0f71356ebb7f2a 100644
--- a/ash/laser/laser_pointer_controller.h
+++ b/ash/laser/laser_pointer_controller.h
@@ -11,7 +11,7 @@
#include "base/macros.h"
#include "ui/aura/window_observer.h"
#include "ui/events/event_handler.h"
-#include "ui/gfx/geometry/point.h"
+#include "ui/gfx/geometry/point_f.h"
namespace base {
class Timer;
@@ -53,7 +53,7 @@ class ASH_EXPORT LaserPointerController : public ui::EventHandler,
// needed. Also adds the latest point at |event_location| and stops
// propagation of |event|.
void UpdateLaserPointerView(aura::Window* current_window,
- const gfx::Point& event_location,
+ const gfx::PointF& event_location,
ui::Event* event);
// Destroys |laser_pointer_view_|, if it exists.
@@ -75,7 +75,7 @@ class ASH_EXPORT LaserPointerController : public ui::EventHandler,
bool is_fading_away_ = false;
// The last seen stylus location in screen coordinates.
- gfx::Point current_stylus_location_;
+ gfx::PointF current_stylus_location_;
// |laser_pointer_view_| will only hold an instance when the laser pointer is
// enabled and activated (pressed or dragged).
« no previous file with comments | « no previous file | ash/laser/laser_pointer_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698