OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 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_OZONE_PLATFORM_WAYLAND_WAYLAND_WINDOW_H_ | 5 #ifndef UI_OZONE_PLATFORM_WAYLAND_WAYLAND_WINDOW_H_ |
6 #define UI_OZONE_PLATFORM_WAYLAND_WAYLAND_WINDOW_H_ | 6 #define UI_OZONE_PLATFORM_WAYLAND_WAYLAND_WINDOW_H_ |
7 | 7 |
8 #include "ui/gfx/geometry/rect.h" | 8 #include "ui/gfx/geometry/rect.h" |
9 #include "ui/gfx/native_widget_types.h" | 9 #include "ui/gfx/native_widget_types.h" |
| 10 #include "ui/ozone/ozone_export.h" |
10 #include "ui/ozone/platform/wayland/wayland_object.h" | 11 #include "ui/ozone/platform/wayland/wayland_object.h" |
11 #include "ui/platform_window/platform_window.h" | 12 #include "ui/platform_window/platform_window.h" |
12 | 13 |
13 namespace ui { | 14 namespace ui { |
14 | 15 |
15 class WaylandDisplay; | 16 class WaylandDisplay; |
16 | 17 |
17 class WaylandWindow : public PlatformWindow { | 18 class OZONE_EXPORT WaylandWindow : public PlatformWindow { |
18 public: | 19 public: |
19 WaylandWindow(PlatformWindowDelegate* delegate, | 20 WaylandWindow(PlatformWindowDelegate* delegate, |
20 WaylandDisplay* display, | 21 WaylandDisplay* display, |
21 const gfx::Rect& bounds); | 22 const gfx::Rect& bounds); |
22 ~WaylandWindow() override; | 23 ~WaylandWindow() override; |
23 | 24 |
24 bool Initialize(); | 25 bool Initialize(); |
25 | 26 |
26 wl_surface* GetSurface(); | 27 wl_surface* GetSurface(); |
27 gfx::AcceleratedWidget GetWidget(); | 28 gfx::AcceleratedWidget GetWidget(); |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 gfx::Rect bounds_; | 68 gfx::Rect bounds_; |
68 gfx::Rect pending_bounds_; | 69 gfx::Rect pending_bounds_; |
69 uint32_t pending_configure_serial_; | 70 uint32_t pending_configure_serial_; |
70 | 71 |
71 DISALLOW_COPY_AND_ASSIGN(WaylandWindow); | 72 DISALLOW_COPY_AND_ASSIGN(WaylandWindow); |
72 }; | 73 }; |
73 | 74 |
74 } // namespace ui | 75 } // namespace ui |
75 | 76 |
76 #endif // UI_OZONE_PLATFORM_WAYLAND_WAYLAND_WINDOW_H_ | 77 #endif // UI_OZONE_PLATFORM_WAYLAND_WAYLAND_WINDOW_H_ |
OLD | NEW |