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 #pragma once 12 13 namespace bookmarks { 14 15 // Correction used for computing other values based on the height. 16 const int kVisualHeightOffset = 2; 17 18 // Bar height, when opened in "always visible" mode. This is actually a little 19 // smaller than it should be (by |kVisualHeightOffset| points) because of the 20 // visual overlap with the main toolbar. When using this to compute values 21 // other than the actual height of the toolbar, be sure to add 22 // |kVisualHeightOffset|. 23 const int kBookmarkBarHeight = 26; 24 25 // Our height, when visible in "new tab page" mode. 26 const int kNTPBookmarkBarHeight = 40; 27 28 // The amount of space between the inner bookmark bar and the outer toolbar on 29 // new tab pages. 30 const int kNTPBookmarkBarPadding = 31 (kNTPBookmarkBarHeight - (kBookmarkBarHeight + kVisualHeightOffset)) / 2; 32 33 // The height of buttons in the bookmark bar. 34 const int kBookmarkButtonHeight = kBookmarkBarHeight + kVisualHeightOffset; 35 36 // The height of buttons in a bookmark bar folder menu. 37 const CGFloat kBookmarkFolderButtonHeight = 24.0; 38 39 // The radius of the corner curves on the menu. Also used for sizing the shadow 40 // window behind the menu window at times when the menu can be scrolled. 41 const CGFloat kBookmarkBarMenuCornerRadius = 4.0; 42 43 } // namespace bookmarks 44 45 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_CONSTANTS_H_ 46