summaryrefslogtreecommitdiffstats
path: root/chrome/browser/cocoa/bookmark_bar_constants.h
diff options
context:
space:
mode:
authorjrg@chromium.org <jrg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-02 00:12:26 +0000
committerjrg@chromium.org <jrg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-02 00:12:26 +0000
commitc5726b841ef81c0a6432cfd18381b82767cc15da (patch)
tree10f578b72f3368e7aa15742b84eb6627d1f0e829 /chrome/browser/cocoa/bookmark_bar_constants.h
parent78263c1774421e5f451a549e754390cfbcc6b27e (diff)
downloadchromium_src-c5726b841ef81c0a6432cfd18381b82767cc15da.zip
chromium_src-c5726b841ef81c0a6432cfd18381b82767cc15da.tar.gz
chromium_src-c5726b841ef81c0a6432cfd18381b82767cc15da.tar.bz2
Add the "Other bookmarks" button on the right of the bookmark bar.
Lots of fixes to deal better with the floating bar on the NTP (e.g. chevron resize, chevron enabling only when there is overflow, ...) Move layoutSubviews logic from bookmark_bar_toolbar_view to bookmark_bar_controller to better honor MVC. BUG=http://crbug.com/24985, http://crbug.com/24827, http://crbug.com/22018 TEST=Lots of moves: New browser with no bookmarks. Go to New Tab Page. Show Bookmark Bar. See "Other Bookmarks" button on right. Do NOT see chevron. Hover over and click on Other Bookmarks to be sure it doesn't draw out of bounds. Disable bookmark bar (so it is now floating). Repeat hover/click test. Enable (so now attached). Add bookmarks until chevron shows up. Repeat hover/click test with chevron and Other Bookmarks. Make browser wider and thinner; each time repeat hover/click test. Detach bookmark bar (so floating on NTP). Make browser wider and thinner; each time repeat hover/click test. Carefully make browser wider/thinner so chevron appears/disappears. Make sure chevron never overlaps a bookmark. With chevron visible, quit & relaunch. Make sure chevron visible. With chevron NOT visible, quit & relaunch. Make sure chevron not visible. Review URL: http://codereview.chromium.org/348017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30684 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cocoa/bookmark_bar_constants.h')
-rw-r--r--chrome/browser/cocoa/bookmark_bar_constants.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/browser/cocoa/bookmark_bar_constants.h b/chrome/browser/cocoa/bookmark_bar_constants.h
index ba1b576..216fc8c 100644
--- a/chrome/browser/cocoa/bookmark_bar_constants.h
+++ b/chrome/browser/cocoa/bookmark_bar_constants.h
@@ -22,6 +22,9 @@ const int kNTPBookmarkBarHeight = 40;
const int kNTPBookmarkBarPadding =
(kNTPBookmarkBarHeight - kBookmarkBarHeight) / 2;
+// The height of buttons in the bookmark bar.
+const int kBookmarkButtonHeight = kBookmarkBarHeight;
+
} // namespace bookmarks
#endif // CHROME_BROWSER_COCOA_BOOKMARK_BAR_CONSTANTS_H_