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

Unified Diff: ui/events/ozone/evdev/cursor_delegate_evdev.h

Issue 2088533002: Refactor ozone drm cursor code for mojo (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 | ui/events/ozone/evdev/event_thread_evdev.cc » ('j') | ui/ozone/platform/drm/gpu/drm_thread.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/ozone/evdev/cursor_delegate_evdev.h
diff --git a/ui/events/ozone/evdev/cursor_delegate_evdev.h b/ui/events/ozone/evdev/cursor_delegate_evdev.h
index bba23d19be5f3a93e3f6d00b315079ca8a434b40..6a6820fe74abd9d921dbf4733375807ccc7efdc8 100644
--- a/ui/events/ozone/evdev/cursor_delegate_evdev.h
+++ b/ui/events/ozone/evdev/cursor_delegate_evdev.h
@@ -20,20 +20,25 @@ class EVENTS_OZONE_EVDEV_EXPORT CursorDelegateEvdev {
public:
virtual ~CursorDelegateEvdev() {}
- // Move the cursor.
+ // Move the cursor from the Evdev thread.
virtual void MoveCursor(const gfx::Vector2dF& delta) = 0;
+ // Move the cursor from the UI thread only.
virtual void MoveCursorTo(gfx::AcceleratedWidget widget,
const gfx::PointF& location) = 0;
+ // Move the cursor from the UI thread only.
virtual void MoveCursorTo(const gfx::PointF& location) = 0;
- // Location in screen.
+ // Location in screen. Either thread, IPC-free.
virtual gfx::PointF GetLocation() = 0;
- // Cursor visibility.
+ // Cursor visibility. Either thread, IPC-free.
virtual bool IsCursorVisible() = 0;
- // The bounds that the cursor is confined to.
+ // The bounds that the cursor is confined to. Either thread, IPC-free.
virtual gfx::Rect GetCursorConfinedBounds() = 0;
+
+ // Any necessary initialization from Evdev thread.
+ virtual void InitializeOnEvdev() = 0;
};
} // namespace ui
« no previous file with comments | « no previous file | ui/events/ozone/evdev/event_thread_evdev.cc » ('j') | ui/ozone/platform/drm/gpu/drm_thread.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698