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