Pass PlatformWindowInitProperties by value instead of const-ref.
Previously PlatformWindowInitProperties was passed to Ozone platform implementations as a const reference. This doesn't allow to pass movable parameters (e.g. handles) when creating platform windows. On Fuchsia it is necessary to pass view_owner_request when creating a view. view_owner_request wraps an handle, so it's not copyable. Updated all code that works with PlatformWindowInitProperties to pass it by value. Also updated DesktopWindowTreeHostPlatform to default to POPUP window type for any widget types other then WINDOW and MENU. Bug: 829980 Change-Id: I34c7a8fe957f364833a5e4eafd272794eec99b56 Reviewed-on: https://chromium-review.googlesource.com/1103223Reviewed-by:Scott Violet <sky@chromium.org> Commit-Queue: Sergey Ulanov <sergeyu@chromium.org> Cr-Commit-Position: refs/heads/master@{#568153}
Showing
Please register or sign in to comment