1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 // Constants used for positioning the bookmark bar. These aren't placed in a
6 // different file because they're conditionally included in cross platform code
7 // and thus no Objective-C++ stuff.
9 #ifndef CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_CONSTANTS_H_
10 #define CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_CONSTANTS_H_
12 #include "chrome/browser/ui/bookmarks/bookmark_bar_constants.h"
16 // Correction used for computing other values based on the height.
17 const int kVisualHeightOffset
= 2;
19 // The amount of space between the inner bookmark bar and the outer toolbar on
21 const int kNTPBookmarkBarPadding
=
22 (chrome::kNTPBookmarkBarHeight
-
23 (chrome::kBookmarkBarHeight
+ kVisualHeightOffset
)) / 2;
25 // The height of buttons in the bookmark bar.
26 const int kBookmarkButtonHeight
=
27 chrome::kBookmarkBarHeight
+ kVisualHeightOffset
;
29 // The height of buttons in a bookmark bar folder menu.
30 const CGFloat kBookmarkFolderButtonHeight
= 24.0;
32 // The radius of the corner curves on the menu. Also used for sizing the shadow
33 // window behind the menu window at times when the menu can be scrolled.
34 const CGFloat kBookmarkBarMenuCornerRadius
= 4.0;
36 // Overlap (in pixels) between the toolbar and the bookmark bar (when showing in
38 const CGFloat kBookmarkBarOverlap
= 3.0;
40 } // namespace bookmarks
42 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_CONSTANTS_H_