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

Side by Side Diff: ui/ozone/platform/wayland/wayland_object.cc

Issue 2042503002: ozone/platform/wayland: Add support for wl_output_interface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: [For landding] update comments Created 4 years, 2 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
« no previous file with comments | « ui/ozone/platform/wayland/wayland_object.h ('k') | ui/ozone/platform/wayland/wayland_output.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #include "ui/ozone/platform/wayland/wayland_object.h" 5 #include "ui/ozone/platform/wayland/wayland_object.h"
6 6
7 #include <wayland-client.h> 7 #include <wayland-client.h>
8 #include <xdg-shell-unstable-v5-client-protocol.h> 8 #include <xdg-shell-unstable-v5-client-protocol.h>
9 9
10 namespace wl { 10 namespace wl {
(...skipping 19 matching lines...) Expand all
30 void (*ObjectTraits<wl_buffer>::deleter)(wl_buffer*) = &wl_buffer_destroy; 30 void (*ObjectTraits<wl_buffer>::deleter)(wl_buffer*) = &wl_buffer_destroy;
31 31
32 const wl_interface* ObjectTraits<wl_compositor>::interface = 32 const wl_interface* ObjectTraits<wl_compositor>::interface =
33 &wl_compositor_interface; 33 &wl_compositor_interface;
34 void (*ObjectTraits<wl_compositor>::deleter)(wl_compositor*) = 34 void (*ObjectTraits<wl_compositor>::deleter)(wl_compositor*) =
35 &wl_compositor_destroy; 35 &wl_compositor_destroy;
36 36
37 const wl_interface* ObjectTraits<wl_display>::interface = &wl_display_interface; 37 const wl_interface* ObjectTraits<wl_display>::interface = &wl_display_interface;
38 void (*ObjectTraits<wl_display>::deleter)(wl_display*) = &wl_display_disconnect; 38 void (*ObjectTraits<wl_display>::deleter)(wl_display*) = &wl_display_disconnect;
39 39
40 const wl_interface* ObjectTraits<wl_output>::interface = &wl_output_interface;
41 void (*ObjectTraits<wl_output>::deleter)(wl_output*) = &wl_output_destroy;
42
40 const wl_interface* ObjectTraits<wl_pointer>::interface = &wl_pointer_interface; 43 const wl_interface* ObjectTraits<wl_pointer>::interface = &wl_pointer_interface;
41 void (*ObjectTraits<wl_pointer>::deleter)(wl_pointer*) = &delete_pointer; 44 void (*ObjectTraits<wl_pointer>::deleter)(wl_pointer*) = &delete_pointer;
42 45
43 const wl_interface* ObjectTraits<wl_registry>::interface = 46 const wl_interface* ObjectTraits<wl_registry>::interface =
44 &wl_registry_interface; 47 &wl_registry_interface;
45 void (*ObjectTraits<wl_registry>::deleter)(wl_registry*) = &wl_registry_destroy; 48 void (*ObjectTraits<wl_registry>::deleter)(wl_registry*) = &wl_registry_destroy;
46 49
47 const wl_interface* ObjectTraits<wl_seat>::interface = &wl_seat_interface; 50 const wl_interface* ObjectTraits<wl_seat>::interface = &wl_seat_interface;
48 void (*ObjectTraits<wl_seat>::deleter)(wl_seat*) = &delete_seat; 51 void (*ObjectTraits<wl_seat>::deleter)(wl_seat*) = &delete_seat;
49 52
50 const wl_interface* ObjectTraits<wl_shm>::interface = &wl_shm_interface; 53 const wl_interface* ObjectTraits<wl_shm>::interface = &wl_shm_interface;
51 void (*ObjectTraits<wl_shm>::deleter)(wl_shm*) = &wl_shm_destroy; 54 void (*ObjectTraits<wl_shm>::deleter)(wl_shm*) = &wl_shm_destroy;
52 55
53 const wl_interface* ObjectTraits<wl_shm_pool>::interface = 56 const wl_interface* ObjectTraits<wl_shm_pool>::interface =
54 &wl_shm_pool_interface; 57 &wl_shm_pool_interface;
55 void (*ObjectTraits<wl_shm_pool>::deleter)(wl_shm_pool*) = &wl_shm_pool_destroy; 58 void (*ObjectTraits<wl_shm_pool>::deleter)(wl_shm_pool*) = &wl_shm_pool_destroy;
56 59
57 const wl_interface* ObjectTraits<wl_surface>::interface = &wl_surface_interface; 60 const wl_interface* ObjectTraits<wl_surface>::interface = &wl_surface_interface;
58 void (*ObjectTraits<wl_surface>::deleter)(wl_surface*) = &wl_surface_destroy; 61 void (*ObjectTraits<wl_surface>::deleter)(wl_surface*) = &wl_surface_destroy;
59 62
60 const wl_interface* ObjectTraits<xdg_shell>::interface = &xdg_shell_interface; 63 const wl_interface* ObjectTraits<xdg_shell>::interface = &xdg_shell_interface;
61 void (*ObjectTraits<xdg_shell>::deleter)(xdg_shell*) = &xdg_shell_destroy; 64 void (*ObjectTraits<xdg_shell>::deleter)(xdg_shell*) = &xdg_shell_destroy;
62 65
63 const wl_interface* ObjectTraits<xdg_surface>::interface = 66 const wl_interface* ObjectTraits<xdg_surface>::interface =
64 &xdg_surface_interface; 67 &xdg_surface_interface;
65 void (*ObjectTraits<xdg_surface>::deleter)(xdg_surface*) = &xdg_surface_destroy; 68 void (*ObjectTraits<xdg_surface>::deleter)(xdg_surface*) = &xdg_surface_destroy;
66 69
67 } // namespace wl 70 } // namespace wl
OLDNEW
« no previous file with comments | « ui/ozone/platform/wayland/wayland_object.h ('k') | ui/ozone/platform/wayland/wayland_output.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698