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

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

Issue 2712963003: mustash: Use ui::chromeos::EventRewriter in mus (Closed)
Patch Set: Fix compile issues Created 3 years, 10 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.h
diff --git a/services/ui/ws/platform_display_default.h b/services/ui/ws/platform_display_default.h
index 54d36d8b5e860bd2c47674e1a2b075a7af056472..9b72172c49b175585f619d641d9d47c819ab1556 100644
--- a/services/ui/ws/platform_display_default.h
+++ b/services/ui/ws/platform_display_default.h
@@ -13,6 +13,7 @@
#include "services/ui/ws/frame_generator_delegate.h"
#include "services/ui/ws/platform_display.h"
#include "services/ui/ws/platform_display_delegate.h"
+#include "ui/events/event_source.h"
#include "ui/platform_window/platform_window_delegate.h"
namespace ui {
@@ -25,6 +26,7 @@ namespace ws {
// PlatformDisplay implementation that connects to a PlatformWindow and
// FrameGenerator for Chrome OS.
class PlatformDisplayDefault : public PlatformDisplay,
+ public ui::EventSource,
public ui::PlatformWindowDelegate,
public FrameGeneratorDelegate {
public:
@@ -55,6 +57,9 @@ class PlatformDisplayDefault : public PlatformDisplay,
// TODO(riajiang): This is totally broken with HDPI.
void UpdateEventRootLocation(ui::LocatedEvent* event);
+ // ui::EventSource:
+ ui::EventProcessor* GetEventProcessor() override;
+
// ui::PlatformWindowDelegate:
void OnBoundsChanged(const gfx::Rect& new_bounds) override;
void OnDamageRect(const gfx::Rect& damaged_region) override;

Powered by Google App Engine
This is Rietveld 408576698