Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2618)

Unified Diff: chrome/browser/ui/views/harmony/chrome_layout_provider.h

Issue 2821413002: views: support dialog width snapping once and for all (Closed)
Patch Set: fix failing unittest Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/harmony/chrome_layout_provider.h
diff --git a/chrome/browser/ui/views/harmony/chrome_layout_provider.h b/chrome/browser/ui/views/harmony/chrome_layout_provider.h
index 1fe25cf55ac59827185aaba46a432b0d6cbcd230..b78c1558250887e7b10ae7e4d7efc842ec164fcf 100644
--- a/chrome/browser/ui/views/harmony/chrome_layout_provider.h
+++ b/chrome/browser/ui/views/harmony/chrome_layout_provider.h
@@ -50,12 +50,6 @@ enum ChromeDistanceMetric {
DISTANCE_UNRELATED_CONTROL_VERTICAL_LARGE,
};
-enum class DialogWidth {
- SMALL,
- MEDIUM,
- LARGE,
-};
-
class ChromeLayoutProvider : public views::LayoutProvider {
public:
ChromeLayoutProvider() {}
@@ -64,8 +58,8 @@ class ChromeLayoutProvider : public views::LayoutProvider {
static ChromeLayoutProvider* Get();
static std::unique_ptr<views::LayoutProvider> CreateLayoutProvider();
+ // views::LayoutProvider:
int GetDistanceMetric(int metric) const override;
-
const views::TypographyProvider& GetTypographyProvider() const override;
// Returns the alignment used for control labels in a GridLayout; for example,
@@ -92,10 +86,6 @@ class ChromeLayoutProvider : public views::LayoutProvider {
// TODO(pkasting): Fix callers and remove this.
virtual bool IsHarmonyMode() const;
- // Returns the preferred width in DIPs for a dialog of the specified |width|.
- // May return 0 if the dialog has no preferred width.
- virtual int GetDialogPreferredWidth(DialogWidth width) const;
-
private:
DISALLOW_COPY_AND_ASSIGN(ChromeLayoutProvider);
};
« no previous file with comments | « chrome/browser/ui/views/device_chooser_content_view.cc ('k') | chrome/browser/ui/views/harmony/chrome_layout_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698