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

Unified Diff: chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc

Issue 2351593002: [MacViews] Anchor Bookmarks bubble to top-right corner. (Closed)
Patch Set: Self review Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc
diff --git a/chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc b/chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc
index e3e5e0aabaf991eaf66d8ec428addf06c11f37f2..2cb847721527d8ef9115400c3fac48b80da22fe0 100644
--- a/chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc
+++ b/chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc
@@ -80,6 +80,10 @@ views::Widget* BookmarkBubbleView::ShowBubble(
bookmark_bubble_ =
new BookmarkBubbleView(anchor_view, observer, std::move(delegate),
profile, url, !already_bookmarked);
+
+ bookmark_bubble_->set_arrow(views::BubbleBorder::TOP_RIGHT);
tapted 2016/09/19 07:24:35 ah! So I think the platform difference happens bec
Eugene But (OOO till 7-30) 2016/09/19 08:12:30 Why do you think that making a fix in LocationBarB
Eugene But (OOO till 7-30) 2016/09/20 00:02:51 This change does not break fullscreen on Windows.
tapted 2016/09/20 01:37:13 OK - I've convinced myself that this is an OK fix,
+ // TODO(crbug.com/642732): Mirror arrow once toolbar supports RTL.
+ bookmark_bubble_->set_mirror_arrow_in_rtl(false);
tapted 2016/09/19 07:24:35 I think we can just omit this for now. The problem
Eugene But (OOO till 7-30) 2016/09/19 08:12:30 Omitting this line would make Mac-Views Bookmarks
Eugene But (OOO till 7-30) 2016/09/20 00:02:51 Ok, this this change indeed breaks Windows in RTL,
if (!anchor_view) {
bookmark_bubble_->SetAnchorRect(anchor_rect);
bookmark_bubble_->set_parent_window(parent_window);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698