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

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

Issue 2485083003: views: add layout delegates (Closed)
Patch Set: move delegate out of views Created 4 years, 1 month 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
new file mode 100644
index 0000000000000000000000000000000000000000..8a82e6d97094da2326aba6ae181ba5fa87843a4c
--- /dev/null
+++ b/chrome/browser/ui/views/harmony/harmony_layout_delegate.h
@@ -0,0 +1,24 @@
+// 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/layout_delegate.h"
+
+namespace chrome {
+
+class HarmonyLayoutDelegate : public LayoutDelegate {
+ public:
+ // Returns the singleton HarmonyLayoutDelegate instance.
+ static HarmonyLayoutDelegate* Get();
+
+ // views::LayoutDelegate:
+ int GetLayoutDistance(LayoutDistanceType type) const override;
+ bool UseExtraDialogPadding() const override;
+};
sky 2016/11/14 21:49:32 private: DISALLOW_... ?
Elly Fong-Jones 2016/11/15 17:13:39 Done.
+
+} // namespace chrome
+
+#endif // CHROME_BROWSER_UI_VIEWS_HARMONY_HARMONY_LAYOUT_DELEGATE_H_

Powered by Google App Engine
This is Rietveld 408576698