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_LAYOUT_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_HARMONY_LAYOUT_DELEGATE_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_HARMONY_LAYOUT_DELEGATE_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_HARMONY_LAYOUT_DELEGATE_H_ |
7 | 7 |
8 #include "ui/views/layout/grid_layout.h" | 8 #include "ui/views/layout/grid_layout.h" |
9 | 9 |
10 class LayoutDelegate { | 10 class LayoutDelegate { |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 // Instead of using this, create a generic solution that works for all UI | 89 // Instead of using this, create a generic solution that works for all UI |
90 // types, e.g. by adding a new LayoutDistance value that means what you need. | 90 // types, e.g. by adding a new LayoutDistance value that means what you need. |
91 // | 91 // |
92 // TODO(pkasting): Fix callers and remove this. | 92 // TODO(pkasting): Fix callers and remove this. |
93 virtual bool IsHarmonyMode() const; | 93 virtual bool IsHarmonyMode() const; |
94 | 94 |
95 // Returns the preferred width in DIPs for a dialog of the specified |width|. | 95 // Returns the preferred width in DIPs for a dialog of the specified |width|. |
96 // May return 0 if the dialog has no preferred width. | 96 // May return 0 if the dialog has no preferred width. |
97 virtual int GetDialogPreferredWidth(DialogWidth width) const; | 97 virtual int GetDialogPreferredWidth(DialogWidth width) const; |
98 | 98 |
| 99 // Returns whether to show the icon next to the title text on a dialog. |
| 100 virtual bool ShouldShowWindowIcon() const; |
| 101 |
99 private: | 102 private: |
100 DISALLOW_COPY_AND_ASSIGN(LayoutDelegate); | 103 DISALLOW_COPY_AND_ASSIGN(LayoutDelegate); |
101 }; | 104 }; |
102 | 105 |
103 #endif // CHROME_BROWSER_UI_VIEWS_HARMONY_LAYOUT_DELEGATE_H_ | 106 #endif // CHROME_BROWSER_UI_VIEWS_HARMONY_LAYOUT_DELEGATE_H_ |
OLD | NEW |