Commit 2ae7eeb3 authored by Jennifer Apacible's avatar Jennifer Apacible Committed by Commit Bot

[Picture in Picture] Make minimum window size const.

BUG: 726621
Change-Id: I48fcd9addcf7a056563efa023ed1eea305f27233
Reviewed-on: https://chromium-review.googlesource.com/1060021Reviewed-by: default avatarBecca Hughes <beccahughes@chromium.org>
Commit-Queue: apacible <apacible@chromium.org>
Cr-Commit-Position: refs/heads/master@{#558895}
parent 37f2b6ec
...@@ -28,6 +28,8 @@ std::unique_ptr<content::OverlayWindow> content::OverlayWindow::Create( ...@@ -28,6 +28,8 @@ std::unique_ptr<content::OverlayWindow> content::OverlayWindow::Create(
} }
namespace { namespace {
const gfx::Size kMinWindowSize = gfx::Size(144, 100);
const int kBorderThickness = 5; const int kBorderThickness = 5;
const int kResizeAreaCornerSize = 16; const int kResizeAreaCornerSize = 16;
...@@ -137,8 +139,8 @@ gfx::Rect OverlayWindowViews::CalculateAndUpdateBounds() { ...@@ -137,8 +139,8 @@ gfx::Rect OverlayWindowViews::CalculateAndUpdateBounds() {
max_size_ = gfx::Size(work_area.width() / 2, work_area.height() / 2); max_size_ = gfx::Size(work_area.width() / 2, work_area.height() / 2);
// Lower bound size of the window is a fixed value to allow for minimal sizes // Lower bound size of the window is a fixed value to allow for minimal sizes
// on UI affordances, such as buttons. This is currently a placeholder value. // on UI affordances, such as buttons.
min_size_ = gfx::Size(144, 100); min_size_ = kMinWindowSize;
// Initial size of the window is always 20% of the display width and height, // Initial size of the window is always 20% of the display width and height,
// constrained by the min and max sizes. Only explicitly update this the first // constrained by the min and max sizes. Only explicitly update this the first
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment