OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Constants used for positioning the bookmark bar. These aren't placed in a | 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 | 6 // different file because they're conditionally included in cross platform code |
7 // and thus no Objective-C++ stuff. | 7 // and thus no Objective-C++ stuff. |
8 | 8 |
9 #ifndef CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_CONSTANTS_H_ | 9 #ifndef CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_CONSTANTS_H_ |
10 #define CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_CONSTANTS_H_ | 10 #define CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_CONSTANTS_H_ |
11 #pragma once | 11 #pragma once |
(...skipping 14 matching lines...) Expand all Loading... |
26 const int kNTPBookmarkBarHeight = 40; | 26 const int kNTPBookmarkBarHeight = 40; |
27 | 27 |
28 // The amount of space between the inner bookmark bar and the outer toolbar on | 28 // The amount of space between the inner bookmark bar and the outer toolbar on |
29 // new tab pages. | 29 // new tab pages. |
30 const int kNTPBookmarkBarPadding = | 30 const int kNTPBookmarkBarPadding = |
31 (kNTPBookmarkBarHeight - (kBookmarkBarHeight + kVisualHeightOffset)) / 2; | 31 (kNTPBookmarkBarHeight - (kBookmarkBarHeight + kVisualHeightOffset)) / 2; |
32 | 32 |
33 // The height of buttons in the bookmark bar. | 33 // The height of buttons in the bookmark bar. |
34 const int kBookmarkButtonHeight = kBookmarkBarHeight + kVisualHeightOffset; | 34 const int kBookmarkButtonHeight = kBookmarkBarHeight + kVisualHeightOffset; |
35 | 35 |
| 36 // The height of buttons in a bookmark bar folder menu. |
| 37 const CGFloat kBookmarkFolderButtonHeight = 24.0; |
| 38 |
36 // The radius of the corner curves on the menu. Also used for sizing the shadow | 39 // The radius of the corner curves on the menu. Also used for sizing the shadow |
37 // window behind the menu window at times when the menu can be scrolled. | 40 // window behind the menu window at times when the menu can be scrolled. |
38 const CGFloat kBookmarkBarMenuCornerRadius = 4.0; | 41 const CGFloat kBookmarkBarMenuCornerRadius = 4.0; |
39 | 42 |
40 } // namespace bookmarks | 43 } // namespace bookmarks |
41 | 44 |
42 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_CONSTANTS_H_ | 45 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_CONSTANTS_H_ |
OLD | NEW |