diff options
Diffstat (limited to 'ui/views/mus/platform_window_mus.h')
-rw-r--r-- | ui/views/mus/platform_window_mus.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/ui/views/mus/platform_window_mus.h b/ui/views/mus/platform_window_mus.h index 69c6dd3..f3e2a1c 100644 --- a/ui/views/mus/platform_window_mus.h +++ b/ui/views/mus/platform_window_mus.h @@ -9,6 +9,7 @@ #include <vector> #include "base/macros.h" +#include "components/mus/public/cpp/input_event_handler.h" #include "components/mus/public/cpp/window_observer.h" #include "ui/platform_window/platform_window.h" #include "ui/views/mus/mus_export.h" @@ -17,7 +18,8 @@ namespace views { class VIEWS_MUS_EXPORT PlatformWindowMus : public NON_EXPORTED_BASE(ui::PlatformWindow), - public mus::WindowObserver { + public mus::WindowObserver, + public NON_EXPORTED_BASE(mus::InputEventHandler) { public: PlatformWindowMus(ui::PlatformWindowDelegate* delegate, mus::Window* mus_window); @@ -57,14 +59,17 @@ class VIEWS_MUS_EXPORT PlatformWindowMus mus::Window* lost_focus) override; void OnWindowPredefinedCursorChanged(mus::Window* window, mus::mojom::Cursor cursor) override; - void OnWindowInputEvent(mus::Window* view, - const mus::mojom::EventPtr& event) override; void OnWindowSharedPropertyChanged( mus::Window* window, const std::string& name, const std::vector<uint8_t>* old_data, const std::vector<uint8_t>* new_data) override; + // mus::InputEventHandler: + void OnWindowInputEvent(mus::Window* view, + mus::mojom::EventPtr event, + scoped_ptr<base::Closure>* ack_callback) override; + ui::PlatformWindowDelegate* delegate_; mus::Window* mus_window_; mus::mojom::ShowState show_state_; |