OLD | NEW |
(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_ |
OLD | NEW |