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

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: Fixes for comments. 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 explicit X11WindowOzone(PlatformWindowDelegate* delegate);
21 ~X11WindowOzone() override;
22
23 void Create();
24
25 // PlatformWindow:
26 void Close() override;
27 void SetCursor(PlatformCursor cursor) override;
28
29 // XEventDispatcher:
30 bool DispatchXEvent(XEvent* event) override;
31
32 private:
33 void Destroy();
34
35 // PlatformEventDispatcher:
36 bool CanDispatchEvent(const PlatformEvent& event) override;
37 uint32_t DispatchEvent(const PlatformEvent& event) override;
38
39 DISALLOW_COPY_AND_ASSIGN(X11WindowOzone);
40 };
41
42 } // namespace ui
43
44 #endif // UI_PLATFORM_WINDOW_X11_X11_WINDOW_OZONE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698