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

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

Issue 566673003: ozone: events: Centralize & document our NativeEvent woes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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: ui/ozone/platform/caca/caca_window.cc
diff --git a/ui/ozone/platform/caca/caca_window.cc b/ui/ozone/platform/caca/caca_window.cc
index 03a8ce31688f86d5358c61d9a6ed422431814eb4..ff2f5716e34bd1b9778cebcb54b894816c7c19e2 100644
--- a/ui/ozone/platform/caca/caca_window.cc
+++ b/ui/ozone/platform/caca/caca_window.cc
@@ -8,6 +8,7 @@
#include "base/debug/trace_event.h"
#include "base/logging.h"
#include "base/message_loop/message_loop.h"
+#include "ui/events/ozone/events_ozone.h"
#include "ui/events/platform/platform_event_source.h"
#include "ui/ozone/platform/caca/caca_event_source.h"
#include "ui/ozone/platform/caca/caca_window_manager.h"
@@ -102,7 +103,10 @@ void CacaWindow::OnCacaQuit() {
void CacaWindow::OnCacaEvent(ui::Event* event) {
- delegate_->DispatchEvent(event);
+ DispatchEventFromNativeUiEvent(
+ event,
+ base::Bind(&PlatformWindowDelegate::DispatchEvent,
+ base::Unretained(delegate_)));
}
gfx::Rect CacaWindow::GetBounds() { return gfx::Rect(bitmap_size_); }

Powered by Google App Engine
This is Rietveld 408576698