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

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: Split X11EventSource and X11Window. 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/x11/x11_event_source_ozone.h"
10 #include "ui/platform_window/x11/x11_window_base.h"
11
12 namespace ui {
13
14 // PlatformWindow implementation for X11 Ozone. PlatformEvents are ui::Events.
15 class X11_WINDOW_EXPORT X11WindowOzone : public X11WindowBase,
16 public XEventDispatcher {
17 public:
18 explicit X11WindowOzone(PlatformWindowDelegate* delegate);
19 ~X11WindowOzone() override;
20
21 void Create();
22
23 // PlatformWindow:
24 void SetCursor(PlatformCursor cursor) override;
25
26 // XEventDispatcher:
27 bool DispatchXEvent(XEvent* event) override;
28
29 private:
30 // PlatformEventDispatcher:
31 bool CanDispatchEvent(const PlatformEvent& event) override;
32 uint32_t DispatchEvent(const PlatformEvent& event) override;
33
34 DISALLOW_COPY_AND_ASSIGN(X11WindowOzone);
35 };
36
37 } // namespace ui
38
39 #endif // UI_PLATFORM_WINDOW_X11_X11_WINDOW_OZONE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698