Skip to content

Remove resize limitation for PictureInPicture overlay window #12066

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 31, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/* Copyright (c) 2022 The Brave Authors. All rights reserved.
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/. */

#define BRAVE_UPDATE_MAX_SIZE max_size_ = work_area.size();

#include "src/chrome/browser/ui/views/overlay/overlay_window_views.cc"

#undef BRAVE_UPDATE_MAX_SIZE
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
diff --git a/chrome/browser/ui/views/overlay/overlay_window_views.cc b/chrome/browser/ui/views/overlay/overlay_window_views.cc
index 3f445de452d608500885351194c471cb821f9a04..bda47556ee8ff70e9fdf4cc010b398dd575342a7 100644
--- a/chrome/browser/ui/views/overlay/overlay_window_views.cc
+++ b/chrome/browser/ui/views/overlay/overlay_window_views.cc
@@ -1333,6 +1333,7 @@ void OverlayWindowViews::UpdateMaxSize(const gfx::Rect& work_area) {

max_size_ = new_max_size;

+ BRAVE_UPDATE_MAX_SIZE
if (!native_widget())
return;