Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef UI_WAYLAND_WAYLAND_WIDGET_H_ | |
| 6 #define UI_WAYLAND_WAYLAND_WIDGET_H_ | |
| 7 | |
| 8 #include "ui/wayland/events/wayland_event.h" | |
| 9 | |
| 10 // WaylandWidget is an interface for processing Wayland events. | |
| 11 class WaylandWidget { | |
| 12 public: | |
| 13 virtual ~WaylandWidget() {}; | |
| 14 | |
| 15 virtual void OnMotionNotify(WaylandEvent event) = 0; | |
|
Evan Martin
2011/07/22 21:08:54
Should these be passed the more specific event typ
| |
| 16 virtual void OnButtonNotify(WaylandEvent event) = 0; | |
| 17 virtual void OnKeyNotify(WaylandEvent event) = 0; | |
| 18 virtual void OnPointerFocus(WaylandEvent event) = 0; | |
| 19 virtual void OnKeyboardFocus(WaylandEvent event) = 0; | |
| 20 | |
| 21 virtual void OnGeometryChange(WaylandEvent event) = 0; | |
| 22 }; | |
| 23 | |
| 24 #endif | |
| OLD | NEW |