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

Unified Diff: ui/ozone/platform/caca/caca_event_source.cc

Issue 1456163002: ozone: caca: Fix MouseEvent ctor & add PlatformWindow::SetWindowTitle override (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 | « no previous file | ui/ozone/platform/caca/caca_window.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/caca/caca_event_source.cc
diff --git a/ui/ozone/platform/caca/caca_event_source.cc b/ui/ozone/platform/caca/caca_event_source.cc
index 78d33442ac4ad21bd8bccebde6ad8df354c8bfd0..e4ddc70e693b7c7e871d2cdf8ef88837255d3228 100644
--- a/ui/ozone/platform/caca/caca_event_source.cc
+++ b/ui/ozone/platform/caca/caca_event_source.cc
@@ -216,8 +216,10 @@ void CacaEventSource::OnInputEvent(caca_event_t* event, CacaWindow* window) {
flags = modifier_flags_ | changed_flags;
}
gfx::PointF location = TranslateLocation(last_cursor_location_, window);
- ui::MouseEvent mouse_event(type, location, location, EventTimeForNow(),
- flags, changed_flags);
+ ui::MouseEvent mouse_event(type, gfx::Point(), gfx::Point(),
+ EventTimeForNow(), flags, changed_flags);
+ mouse_event.set_location_f(location);
+ mouse_event.set_root_location_f(location);
window->OnCacaEvent(&mouse_event);
break;
}
« no previous file with comments | « no previous file | ui/ozone/platform/caca/caca_window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698