| Index: chrome/browser/ui/views/harmony/harmony_layout_delegate.cc
|
| diff --git a/chrome/browser/ui/views/harmony/harmony_layout_delegate.cc b/chrome/browser/ui/views/harmony/harmony_layout_delegate.cc
|
| index 4988344b98b6c323edd062d3ee036b95eab3363d..f077d3b839d12a72b21bf344cbc82dcb5c8edc92 100644
|
| --- a/chrome/browser/ui/views/harmony/harmony_layout_delegate.cc
|
| +++ b/chrome/browser/ui/views/harmony/harmony_layout_delegate.cc
|
| @@ -42,3 +42,20 @@ int HarmonyLayoutDelegate::GetLayoutDistance(LayoutDistanceType type) const {
|
| bool HarmonyLayoutDelegate::UseExtraDialogPadding() const {
|
| return false;
|
| }
|
| +
|
| +bool HarmonyLayoutDelegate::IsHarmonyMode() const {
|
| + return true;
|
| +}
|
| +
|
| +int HarmonyLayoutDelegate::GetDialogPreferredWidth(DialogWidthType type) const {
|
| + switch (type) {
|
| + case DialogWidthType::SMALL:
|
| + return 320;
|
| + case DialogWidthType::MEDIUM:
|
| + return 448;
|
| + case DialogWidthType::LARGE:
|
| + return 512;
|
| + }
|
| + NOTREACHED();
|
| + return 0;
|
| +}
|
|
|