Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(571)

Issue 2247563002: Change status bubble rendering at hidpi and when there is no client edge (Closed)

Created:
4 years, 4 months ago by Bret
Modified:
4 years, 3 months ago
Reviewers:
Peter Kasting
CC:
chromium-reviews, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Change status bubble rendering at hidpi and when there is no client edge The recently removed client edge on Windows 10 made the status bubble overlap the window edge. This patch clips out the bubble border when the bubble is docked, and leaves it unchanged when it's floating. Also made the border always 1 pixel even at hidpi to make it look more consistent with the material UI. BUG=636479 Committed: https://crrev.com/e5a8ba6722632879cfa09ef0e7f8d7f4a99c5d4e Cr-Commit-Position: refs/heads/master@{#415216}

Patch Set 1 #

Total comments: 16

Patch Set 2 : refactored based on comments #

Total comments: 4

Patch Set 3 : fix clang compile #

Patch Set 4 : adjust layout #

Patch Set 5 : remove tmp file #

Total comments: 14

Patch Set 6 : nits #

Patch Set 7 : correct inset #

Total comments: 10

Patch Set 8 : comments and nits #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+143 lines, -75 lines) Patch
M chrome/browser/ui/views/frame/browser_view.h View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view.cc View 1 2 3 4 5 6 7 3 chunks +12 lines, -1 line 0 comments Download
M chrome/browser/ui/views/frame/glass_browser_frame_view.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/status_bubble_views.h View 1 2 chunks +5 lines, -1 line 0 comments Download
M chrome/browser/ui/views/status_bubble_views.cc View 1 2 3 4 5 6 7 15 chunks +121 lines, -72 lines 2 comments Download

Messages

Total messages: 33 (18 generated)
Bret
There are still some layout issues at hidpi but they're caused by the status bubble ...
4 years, 4 months ago (2016-08-13 00:16:51 UTC) #3
Peter Kasting
https://codereview.chromium.org/2247563002/diff/1/chrome/browser/ui/views/status_bubble_views.cc File chrome/browser/ui/views/status_bubble_views.cc (right): https://codereview.chromium.org/2247563002/diff/1/chrome/browser/ui/views/status_bubble_views.cc#newcode375 chrome/browser/ui/views/status_bubble_views.cc:375: gfx::Rect popup_bounds = popup_->GetWindowBoundsInScreen(); Nit: I would avoid GetWindowBoundsInScreen() ...
4 years, 4 months ago (2016-08-13 06:13:07 UTC) #4
Bret
https://codereview.chromium.org/2247563002/diff/1/chrome/browser/ui/views/status_bubble_views.cc File chrome/browser/ui/views/status_bubble_views.cc (right): https://codereview.chromium.org/2247563002/diff/1/chrome/browser/ui/views/status_bubble_views.cc#newcode375 chrome/browser/ui/views/status_bubble_views.cc:375: gfx::Rect popup_bounds = popup_->GetWindowBoundsInScreen(); On 2016/08/13 06:13:07, Peter Kasting ...
4 years, 4 months ago (2016-08-18 18:58:04 UTC) #5
Peter Kasting
https://codereview.chromium.org/2247563002/diff/20001/chrome/browser/ui/views/status_bubble_views.cc File chrome/browser/ui/views/status_bubble_views.cc (right): https://codereview.chromium.org/2247563002/diff/20001/chrome/browser/ui/views/status_bubble_views.cc#newcode431 chrome/browser/ui/views/status_bubble_views.cc:431: const int scale_error_adjustment = scale - std::floor(scale) > 0 ...
4 years, 4 months ago (2016-08-20 00:42:42 UTC) #14
Bret
https://codereview.chromium.org/2247563002/diff/20001/chrome/browser/ui/views/status_bubble_views.cc File chrome/browser/ui/views/status_bubble_views.cc (right): https://codereview.chromium.org/2247563002/diff/20001/chrome/browser/ui/views/status_bubble_views.cc#newcode431 chrome/browser/ui/views/status_bubble_views.cc:431: const int scale_error_adjustment = scale - std::floor(scale) > 0 ...
4 years, 3 months ago (2016-08-24 22:04:47 UTC) #16
Peter Kasting
My feeling reading this CL is it still seems wildly complicated and I don't understand ...
4 years, 3 months ago (2016-08-24 22:53:25 UTC) #18
Bret
Yes, this patch got pretty complicated, sorry! I ended up basically rewriting the entire way ...
4 years, 3 months ago (2016-08-25 18:05:38 UTC) #21
Bret
Updated with the code we talked about over email. PTAL
4 years, 3 months ago (2016-08-26 22:57:55 UTC) #22
Peter Kasting
LGTM https://codereview.chromium.org/2247563002/diff/120001/chrome/browser/ui/views/status_bubble_views.cc File chrome/browser/ui/views/status_bubble_views.cc (right): https://codereview.chromium.org/2247563002/diff/120001/chrome/browser/ui/views/status_bubble_views.cc#newcode430 chrome/browser/ui/views/status_bubble_views.cc:430: // the window as the scale increases. Nit: ...
4 years, 3 months ago (2016-08-27 04:07:31 UTC) #23
Bret
https://codereview.chromium.org/2247563002/diff/120001/chrome/browser/ui/views/status_bubble_views.cc File chrome/browser/ui/views/status_bubble_views.cc (right): https://codereview.chromium.org/2247563002/diff/120001/chrome/browser/ui/views/status_bubble_views.cc#newcode430 chrome/browser/ui/views/status_bubble_views.cc:430: // the window as the scale increases. On 2016/08/27 ...
4 years, 3 months ago (2016-08-29 21:57:42 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2247563002/140001
4 years, 3 months ago (2016-08-29 23:17:11 UTC) #27
Peter Kasting
https://codereview.chromium.org/2247563002/diff/140001/chrome/browser/ui/views/status_bubble_views.cc File chrome/browser/ui/views/status_bubble_views.cc (right): https://codereview.chromium.org/2247563002/diff/140001/chrome/browser/ui/views/status_bubble_views.cc#newcode425 chrome/browser/ui/views/status_bubble_views.cc:425: const int height = std::round(popup_size_.height() * scale); Oh, I ...
4 years, 3 months ago (2016-08-30 00:41:58 UTC) #28
Bret
https://codereview.chromium.org/2247563002/diff/140001/chrome/browser/ui/views/status_bubble_views.cc File chrome/browser/ui/views/status_bubble_views.cc (right): https://codereview.chromium.org/2247563002/diff/140001/chrome/browser/ui/views/status_bubble_views.cc#newcode425 chrome/browser/ui/views/status_bubble_views.cc:425: const int height = std::round(popup_size_.height() * scale); On 2016/08/30 ...
4 years, 3 months ago (2016-08-30 00:46:19 UTC) #29
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 3 months ago (2016-08-30 06:22:04 UTC) #31
commit-bot: I haz the power
4 years, 3 months ago (2016-08-30 06:24:34 UTC) #33
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/e5a8ba6722632879cfa09ef0e7f8d7f4a99c5d4e
Cr-Commit-Position: refs/heads/master@{#415216}

Powered by Google App Engine
This is Rietveld 408576698