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.
4
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.
8
9#ifndef CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_CONSTANTS_H_
10#define CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_CONSTANTS_H_
11
12#include "chrome/browser/ui/bookmarks/bookmark_bar_constants.h"
13
14namespace bookmarks {
15
16// Correction used for computing other values based on the height.
17const int kVisualHeightOffset = 2;
18
19// The amount of space between the inner bookmark bar and the outer toolbar on
20// new tab pages.
21const int kNTPBookmarkBarPadding =
22    (chrome::kNTPBookmarkBarHeight -
23        (chrome::kBookmarkBarHeight + kVisualHeightOffset)) / 2;
24
25// The height of buttons in the bookmark bar.
26const int kBookmarkButtonHeight =
27    chrome::kBookmarkBarHeight + kVisualHeightOffset;
28
29// The height of buttons in a bookmark bar folder menu.
30const CGFloat kBookmarkFolderButtonHeight = 24.0;
31
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.
34const CGFloat kBookmarkBarMenuCornerRadius = 4.0;
35
36// Overlap (in pixels) between the toolbar and the bookmark bar (when showing in
37// normal mode).
38const CGFloat kBookmarkBarOverlap = 3.0;
39
40}  // namespace bookmarks
41
42#endif  // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_CONSTANTS_H_
43