OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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 #ifndef CHROME_BROWSER_UI_BOOKMARKS_BOOKMARK_BAR_CONSTANTS_H_ | 5 #ifndef CHROME_BROWSER_UI_BOOKMARKS_BOOKMARK_BAR_CONSTANTS_H_ |
6 #define CHROME_BROWSER_UI_BOOKMARKS_BOOKMARK_BAR_CONSTANTS_H_ | 6 #define CHROME_BROWSER_UI_BOOKMARKS_BOOKMARK_BAR_CONSTANTS_H_ |
7 | 7 |
8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
9 | 9 |
10 namespace chrome { | 10 namespace chrome { |
11 | 11 |
12 // The height of Bookmarks Bar, when visible in "New Tab Page" mode. | 12 // The height of Bookmarks Bar, when visible in "New Tab Page" mode. |
13 #if defined(TOOLKIT_GTK) | 13 #if defined(TOOLKIT_VIEWS) || defined(OS_MACOSX) |
14 const int kNTPBookmarkBarHeight = 57; | |
15 #elif defined(TOOLKIT_VIEWS) || defined(OS_MACOSX) | |
16 const int kNTPBookmarkBarHeight = 40; | 14 const int kNTPBookmarkBarHeight = 40; |
17 #endif | 15 #endif |
18 | 16 |
19 // The height of Bookmarks Bar, when attached to the toolbar. | 17 // The height of Bookmarks Bar, when attached to the toolbar. |
20 #if defined(TOOLKIT_VIEWS) | 18 #if defined(TOOLKIT_VIEWS) |
21 const int kBookmarkBarHeight = 28; | 19 const int kBookmarkBarHeight = 28; |
22 #elif defined(OS_MACOSX) | 20 #elif defined(OS_MACOSX) |
23 // This is actually a little smaller than it should be (by |kVisualHeightOffset| | 21 // This is actually a little smaller than it should be (by |kVisualHeightOffset| |
24 // points) because of the visual overlap with the main toolbar. When using this | 22 // points) because of the visual overlap with the main toolbar. When using this |
25 // to compute values other than the actual height of the toolbar, be sure to add | 23 // to compute values other than the actual height of the toolbar, be sure to add |
26 // |kVisualHeightOffset|. | 24 // |kVisualHeightOffset|. |
27 const int kBookmarkBarHeight = 26; | 25 const int kBookmarkBarHeight = 26; |
28 #elif defined(TOOLKIT_GTK) | |
29 const int kBookmarkBarHeight = 29; | |
30 #endif | 26 #endif |
31 | 27 |
32 } // namespace chrome | 28 } // namespace chrome |
33 | 29 |
34 #endif // CHROME_BROWSER_UI_BOOKMARKS_BOOKMARK_BAR_CONSTANTS_H_ | 30 #endif // CHROME_BROWSER_UI_BOOKMARKS_BOOKMARK_BAR_CONSTANTS_H_ |
OLD | NEW |