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

Unified Diff: chrome/browser/ui/views/frame/browser_view.cc

Issue 1849563002: Re-order the BookmarkBarView to be behind the ToolbarView (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Polished fix Created 4 years, 9 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/frame/browser_view.cc
diff --git a/chrome/browser/ui/views/frame/browser_view.cc b/chrome/browser/ui/views/frame/browser_view.cc
index f0e4383ae15bd76c454c0d9a496ffc9c697c0f0d..81c672051755a40d2b96e773865646e45716b0bf 100644
--- a/chrome/browser/ui/views/frame/browser_view.cc
+++ b/chrome/browser/ui/views/frame/browser_view.cc
@@ -2222,6 +2222,10 @@ void BrowserView::SetBookmarkBarParent(views::View* new_parent) {
AddChildViewAt(bookmark_bar_view_.get(), top_container_index);
else
AddChildView(bookmark_bar_view_.get());
+ } else if (new_parent == top_container_) {
+ // Stack the |bookmark_bar_view_| behind the |toolbar_| surface so that
+ // |toolbar_| ink drops are visible on top of the |bookmark_bar_view_|.
+ new_parent->AddChildViewAt(bookmark_bar_view_.get(), 0);
Peter Kasting 2016/03/30 21:15:28 This may be better for sky than me; I'm not famili
bruthig 2016/03/30 21:27:00 As far as I can tell a user cannot tab between the
Peter Kasting 2016/03/30 21:28:42 Is the taborder between the toolbar children and t
sky 2016/03/31 01:07:16 Tab does wrap within the bookmarkbar. You can cycl
bruthig 2016/03/31 21:12:29 I'm slightly confused here, are there outstanding
Peter Kasting 2016/03/31 21:20:41 As long as it's not possible to actually tab direc
bruthig 2016/03/31 22:04:23 That is correct. Tab's will stay within the same
} else if (new_parent) {
// No special stacking is required for other parents.
new_parent->AddChildView(bookmark_bar_view_.get());
« 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