summaryrefslogtreecommitdiffstats
path: root/ui/wayland/wayland_widget.h
blob: f274141d0f951f72f63dd598d8338c8a823af964 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// 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 UI_WAYLAND_WAYLAND_WIDGET_H_
#define UI_WAYLAND_WAYLAND_WIDGET_H_

#include "ui/wayland/events/wayland_event.h"

namespace ui {

// 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;
};

}  // namespace ui

#endif  // UI_WAYLAND_WAYLAND_WIDGET_H_