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

Unified Diff: services/ui/ws/platform_display_default.cc

Issue 2918553003: Implement a MoveCursorToScreenLocation for just the window manager. (Closed)
Patch Set: Thread to the PlatformWindow. Created 3 years, 7 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
Index: services/ui/ws/platform_display_default.cc
diff --git a/services/ui/ws/platform_display_default.cc b/services/ui/ws/platform_display_default.cc
index b474dcf52a765e27aed8565a41bd8d7646c9d228..a807396a839e082de9169b3a8338b2315db00625 100644
--- a/services/ui/ws/platform_display_default.cc
+++ b/services/ui/ws/platform_display_default.cc
@@ -139,6 +139,11 @@ void PlatformDisplayDefault::SetCursor(const ui::CursorData& cursor_data) {
platform_window_->SetCursor(native_cursor.platform());
}
+void PlatformDisplayDefault::MoveCursorTo(
+ const gfx::Point& window_pixel_location) {
+ platform_window_->MoveCursorTo(window_pixel_location);
+}
+
void PlatformDisplayDefault::UpdateTextInputState(
const ui::TextInputState& state) {
ui::PlatformImeController* ime = platform_window_->GetPlatformImeController();

Powered by Google App Engine
This is Rietveld 408576698