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

Issue 2351593002: [MacViews] Anchor Bookmarks bubble to top-right corner. (Closed)

Created:
4 years, 3 months ago by Eugene But (OOO till 7-30)
Modified:
4 years, 3 months ago
Reviewers:
tapted, Elly Fong-Jones, sky
CC:
chromium-reviews, tfarina
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[MacViews] Anchor Bookmarks bubble to top-right corner. Currently Bookmarks bubble is anchored to center-top, so its right part may be displayed offscreen. Regression happened after this CL: https://codereview.chromium.org/1759453002/patch/240001/250007 which defer anchoring to LocationBarBubbleDelegateView (which in it's turn uses NONE arrow, and makes center-top anchoring). bookmark_bubble_view.cc was the only bubble that lost its explicit TOP_RIGHT. So other bubbles don't need a similar update. Regression affects MacViews, but not other platforms, because other platforms infer a TOP_RIGHT in location_bar_bubble_delegate_view.cc. MacViews does not, because it's anchored to a point, not a View. This change restores anchoring to top right and does not impact other platforms (tested on Windows). The change makes MacViews version worse in RTL, because omnibox is not mirrored on mac. Since omnibox will be mirrored eventually, leaving it as it is. BUG=600209 Committed: https://crrev.com/a9f2053a36b4899fb312bec01a3362f65eafe785 Cr-Commit-Position: refs/heads/master@{#419877}

Patch Set 1 #

Patch Set 2 : Self review #

Total comments: 7

Patch Set 3 : Addressed review comment #

Patch Set 4 : Self review #

Total comments: 2

Patch Set 5 : Addressed review comment #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -0 lines) Patch
M chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc View 1 2 3 4 1 chunk +4 lines, -0 lines 2 comments Download

Messages

Total messages: 26 (12 generated)
Eugene But (OOO till 7-30)
I don't know if it's OK to make this change for Windows (and I don't ...
4 years, 3 months ago (2016-09-19 05:45:38 UTC) #6
tapted
wow this is tricky... https://codereview.chromium.org/2351593002/diff/20001/chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc File chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc (right): https://codereview.chromium.org/2351593002/diff/20001/chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc#newcode84 chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc:84: bookmark_bubble_->set_arrow(views::BubbleBorder::TOP_RIGHT); ah! So I think ...
4 years, 3 months ago (2016-09-19 07:24:35 UTC) #7
Eugene But (OOO till 7-30)
https://codereview.chromium.org/2351593002/diff/20001/chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc File chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc (right): https://codereview.chromium.org/2351593002/diff/20001/chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc#newcode84 chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc:84: bookmark_bubble_->set_arrow(views::BubbleBorder::TOP_RIGHT); On 2016/09/19 07:24:35, tapted wrote: > ah! So ...
4 years, 3 months ago (2016-09-19 08:12:30 UTC) #8
Eugene But (OOO till 7-30)
Thanks for review. PTAL https://codereview.chromium.org/2351593002/diff/20001/chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc File chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc (right): https://codereview.chromium.org/2351593002/diff/20001/chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc#newcode84 chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc:84: bookmark_bubble_->set_arrow(views::BubbleBorder::TOP_RIGHT); On 2016/09/19 08:12:30, Eugene ...
4 years, 3 months ago (2016-09-20 00:02:51 UTC) #10
tapted
lgtm with a comment and CL description tweak https://codereview.chromium.org/2351593002/diff/20001/chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc File chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc (right): https://codereview.chromium.org/2351593002/diff/20001/chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc#newcode84 chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc:84: bookmark_bubble_->set_arrow(views::BubbleBorder::TOP_RIGHT); ...
4 years, 3 months ago (2016-09-20 01:37:13 UTC) #11
Eugene But (OOO till 7-30)
Thanks! Updated CL description. https://codereview.chromium.org/2351593002/diff/60001/chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc File chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc (right): https://codereview.chromium.org/2351593002/diff/60001/chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc#newcode83 chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc:83: bookmark_bubble_->set_arrow(views::BubbleBorder::TOP_RIGHT); On 2016/09/20 01:37:13, tapted ...
4 years, 3 months ago (2016-09-20 01:57:45 UTC) #13
Eugene But (OOO till 7-30)
+sky for owners.
4 years, 3 months ago (2016-09-20 01:57:58 UTC) #15
sky
https://codereview.chromium.org/2351593002/diff/80001/chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc File chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc (right): https://codereview.chromium.org/2351593002/diff/80001/chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc#newcode83 chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc:83: // Bookmark bubble should always anchor TOP_RIGHT, but the ...
4 years, 3 months ago (2016-09-20 02:50:21 UTC) #16
Eugene But (OOO till 7-30)
https://codereview.chromium.org/2351593002/diff/80001/chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc File chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc (right): https://codereview.chromium.org/2351593002/diff/80001/chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc#newcode83 chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc:83: // Bookmark bubble should always anchor TOP_RIGHT, but the ...
4 years, 3 months ago (2016-09-20 03:11:23 UTC) #17
sky
Fair enough. LGTM
4 years, 3 months ago (2016-09-20 13:13:08 UTC) #18
Eugene But (OOO till 7-30)
Thanks!
4 years, 3 months ago (2016-09-20 21:52:23 UTC) #19
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/2351593002/80001
4 years, 3 months ago (2016-09-20 21:53:03 UTC) #22
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 3 months ago (2016-09-20 22:37:29 UTC) #24
commit-bot: I haz the power
4 years, 3 months ago (2016-09-20 22:39:33 UTC) #26
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/a9f2053a36b4899fb312bec01a3362f65eafe785
Cr-Commit-Position: refs/heads/master@{#419877}

Powered by Google App Engine
This is Rietveld 408576698