| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_UI_VIEWS_HARMONY_HARMONY_VIEWS_LAYOUT_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_HARMONY_HARMONY_VIEWS_LAYOUT_DELEGATE_H_ |
| 7 |
| 8 #include <memory> |
| 9 |
| 10 #include "base/macros.h" |
| 11 #include "chrome/browser/ui/views/harmony/chrome_views_layout_delegate.h" |
| 12 #include "ui/gfx/geometry/insets.h" |
| 13 #include "ui/views/layout/grid_layout.h" |
| 14 |
| 15 class HarmonyViewsLayoutDelegate : public ChromeViewsLayoutDelegate { |
| 16 public: |
| 17 // The Harmony layout unit. All distances are in terms of this unit. |
| 18 static constexpr int kHarmonyLayoutUnit = 16; |
| 19 |
| 20 HarmonyViewsLayoutDelegate() {} |
| 21 ~HarmonyViewsLayoutDelegate() override {} |
| 22 |
| 23 gfx::Insets GetInsetsMetric(ChromeInsetsMetric metric) const override; |
| 24 int GetDistanceMetric(ChromeDistanceMetric metric) const override; |
| 25 views::GridLayout::Alignment GetControlLabelGridAlignment() const override; |
| 26 bool UseExtraDialogPadding() const override; |
| 27 bool ShouldShowWindowIcon() const override; |
| 28 bool IsHarmonyMode() const override; |
| 29 int GetDialogPreferredWidth(DialogWidth width) const override; |
| 30 |
| 31 private: |
| 32 DISALLOW_COPY_AND_ASSIGN(HarmonyViewsLayoutDelegate); |
| 33 }; |
| 34 |
| 35 #endif // CHROME_BROWSER_UI_VIEWS_HARMONY_HARMONY_VIEWS_LAYOUT_DELEGATE_H_ |
| OLD | NEW |