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

Side by Side Diff: ui/platform_window/x11/x11_window_ozone.h

Issue 1602173005: Add PlatformWindow/Event related code for Ozone X11. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 10 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
OLDNEW
(Empty)
1 // Copyright 2016 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_PLATFORM_WINDOW_X11_X11_WINDOW_OZONE_H_
6 #define UI_PLATFORM_WINDOW_X11_X11_WINDOW_OZONE_H_
7
8 #include "base/macros.h"
9 #include "ui/events/platform/platform_event_dispatcher.h"
10 #include "ui/events/platform/x11/x11_event_source_libevent.h"
11 #include "ui/platform_window/x11/x11_window_base.h"
12
13 namespace ui {
14
15 // PlatformWindow implementation for X11 Ozone. PlatformEvents are ui::Events.
16 class X11_WINDOW_EXPORT X11WindowOzone : public X11WindowBase,
17 public PlatformEventDispatcher,
18 public XEventDispatcher {
19 public:
20 X11WindowOzone(X11EventSourceLibevent* event_source,
21 PlatformWindowDelegate* delegate);
22 ~X11WindowOzone() override;
23
24 // PlatformWindow:
25 void SetCursor(PlatformCursor cursor) override;
26
27 // XEventDispatcher:
28 bool DispatchXEvent(XEvent* event) override;
29
30 private:
31 // PlatformEventDispatcher:
32 bool CanDispatchEvent(const PlatformEvent& event) override;
33 uint32_t DispatchEvent(const PlatformEvent& event) override;
34
35 X11EventSourceLibevent* event_source_;
36
37 DISALLOW_COPY_AND_ASSIGN(X11WindowOzone);
38 };
39
40 } // namespace ui
41
42 #endif // UI_PLATFORM_WINDOW_X11_X11_WINDOW_OZONE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698