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

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

Issue 2485083003: views: add layout delegates (Closed)
Patch Set: fix msvc compile 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
« no previous file with comments | « chrome/browser/ui/BUILD.gn ('k') | chrome/browser/ui/views/harmony/harmony_layout_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..fd36b15d297a11f88bb08f5165375602c12f46d8
--- /dev/null
+++ b/chrome/browser/ui/views/harmony/harmony_layout_delegate.h
@@ -0,0 +1,26 @@
+// 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"
+
+class HarmonyLayoutDelegate : public LayoutDelegate {
+ public:
+ HarmonyLayoutDelegate() {}
+ ~HarmonyLayoutDelegate() override {}
+
+ // Returns the singleton HarmonyLayoutDelegate instance.
+ static HarmonyLayoutDelegate* Get();
+
+ // views::LayoutDelegate:
+ int GetLayoutDistance(LayoutDistanceType type) const override;
+ bool UseExtraDialogPadding() const override;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(HarmonyLayoutDelegate);
+};
+
+#endif // CHROME_BROWSER_UI_VIEWS_HARMONY_HARMONY_LAYOUT_DELEGATE_H_
« no previous file with comments | « chrome/browser/ui/BUILD.gn ('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