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

Unified Diff: ui/ozone/platform/cast/platform_window_cast.h

Issue 2428383007: [Chromecast] Add input support. (Closed)
Patch Set: fix bad change Created 3 years, 11 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 | « ui/ozone/platform/cast/ozone_platform_cast.cc ('k') | ui/ozone/platform/cast/platform_window_cast.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/cast/platform_window_cast.h
diff --git a/ui/ozone/platform/cast/platform_window_cast.h b/ui/ozone/platform/cast/platform_window_cast.h
index 7e5f83cece6d15486a5beb9f7eb2e9e08295ce60..758e79a5c1d97b3a5ef7bc22dbe575780599718f 100644
--- a/ui/ozone/platform/cast/platform_window_cast.h
+++ b/ui/ozone/platform/cast/platform_window_cast.h
@@ -6,6 +6,7 @@
#define UI_OZONE_PLATFORM_CAST_PLATFORM_WINDOW_CAST_H_
#include "base/macros.h"
+#include "ui/events/platform/platform_event_dispatcher.h"
#include "ui/gfx/geometry/rect.h"
#include "ui/gfx/native_widget_types.h"
#include "ui/platform_window/platform_window.h"
@@ -14,10 +15,11 @@ namespace ui {
class PlatformWindowDelegate;
-class PlatformWindowCast : public PlatformWindow {
+class PlatformWindowCast : public PlatformWindow,
+ public PlatformEventDispatcher {
public:
PlatformWindowCast(PlatformWindowDelegate* delegate, const gfx::Rect& bounds);
- ~PlatformWindowCast() override {}
+ ~PlatformWindowCast() override;
// PlatformWindow implementation:
gfx::Rect GetBounds() override;
@@ -37,6 +39,10 @@ class PlatformWindowCast : public PlatformWindow {
void ConfineCursorToBounds(const gfx::Rect& bounds) override {}
PlatformImeController* GetPlatformImeController() override;
+ // PlatformEventDispatcher implementation:
+ bool CanDispatchEvent(const PlatformEvent& event) override;
+ uint32_t DispatchEvent(const PlatformEvent& event) override;
+
private:
PlatformWindowDelegate* delegate_;
gfx::Rect bounds_;
« no previous file with comments | « ui/ozone/platform/cast/ozone_platform_cast.cc ('k') | ui/ozone/platform/cast/platform_window_cast.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698