Popular sites on the NTP: check that experiment group StartsWith (rather than IS...
[chromium-blink-merge.git] / chrome / browser / ui / cocoa / bookmarks / bookmark_bar_constants.h
blob386eaf7a89893b6961baa0a898d2518f015029b0
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 <ApplicationServices/ApplicationServices.h>
14 #include "chrome/browser/ui/bookmarks/bookmark_bar_constants.h"
16 namespace bookmarks {
18 // Correction used for computing other values based on the height.
19 const int kVisualHeightOffset = 2;
21 // The amount of space between the inner bookmark bar and the outer toolbar on
22 // new tab pages.
23 const int kNTPBookmarkBarPadding =
24 (chrome::kNTPBookmarkBarHeight -
25 (chrome::kBookmarkBarHeight + kVisualHeightOffset)) / 2;
27 // The height of buttons in the bookmark bar.
28 const int kBookmarkButtonHeight =
29 chrome::kBookmarkBarHeight + kVisualHeightOffset;
31 // The height of buttons in a bookmark bar folder menu.
32 const CGFloat kBookmarkFolderButtonHeight = 24.0;
34 // The radius of the corner curves on the menu. Also used for sizing the shadow
35 // window behind the menu window at times when the menu can be scrolled.
36 const CGFloat kBookmarkBarMenuCornerRadius = 4.0;
38 // Overlap (in pixels) between the toolbar and the bookmark bar (when showing in
39 // normal mode).
40 const CGFloat kBookmarkBarOverlap = 3.0;
42 } // namespace bookmarks
44 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_CONSTANTS_H_