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

Unified Diff: ui/ozone/platform/dri/dri_cursor.cc

Issue 721823002: ozone: Interpret absolute events for graphics tablets (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@o
Patch Set: Add missing initialisers for class members on TabletEventConverterEvdev Created 6 years, 1 month 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 | « ui/ozone/platform/dri/dri_cursor.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/dri/dri_cursor.cc
diff --git a/ui/ozone/platform/dri/dri_cursor.cc b/ui/ozone/platform/dri/dri_cursor.cc
index 22d21726136cf157c911b694c3904ff3dc38e195..6eedd41a1f5f529a22d0d329b84c32342945436e 100644
--- a/ui/ozone/platform/dri/dri_cursor.cc
+++ b/ui/ozone/platform/dri/dri_cursor.cc
@@ -72,10 +72,22 @@ void DriCursor::MoveCursorTo(gfx::AcceleratedWidget widget,
hardware_->MoveHardwareCursor(cursor_window_, bitmap_location());
}
+void DriCursor::MoveCursorTo(const gfx::PointF& location) {
+ MoveCursorTo(cursor_window_, location);
+}
+
void DriCursor::MoveCursor(const gfx::Vector2dF& delta) {
MoveCursorTo(cursor_window_, cursor_location_ + delta);
}
+gfx::Rect DriCursor::GetCursorDisplayBounds() {
+ if (cursor_window_ == gfx::kNullAcceleratedWidget)
+ return gfx::Rect();
+
+ DriWindow* window = window_manager_->GetWindow(cursor_window_);
+ return window->GetBounds();
+}
+
gfx::AcceleratedWidget DriCursor::GetCursorWindow() {
return cursor_window_;
}
« no previous file with comments | « ui/ozone/platform/dri/dri_cursor.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698