Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef UI_HARMONY_HARMONY_LAYOUT_DELEGATE_H_ | |
| 6 #define UI_HARMONY_HARMONY_LAYOUT_DELEGATE_H_ | |
| 7 | |
| 8 #include "ui/harmony/harmony_export.h" | |
| 9 #include "ui/views/layout/layout_delegate.h" | |
| 10 | |
| 11 namespace views { | |
| 12 class View; | |
| 13 } // namespace views | |
| 14 | |
| 15 namespace ui { | |
| 16 | |
| 17 class HARMONY_EXPORT HarmonyLayoutDelegate : public views::LayoutDelegate { | |
|
sky
2016/11/08 23:34:00
We are in the process of trying to cleanup the ui
| |
| 18 public: | |
| 19 // Returns the singleton HarmonyLayoutDelegate instance. | |
| 20 static HarmonyLayoutDelegate* Get(); | |
| 21 | |
| 22 // Convenience function: if Harmony mode is enabled, sets the | |
| 23 // HarmonyLayoutDelegate singleton instance to be |view|'s LayoutDelegate. | |
| 24 static void ApplyToViewIfNeeded(views::View* view); | |
| 25 | |
| 26 // views::LayoutDelegate: | |
| 27 int GetLayoutDistance(LayoutDistanceType type) const override; | |
| 28 bool UseExtraDialogPadding() const override; | |
| 29 }; | |
| 30 | |
| 31 } // namespace ui | |
| 32 | |
| 33 #endif // UI_HARMONY_HARMONY_LAYOUT_DELEGATE_H_ | |
| OLD | NEW |