| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #include "chrome/browser/ui/views/harmony/layout_delegate.h" | 5 #include "chrome/browser/ui/views/harmony/layout_delegate.h" |
| 6 | 6 |
| 7 #include "base/lazy_instance.h" | 7 #include "base/lazy_instance.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "chrome/browser/ui/views/chrome_views_delegate.h" | 9 #include "chrome/browser/ui/views/chrome_views_delegate.h" |
| 10 #include "chrome/browser/ui/views/harmony/chrome_typography.h" | 10 #include "chrome/browser/ui/views/harmony/chrome_typography.h" |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 } | 83 } |
| 84 | 84 |
| 85 bool LayoutDelegate::ShouldShowWindowIcon() const { | 85 bool LayoutDelegate::ShouldShowWindowIcon() const { |
| 86 return true; | 86 return true; |
| 87 } | 87 } |
| 88 | 88 |
| 89 bool LayoutDelegate::IsHarmonyMode() const { | 89 bool LayoutDelegate::IsHarmonyMode() const { |
| 90 return false; | 90 return false; |
| 91 } | 91 } |
| 92 | 92 |
| 93 int LayoutDelegate::GetDialogPreferredWidth(DialogWidth width) const { | 93 int LayoutDelegate::GetSnappedDialogWidth(int width) const { |
| 94 return 0; | 94 return width; |
| 95 } | 95 } |
| 96 | 96 |
| 97 const views::TypographyProvider& LayoutDelegate::GetTypographyProvider() const { | 97 const views::TypographyProvider& LayoutDelegate::GetTypographyProvider() const { |
| 98 // This is not a data member because then HarmonyLayoutDelegate would inherit | 98 // This is not a data member because then HarmonyLayoutDelegate would inherit |
| 99 // it, even when it provides its own. | 99 // it, even when it provides its own. |
| 100 CR_DEFINE_STATIC_LOCAL(LegacyTypographyProvider, legacy_provider, ()); | 100 CR_DEFINE_STATIC_LOCAL(LegacyTypographyProvider, legacy_provider, ()); |
| 101 return legacy_provider; | 101 return legacy_provider; |
| 102 } | 102 } |
| OLD | NEW |