| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef UI_WAYLAND_WAYLAND_WIDGET_H_ | 5 #ifndef UI_WAYLAND_WAYLAND_WIDGET_H_ |
| 6 #define UI_WAYLAND_WAYLAND_WIDGET_H_ | 6 #define UI_WAYLAND_WAYLAND_WIDGET_H_ |
| 7 | 7 |
| 8 #include "ui/wayland/events/wayland_event.h" | 8 #include "base/wayland/wayland_event.h" |
| 9 |
| 10 using base::wayland::WaylandEvent; |
| 9 | 11 |
| 10 namespace ui { | 12 namespace ui { |
| 11 | 13 |
| 12 // WaylandWidget is an interface for processing Wayland events. | 14 // WaylandWidget is an interface for processing Wayland events. |
| 13 class WaylandWidget { | 15 class WaylandWidget { |
| 14 public: | 16 public: |
| 15 virtual ~WaylandWidget() {} | 17 virtual ~WaylandWidget() {} |
| 16 | 18 |
| 17 virtual void OnMotionNotify(WaylandEvent event) = 0; | 19 virtual void OnMotionNotify(WaylandEvent event) = 0; |
| 18 virtual void OnButtonNotify(WaylandEvent event) = 0; | 20 virtual void OnButtonNotify(WaylandEvent event) = 0; |
| 19 virtual void OnKeyNotify(WaylandEvent event) = 0; | 21 virtual void OnKeyNotify(WaylandEvent event) = 0; |
| 20 virtual void OnPointerFocus(WaylandEvent event) = 0; | 22 virtual void OnPointerFocus(WaylandEvent event) = 0; |
| 21 virtual void OnKeyboardFocus(WaylandEvent event) = 0; | 23 virtual void OnKeyboardFocus(WaylandEvent event) = 0; |
| 22 | 24 |
| 23 virtual void OnGeometryChange(WaylandEvent event) = 0; | 25 virtual void OnGeometryChange(WaylandEvent event) = 0; |
| 24 }; | 26 }; |
| 25 | 27 |
| 26 } // namespace ui | 28 } // namespace ui |
| 27 | 29 |
| 28 #endif // UI_WAYLAND_WAYLAND_WIDGET_H_ | 30 #endif // UI_WAYLAND_WAYLAND_WIDGET_H_ |
| OLD | NEW |