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 namespace views { | 10 namespace views { |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
99 // DEPRECATED. Returns whether Harmony mode is enabled. | 99 // DEPRECATED. Returns whether Harmony mode is enabled. |
100 // | 100 // |
101 // Instead of using this, create a generic solution that works for all UI | 101 // Instead of using this, create a generic solution that works for all UI |
102 // types, e.g. by adding a new LayoutDistance value that means what you need. | 102 // types, e.g. by adding a new LayoutDistance value that means what you need. |
103 // | 103 // |
104 // TODO(pkasting): Fix callers and remove this. | 104 // TODO(pkasting): Fix callers and remove this. |
105 virtual bool IsHarmonyMode() const; | 105 virtual bool IsHarmonyMode() const; |
106 | 106 |
107 // Returns the preferred width in DIPs for a dialog of the specified |width|. | 107 // Returns the preferred width in DIPs for a dialog of the specified |width|. |
108 // May return 0 if the dialog has no preferred width. | 108 // May return 0 if the dialog has no preferred width. |
109 virtual int GetDialogPreferredWidth(DialogWidth width) const; | 109 virtual int GetSnappedDialogWidth(int width) const; |
tapted
2017/03/29 23:16:16
perhaps width->min_width? or preferred_width?
Elly Fong-Jones
2017/04/05 18:17:53
Done.
| |
110 | 110 |
111 // Returns the class that maps views::style values (TextContext and TextStyle) | 111 // Returns the class that maps views::style values (TextContext and TextStyle) |
112 // to specific font properties (e.g. typeface, size, color, line spacing). | 112 // to specific font properties (e.g. typeface, size, color, line spacing). |
113 virtual const views::TypographyProvider& GetTypographyProvider() const; | 113 virtual const views::TypographyProvider& GetTypographyProvider() const; |
114 | 114 |
115 private: | 115 private: |
116 DISALLOW_COPY_AND_ASSIGN(LayoutDelegate); | 116 DISALLOW_COPY_AND_ASSIGN(LayoutDelegate); |
117 }; | 117 }; |
118 | 118 |
119 #endif // CHROME_BROWSER_UI_VIEWS_HARMONY_LAYOUT_DELEGATE_H_ | 119 #endif // CHROME_BROWSER_UI_VIEWS_HARMONY_LAYOUT_DELEGATE_H_ |
OLD | NEW |