Chromium Code Reviews| 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 #ifndef CHROME_BROWSER_UI_VIEWS_HARMONY_HARMONY_LAYOUT_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_HARMONY_HARMONY_LAYOUT_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_HARMONY_HARMONY_LAYOUT_DELEGATE_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_HARMONY_HARMONY_LAYOUT_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "chrome/browser/ui/views/harmony/layout_delegate.h" | 8 #include "chrome/browser/ui/views/harmony/layout_delegate.h" |
| 9 | 9 |
| 10 class HarmonyLayoutDelegate : public LayoutDelegate { | 10 class HarmonyLayoutDelegate : public LayoutDelegate { |
| 11 public: | 11 public: |
| 12 HarmonyLayoutDelegate() {} | 12 HarmonyLayoutDelegate() {} |
| 13 ~HarmonyLayoutDelegate() override {} | 13 ~HarmonyLayoutDelegate() override {} |
| 14 | 14 |
| 15 // Returns the singleton HarmonyLayoutDelegate instance. | 15 // Returns the singleton HarmonyLayoutDelegate instance. |
| 16 static HarmonyLayoutDelegate* Get(); | 16 static HarmonyLayoutDelegate* Get(); |
| 17 | 17 |
| 18 // The Harmony layout unit. All distances are in terms of this unit. | |
| 19 static const int kHarmonyLayoutUnit = 16; | |
|
sky
2016/11/17 18:18:34
style guide says constants should be before constr
| |
| 20 | |
| 18 // views::LayoutDelegate: | 21 // views::LayoutDelegate: |
| 19 int GetLayoutDistance(LayoutDistanceType type) const override; | 22 int GetLayoutDistance(LayoutDistanceType type) const override; |
| 20 bool UseExtraDialogPadding() const override; | 23 bool UseExtraDialogPadding() const override; |
| 21 | 24 |
| 22 private: | 25 private: |
| 23 DISALLOW_COPY_AND_ASSIGN(HarmonyLayoutDelegate); | 26 DISALLOW_COPY_AND_ASSIGN(HarmonyLayoutDelegate); |
| 24 }; | 27 }; |
| 25 | 28 |
| 26 #endif // CHROME_BROWSER_UI_VIEWS_HARMONY_HARMONY_LAYOUT_DELEGATE_H_ | 29 #endif // CHROME_BROWSER_UI_VIEWS_HARMONY_HARMONY_LAYOUT_DELEGATE_H_ |
| OLD | NEW |