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_CHROME_LAYOUT_PROVIDER_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_HARMONY_CHROME_LAYOUT_PROVIDER_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_HARMONY_CHROME_LAYOUT_PROVIDER_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_HARMONY_CHROME_LAYOUT_PROVIDER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 69 virtual bool ShouldShowWindowIcon() const; | 69 virtual bool ShouldShowWindowIcon() const; |
| 70 | 70 |
| 71 // DEPRECATED. Returns whether Harmony mode is enabled. | 71 // DEPRECATED. Returns whether Harmony mode is enabled. |
| 72 // | 72 // |
| 73 // Instead of using this, create a generic solution that works for all UI | 73 // Instead of using this, create a generic solution that works for all UI |
| 74 // types, e.g. by adding a new LayoutDistance value that means what you need. | 74 // types, e.g. by adding a new LayoutDistance value that means what you need. |
| 75 // | 75 // |
| 76 // TODO(pkasting): Fix callers and remove this. | 76 // TODO(pkasting): Fix callers and remove this. |
| 77 virtual bool IsHarmonyMode() const; | 77 virtual bool IsHarmonyMode() const; |
| 78 | 78 |
| 79 // Returns the snapped width for snapped dialogs. This is used to enforce a | |
| 80 // minimum width for snap-able dialogs even in non-Harmony modes. | |
| 81 int GetSnappedDialogWidth(int min_width) const override; | |
|
Peter Kasting
2017/05/26 23:59:10
It seems like rather than overriding here we shoul
Elly Fong-Jones
2017/05/30 14:55:36
I put this here because I think we are trying to k
Peter Kasting
2017/05/30 16:17:54
I would probably move it under the justification t
| |
| 82 | |
| 79 private: | 83 private: |
| 80 DISALLOW_COPY_AND_ASSIGN(ChromeLayoutProvider); | 84 DISALLOW_COPY_AND_ASSIGN(ChromeLayoutProvider); |
| 81 }; | 85 }; |
| 82 | 86 |
| 83 #endif // CHROME_BROWSER_UI_VIEWS_HARMONY_CHROME_LAYOUT_PROVIDER_H_ | 87 #endif // CHROME_BROWSER_UI_VIEWS_HARMONY_CHROME_LAYOUT_PROVIDER_H_ |
| OLD | NEW |