Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(55)

Unified Diff: chrome/browser/ui/infobar_container_delegate.cc

Issue 844333003: MacViews: Audit TOOLKIT_VIEWS in chrome/browser/ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Simpler #if condition Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/bookmarks/bookmark_bar_constants.h ('k') | chrome/browser/ui/tabs/tab_resources.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/infobar_container_delegate.cc
diff --git a/chrome/browser/ui/infobar_container_delegate.cc b/chrome/browser/ui/infobar_container_delegate.cc
index 24d85f623cdd23a5176b494f927795085fda93f6..25ec1a100e74bd8f62ccb6bf0b7d57d22bc1d1ed 100644
--- a/chrome/browser/ui/infobar_container_delegate.cc
+++ b/chrome/browser/ui/infobar_container_delegate.cc
@@ -10,14 +10,14 @@
#endif
// static
-#if defined(TOOLKIT_VIEWS)
-// Views comes first since Mac may eventually be Views-based.
+#if defined(OS_MACOSX)
+const int InfoBarContainerDelegate::kSeparatorLineHeight = 1;
+const int InfoBarContainerDelegate::kDefaultArrowTargetHeight = 11;
+#elif defined(TOOLKIT_VIEWS)
+// Views comes second until the Mac browser is Views-based.
const int InfoBarContainerDelegate::kSeparatorLineHeight =
views::NonClientFrameView::kClientEdgeThickness;
const int InfoBarContainerDelegate::kDefaultArrowTargetHeight = 9;
-#elif defined(OS_MACOSX)
-const int InfoBarContainerDelegate::kSeparatorLineHeight = 1;
-const int InfoBarContainerDelegate::kDefaultArrowTargetHeight = 11;
#endif
const int InfoBarContainerDelegate::kDefaultBarTargetHeight = 36;
« no previous file with comments | « chrome/browser/ui/bookmarks/bookmark_bar_constants.h ('k') | chrome/browser/ui/tabs/tab_resources.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698