X11 and Ozone: fix use_x11 && use_x11 build for clipboard
When use_x11 && use_ozone are set to true at the same time, the compiler throws an error about multiple definitions of the Create() method for Clipboard. Thus, to fix that, create a separate source file for is_linux case that will choose what Clipboard impl to use based on the IsUsingOzonePlatform feature flag. Please note that this is a temp solution and it will be removed once use_x11 goes away. Please note that it's impossible to build use_x11 && use_ozone without some hacks in PlatformCursor code. The changes to that are on their way to upstream. Bug: 1085700 Change-Id: I3a32b261ec01fd2a751127b5abda1147575b8e18 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2247760 Commit-Queue: Maksim Sisov <msisov@igalia.com> Reviewed-by:Robert Kroeger <rjkroege@chromium.org> Reviewed-by:
Scott Violet <sky@chromium.org> Reviewed-by:
Thomas Anderson <thomasanderson@chromium.org> Cr-Commit-Position: refs/heads/master@{#779210}
Showing
Please register or sign in to comment