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

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

Issue 6913026: Compact Navigation prototype (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 8 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
Index: chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc
diff --git a/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc b/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc
index 248b76d37f53f39d369f06e5e2c3d075bac06a89..bdaf701928bb3726e07f3165ddacc6e39076fc54 100644
--- a/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc
+++ b/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc
@@ -734,8 +734,8 @@ int BookmarkBarView::GetToolbarOverlap(bool return_max) const {
return kToolbarOverlap;
// When on the New Tab Page with an infobar, overlap by 0 whenever the infobar
// is above us (i.e. when we're detached), since drawing over the infobar
- // looks weird.
- if (IsDetached() && infobar_visible_)
+ // looks weird. If we're in compact nav mode, also overlap by zero.
Peter Kasting 2011/05/03 18:04:24 Nit: This additional comment just restates the cod
SteveT 2011/05/06 18:48:43 Turns out this check isn't necessary anymore. It w
+ if ((IsDetached() && infobar_visible_) || browser()->UseCompactNavigationBar())
Peter Kasting 2011/05/03 18:04:24 Nit: 80 columns
sky 2011/05/03 18:38:32 > 80. Also, NULL check browser_.
SteveT 2011/05/06 18:48:43 Done.
SteveT 2011/05/06 18:48:43 Done.
return 0;
// When on the New Tab Page with no infobar, animate the overlap between the
// attached and detached states.

Powered by Google App Engine
This is Rietveld 408576698