| Index: chrome/browser/ui/views/harmony/layout_delegate.h
|
| diff --git a/chrome/browser/ui/views/harmony/layout_delegate.h b/chrome/browser/ui/views/harmony/layout_delegate.h
|
| index 7768753b3ef2bf997534a9c411e79450ec3358f1..beff9d28854a2af1cb80aa967727e33b6962696c 100644
|
| --- a/chrome/browser/ui/views/harmony/layout_delegate.h
|
| +++ b/chrome/browser/ui/views/harmony/layout_delegate.h
|
| @@ -20,6 +20,12 @@ class LayoutDelegate {
|
| BUTTON_VEDGE_MARGIN_NEW,
|
| };
|
|
|
| + enum class DialogWidthType {
|
| + SMALL,
|
| + MEDIUM,
|
| + LARGE,
|
| + };
|
| +
|
| LayoutDelegate() {}
|
| virtual ~LayoutDelegate() {}
|
|
|
| @@ -46,6 +52,15 @@ class LayoutDelegate {
|
| // Views for dialogs should not insert extra padding at their own edges.
|
| virtual bool UseExtraDialogPadding() const;
|
|
|
| + // Returns whether Harmony mode is enabled. This method is deprecated and
|
| + // should only be used in dire circumstances, such as when Harmony specifies a
|
| + // different distance type than was previously used.
|
| + virtual bool IsHarmonyMode() const;
|
| +
|
| + // Returns the preferred width for a dialog of the specified width type. If
|
| + // there is no preferred width for |type|, returns 0.
|
| + virtual int GetDialogPreferredWidth(DialogWidthType type) const;
|
| +
|
| private:
|
| DISALLOW_COPY_AND_ASSIGN(LayoutDelegate);
|
| };
|
|
|