Commit 2070351c authored by Joel Hockey's avatar Joel Hockey Committed by Commit Bot

Fix tab grab width for apps with tabs

Ensures that apps with tabs still have the expected
tab grab width.

Bug: 846546
Change-Id: I43660db954cceb7097bae7998f030da2aa5e22cc
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1763269
Commit-Queue: Joel Hockey <joelhockey@chromium.org>
Reviewed-by: default avatarElly Fong-Jones <ellyjones@chromium.org>
Cr-Commit-Position: refs/heads/master@{#689169}
parent 3e8f2679
...@@ -668,9 +668,12 @@ int BrowserNonClientFrameViewAsh::GetTabStripLeftInset() const { ...@@ -668,9 +668,12 @@ int BrowserNonClientFrameViewAsh::GetTabStripLeftInset() const {
} }
int BrowserNonClientFrameViewAsh::GetTabStripRightInset() const { int BrowserNonClientFrameViewAsh::GetTabStripRightInset() const {
return ShouldShowCaptionButtons() int inset = 0;
? caption_button_container_->GetPreferredSize().width() if (ShouldShowCaptionButtons())
: 0; inset += caption_button_container_->GetPreferredSize().width();
if (hosted_app_button_container())
inset += hosted_app_button_container()->GetPreferredSize().width();
return inset;
} }
bool BrowserNonClientFrameViewAsh::ShouldPaint() const { bool BrowserNonClientFrameViewAsh::ShouldPaint() const {
......
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