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

Unified Diff: views/grid_layout.cc

Issue 6384002: views: Make CreatePanelGridLayout a static method of GridLayout class. (Closed)
Patch Set: fix trybots Created 9 years, 11 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
« no previous file with comments | « views/grid_layout.h ('k') | views/standard_layout.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/grid_layout.cc
diff --git a/views/grid_layout.cc b/views/grid_layout.cc
index 5e685ac9f9b1e2f2376bd4b8052a2c09e2c7e562..b01247f7de3de46317b0fb6a634335eefb4fbf2e 100644
--- a/views/grid_layout.cc
+++ b/views/grid_layout.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 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.
@@ -676,6 +676,14 @@ GridLayout::~GridLayout() {
STLDeleteElements(&rows_);
}
+// static
+GridLayout* GridLayout::CreatePanel(View* host) {
+ GridLayout* layout = new GridLayout(host);
+ layout->SetInsets(kPanelVertMargin, kPanelHorizMargin,
+ kPanelVertMargin, kPanelHorizMargin);
+ return layout;
+}
+
void GridLayout::SetInsets(int top, int left, int bottom, int right) {
top_inset_ = top;
bottom_inset_ = bottom;
@@ -1060,10 +1068,3 @@ ColumnSet* GridLayout::GetLastValidColumnSet() {
}
} // namespace views
-
-views::GridLayout* CreatePanelGridLayout(views::View* host) {
- views::GridLayout* layout = new views::GridLayout(host);
- layout->SetInsets(kPanelVertMargin, kPanelHorizMargin,
- kPanelVertMargin, kPanelHorizMargin);
- return layout;
-}
« no previous file with comments | « views/grid_layout.h ('k') | views/standard_layout.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698