blob: 0c0a9054975c9a169c16aa343c50001480bd9204 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Constants used for positioning the bookmark bar. These aren't placed in a
// different file because they're conditionally included in cross platform code
// and thus no Objective-C++ stuff.
#ifndef CHROME_BROWSER_COCOA_BOOKMARK_BAR_CONSTANTS_H_
#define CHROME_BROWSER_COCOA_BOOKMARK_BAR_CONSTANTS_H_
namespace bookmarks {
// Correction used for computing other values based on the height.
const int kVisualHeightOffset = 2;
// Bar height, when opened in "always visible" mode. This is actually a little
// smaller than it should be (by |kVisualHeightOffset| points) because of the
// visual overlap with the main toolbar. When using this to compute values
// other than the actual height of the toolbar, be sure to add
// |kVisualHeightOffset|.
const int kBookmarkBarHeight = 26;
// Our height, when visible in "new tab page" mode.
const int kNTPBookmarkBarHeight = 40;
// The amount of space between the inner bookmark bar and the outer toolbar on
// new tab pages.
const int kNTPBookmarkBarPadding =
(kNTPBookmarkBarHeight - (kBookmarkBarHeight + kVisualHeightOffset)) / 2;
// The height of buttons in the bookmark bar.
const int kBookmarkButtonHeight = kBookmarkBarHeight + kVisualHeightOffset;
} // namespace bookmarks
#endif // CHROME_BROWSER_COCOA_BOOKMARK_BAR_CONSTANTS_H_
|