| 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 namespace base { |
| 9 namespace wayland { |
| 10 union WaylandEvent; |
| 11 } |
| 12 } |
| 9 | 13 |
| 10 namespace ui { | 14 namespace ui { |
| 11 | 15 |
| 12 // WaylandWidget is an interface for processing Wayland events. | 16 // WaylandWidget is an interface for processing Wayland events. |
| 13 class WaylandWidget { | 17 class WaylandWidget { |
| 14 public: | 18 public: |
| 15 virtual ~WaylandWidget() {} | 19 virtual ~WaylandWidget() {} |
| 16 | 20 |
| 17 virtual void OnMotionNotify(WaylandEvent event) = 0; | 21 virtual void OnMotionNotify(base::wayland::WaylandEvent event) = 0; |
| 18 virtual void OnButtonNotify(WaylandEvent event) = 0; | 22 virtual void OnButtonNotify(base::wayland::WaylandEvent event) = 0; |
| 19 virtual void OnKeyNotify(WaylandEvent event) = 0; | 23 virtual void OnKeyNotify(base::wayland::WaylandEvent event) = 0; |
| 20 virtual void OnPointerFocus(WaylandEvent event) = 0; | 24 virtual void OnPointerFocus(base::wayland::WaylandEvent event) = 0; |
| 21 virtual void OnKeyboardFocus(WaylandEvent event) = 0; | 25 virtual void OnKeyboardFocus(base::wayland::WaylandEvent event) = 0; |
| 22 | 26 |
| 23 virtual void OnGeometryChange(WaylandEvent event) = 0; | 27 virtual void OnGeometryChange(base::wayland::WaylandEvent event) = 0; |
| 24 }; | 28 }; |
| 25 | 29 |
| 26 } // namespace ui | 30 } // namespace ui |
| 27 | 31 |
| 28 #endif // UI_WAYLAND_WAYLAND_WIDGET_H_ | 32 #endif // UI_WAYLAND_WAYLAND_WIDGET_H_ |
| OLD | NEW |