| Index: ui/wayland/wayland_widget.h
|
| diff --git a/ui/wayland/wayland_widget.h b/ui/wayland/wayland_widget.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..c67d2da965234d337e71a6ad08471e590191c84d
|
| --- /dev/null
|
| +++ b/ui/wayland/wayland_widget.h
|
| @@ -0,0 +1,26 @@
|
| +// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef WAYLAND_WIDGET_H_
|
| +#define WAYLAND_WIDGET_H_
|
| +
|
| +#include "events/wayland_event.h"
|
| +
|
| +/*
|
| +WaylandWidget is an interface for processing Wayland events.
|
| +*/
|
| +class WaylandWidget {
|
| + public:
|
| + virtual ~WaylandWidget() {};
|
| +
|
| + virtual void OnMotionNotify(WaylandEvent event) = 0;
|
| + virtual void OnButtonNotify(WaylandEvent event) = 0;
|
| + virtual void OnKeyNotify(WaylandEvent event) = 0;
|
| + virtual void OnPointerFocus(WaylandEvent event) = 0;
|
| + virtual void OnKeyboardFocus(WaylandEvent event) = 0;
|
| +
|
| + virtual void OnGeometryChange(WaylandEvent event) = 0;
|
| +};
|
| +
|
| +#endif
|
|
|