Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(85)

Side by Side Diff: ui/wayland/wayland_delegate.h

Issue 17265006: wayland patch for inspection Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/wayland/wayland.gyp ('k') | ui/wayland/wayland_display.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 &region) = 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_
OLDNEW
« no previous file with comments | « ui/wayland/wayland.gyp ('k') | ui/wayland/wayland_display.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698