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_DELEGATE_H_ |
| 6 #define UI_WAYLAND_WAYLAND_DELEGATE_H_ |
| 7 |
| 8 #include "ui/wayland/wayland_display.h" |
| 9 |
| 10 namespace base { |
| 11 namespace wayland { |
| 12 union WaylandEvent; |
| 13 } |
| 14 } |
| 15 |
| 16 namespace ui { |
| 17 |
| 18 // WaylandDelegate is an interface for processing Wayland events. |
| 19 class WaylandDelegate { |
| 20 public: |
| 21 virtual ~WaylandDelegate() {} |
| 22 |
| 23 virtual void OnMouseEvent(base::wayland::WaylandEvent* event) = 0; |
| 24 virtual void OnKeyNotify(base::wayland::WaylandEvent* event) = 0; |
| 25 virtual void OnKeyboardEnter(base::wayland::WaylandEvent* event) = 0; |
| 26 virtual void OnKeyboardLeave(base::wayland::WaylandEvent* event) = 0; |
| 27 virtual void OnMouseEnter(base::wayland::WaylandEvent* event) = 0; |
| 28 virtual void OnMouseLeave(base::wayland::WaylandEvent* event) = 0; |
| 29 virtual void OnGeometryChange(base::wayland::WaylandEvent* event) = 0; |
| 30 virtual void OnPaint(cairo_surface_t* &cairo_window_surface, |
| 31 cairo_rectangle_int_t ®ion) = 0; |
| 32 virtual void OnBoundsChanged(const gfx::Rect& old_bounds, |
| 33 const gfx::Rect& new_bounds) = 0; |
| 34 virtual void OnWindowDestroying() = 0; |
| 35 virtual void OnWindowDestroyed() = 0; |
| 36 |
| 37 // Returns the non-client component (see hit_test.h) containing |point|,
in |
| 38 // window coordinates. |
| 39 virtual int GetNonClientComponent(const gfx::Point& point) const = 0; |
| 40 }; |
| 41 |
| 42 } // namespace ui |
| 43 |
| 44 #endif // UI_WAYLAND_WAYLAND_DELEGATE_H_ |
OLD | NEW |