// 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_ #pragma once 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_