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

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

Issue 1085293002: ozone: caca: Update MouseEvent construction to fix compilation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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 | no next file » | 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 a8da8b40a1217611ead71505d2a8335e8be792da..fdd879259d87234a09d2b871d1a22a96a013d13b 100644
--- a/ui/ozone/platform/caca/caca_event_source.cc
+++ b/ui/ozone/platform/caca/caca_event_source.cc
@@ -9,6 +9,7 @@
#include "base/bind.h"
#include "base/message_loop/message_loop.h"
#include "ui/events/event.h"
+#include "ui/events/event_utils.h"
#include "ui/events/keycodes/keyboard_codes.h"
#include "ui/ozone/platform/caca/caca_window.h"
@@ -215,8 +216,8 @@ 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, flags, changed_flags);
+ ui::MouseEvent mouse_event(type, location, location, EventTimeForNow(),
+ flags, changed_flags);
window->OnCacaEvent(&mouse_event);
break;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698