| OLD | NEW |
| 1 // Copyright (c) 2011 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 | |
| 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_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_CONSTANTS_H_ |
| 10 #define CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_CONSTANTS_H_ | 6 #define CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_CONSTANTS_H_ |
| 11 | 7 |
| 12 #include <ApplicationServices/ApplicationServices.h> | 8 #include <ApplicationServices/ApplicationServices.h> |
| 13 | 9 |
| 14 #include "chrome/browser/ui/bookmarks/bookmark_bar_constants.h" | 10 #include "chrome/browser/ui/bookmarks/bookmark_bar_constants.h" |
| 15 | 11 |
| 12 // Constants used for positioning the bookmark bar. These aren't placed in a |
| 13 // different file because they're conditionally included in cross platform code |
| 14 // and thus no Objective-C++ stuff. |
| 16 namespace bookmarks { | 15 namespace bookmarks { |
| 17 | 16 |
| 18 // Correction used for computing other values based on the height. | 17 // Correction used for computing other values based on the height. |
| 19 const int kVisualHeightOffset = 2; | 18 const int kVisualHeightOffset = 2; |
| 20 const int kMaterialVisualHeightOffset = 2; | 19 const int kMaterialVisualHeightOffset = 2; |
| 21 | 20 |
| 22 // The amount of space between the inner bookmark bar and the outer toolbar on | 21 // The amount of space between the inner bookmark bar and the outer toolbar on |
| 23 // new tab pages. | 22 // new tab pages. |
| 24 const int kNTPBookmarkBarPadding = | 23 const int kNTPBookmarkBarPadding = |
| 25 (chrome::kNTPBookmarkBarHeight - | 24 (chrome::kNTPBookmarkBarHeight - |
| (...skipping 11 matching lines...) Expand all Loading... |
| 37 // window behind the menu window at times when the menu can be scrolled. | 36 // window behind the menu window at times when the menu can be scrolled. |
| 38 const CGFloat kBookmarkBarMenuCornerRadius = 4.0; | 37 const CGFloat kBookmarkBarMenuCornerRadius = 4.0; |
| 39 | 38 |
| 40 // Overlap (in pixels) between the toolbar and the bookmark bar (when showing in | 39 // Overlap (in pixels) between the toolbar and the bookmark bar (when showing in |
| 41 // normal mode). | 40 // normal mode). |
| 42 const CGFloat kBookmarkBarOverlap = 3.0; | 41 const CGFloat kBookmarkBarOverlap = 3.0; |
| 43 | 42 |
| 44 } // namespace bookmarks | 43 } // namespace bookmarks |
| 45 | 44 |
| 46 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_CONSTANTS_H_ | 45 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_CONSTANTS_H_ |
| OLD | NEW |