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

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

Issue 8378005: wayland: define base:NativeEvent for Wayland (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix per feedback. Created 9 years, 1 month 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_input_device.cc ('k') | ui/wayland/wayland_window.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_WAYLAND_WAYLAND_WIDGET_H_ 5 #ifndef UI_WAYLAND_WAYLAND_WIDGET_H_
6 #define UI_WAYLAND_WAYLAND_WIDGET_H_ 6 #define UI_WAYLAND_WAYLAND_WIDGET_H_
7 7
8 #include "ui/wayland/events/wayland_event.h" 8 namespace base {
9 namespace wayland {
10 union WaylandEvent;
11 }
12 }
9 13
10 namespace ui { 14 namespace ui {
11 15
12 // WaylandWidget is an interface for processing Wayland events. 16 // WaylandWidget is an interface for processing Wayland events.
13 class WaylandWidget { 17 class WaylandWidget {
14 public: 18 public:
15 virtual ~WaylandWidget() {} 19 virtual ~WaylandWidget() {}
16 20
17 virtual void OnMotionNotify(WaylandEvent event) = 0; 21 virtual void OnMotionNotify(base::wayland::WaylandEvent event) = 0;
18 virtual void OnButtonNotify(WaylandEvent event) = 0; 22 virtual void OnButtonNotify(base::wayland::WaylandEvent event) = 0;
19 virtual void OnKeyNotify(WaylandEvent event) = 0; 23 virtual void OnKeyNotify(base::wayland::WaylandEvent event) = 0;
20 virtual void OnPointerFocus(WaylandEvent event) = 0; 24 virtual void OnPointerFocus(base::wayland::WaylandEvent event) = 0;
21 virtual void OnKeyboardFocus(WaylandEvent event) = 0; 25 virtual void OnKeyboardFocus(base::wayland::WaylandEvent event) = 0;
22 26
23 virtual void OnGeometryChange(WaylandEvent event) = 0; 27 virtual void OnGeometryChange(base::wayland::WaylandEvent event) = 0;
24 }; 28 };
25 29
26 } // namespace ui 30 } // namespace ui
27 31
28 #endif // UI_WAYLAND_WAYLAND_WIDGET_H_ 32 #endif // UI_WAYLAND_WAYLAND_WIDGET_H_
OLDNEW
« no previous file with comments | « ui/wayland/wayland_input_device.cc ('k') | ui/wayland/wayland_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698