| 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/harmony/harmony_layout_delegate.h" | 9 #include "chrome/browser/ui/views/harmony/harmony_layout_delegate.h" |
| 10 #include "ui/base/material_design/material_design_controller.h" | 10 #include "ui/base/material_design/material_design_controller.h" |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 return views::kButtonVEdgeMarginNew; | 38 return views::kButtonVEdgeMarginNew; |
| 39 case LayoutDistanceType::BUTTON_HEDGE_MARGIN_NEW: | 39 case LayoutDistanceType::BUTTON_HEDGE_MARGIN_NEW: |
| 40 return views::kButtonHEdgeMarginNew; | 40 return views::kButtonHEdgeMarginNew; |
| 41 } | 41 } |
| 42 NOTREACHED(); | 42 NOTREACHED(); |
| 43 return 0; | 43 return 0; |
| 44 } | 44 } |
| 45 | 45 |
| 46 views::GridLayout::Alignment LayoutDelegate::GetControlLabelGridAlignment() | 46 views::GridLayout::Alignment LayoutDelegate::GetControlLabelGridAlignment() |
| 47 const { | 47 const { |
| 48 return views::kControlLabelGridAlignment; | 48 return views::GridLayout::TRAILING; |
| 49 } | 49 } |
| 50 | 50 |
| 51 bool LayoutDelegate::UseExtraDialogPadding() const { | 51 bool LayoutDelegate::UseExtraDialogPadding() const { |
| 52 return true; | 52 return true; |
| 53 } | 53 } |
| 54 | 54 |
| 55 bool LayoutDelegate::IsHarmonyMode() const { | 55 bool LayoutDelegate::IsHarmonyMode() const { |
| 56 return false; | 56 return false; |
| 57 } | 57 } |
| 58 | 58 |
| 59 int LayoutDelegate::GetDialogPreferredWidth(DialogWidthType type) const { | 59 int LayoutDelegate::GetDialogPreferredWidth(DialogWidthType type) const { |
| 60 return 0; | 60 return 0; |
| 61 } | 61 } |
| OLD | NEW |