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

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

Issue 2758323002: Broke out layout metric information from ViewsDelegate to LayoutProvider (Closed)
Patch Set: Final feedback addressed 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/harmony_layout_delegate.h
diff --git a/chrome/browser/ui/views/harmony/harmony_layout_delegate.h b/chrome/browser/ui/views/harmony/harmony_layout_delegate.h
deleted file mode 100644
index 3fd09073953eb3070b66d32d50d8285ff3316a60..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/views/harmony/harmony_layout_delegate.h
+++ /dev/null
@@ -1,37 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_BROWSER_UI_VIEWS_HARMONY_HARMONY_LAYOUT_DELEGATE_H_
-#define CHROME_BROWSER_UI_VIEWS_HARMONY_HARMONY_LAYOUT_DELEGATE_H_
-
-#include "chrome/browser/ui/views/harmony/harmony_typography_provider.h"
-#include "chrome/browser/ui/views/harmony/layout_delegate.h"
-
-class HarmonyLayoutDelegate : public LayoutDelegate {
- public:
- // The Harmony layout unit. All distances are in terms of this unit.
- static constexpr int kHarmonyLayoutUnit = 16;
-
- HarmonyLayoutDelegate() {}
- ~HarmonyLayoutDelegate() override {}
-
- // Returns the singleton HarmonyLayoutDelegate instance.
- static HarmonyLayoutDelegate* Get();
-
- // views::LayoutDelegate:
- int GetMetric(Metric metric) const override;
- views::GridLayout::Alignment GetControlLabelGridAlignment() const override;
- bool UseExtraDialogPadding() const override;
- bool IsHarmonyMode() const override;
- int GetDialogPreferredWidth(DialogWidth width) const override;
- bool ShouldShowWindowIcon() const override;
- const views::TypographyProvider& GetTypographyProvider() const override;
-
- private:
- const HarmonyTypographyProvider typography_provider_;
-
- DISALLOW_COPY_AND_ASSIGN(HarmonyLayoutDelegate);
-};
-
-#endif // CHROME_BROWSER_UI_VIEWS_HARMONY_HARMONY_LAYOUT_DELEGATE_H_
« no previous file with comments | « chrome/browser/ui/views/harmony/chrome_layout_provider.cc ('k') | chrome/browser/ui/views/harmony/harmony_layout_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698