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

Unified Diff: chrome/browser/ui/views/layout_utils.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/views/harmony/layout_delegate.cc ('k') | chrome/browser/ui/views/layout_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/layout_utils.h
diff --git a/chrome/browser/ui/views/layout_utils.h b/chrome/browser/ui/views/layout_utils.h
new file mode 100644
index 0000000000000000000000000000000000000000..9087e763533ede140d2272f4045d6e90e77820ce
--- /dev/null
+++ b/chrome/browser/ui/views/layout_utils.h
@@ -0,0 +1,22 @@
+// 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_LAYOUT_UTILS_H_
+#define CHROME_BROWSER_UI_VIEWS_LAYOUT_UTILS_H_
+
+namespace views {
+class GridLayout;
+class View;
+} // namespace views
+
+namespace layout_utils {
+
+// Creates a panel GridLayout for |host|. A panel layout has specific insets
+// applied to make it appropriate for use in a dialog or bubble. This function
+// sets the layout manager of |host| to the returned GridLayout.
+views::GridLayout* CreatePanelLayout(views::View* host);
+
+} // namespace layout_utils
+
+#endif // CHROME_BROWSER_UI_VIEWS_LAYOUT_UTILS_H_
« no previous file with comments | « chrome/browser/ui/views/harmony/layout_delegate.cc ('k') | chrome/browser/ui/views/layout_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698