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

Side by Side Diff: chrome/browser/ui/views/collected_cookies_win.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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/views/collected_cookies_win.h" 5 #include "chrome/browser/ui/views/collected_cookies_win.h"
6 6
7 #include "app/l10n_util.h" 7 #include "app/l10n_util.h"
8 #include "chrome/browser/cookies_tree_model.h" 8 #include "chrome/browser/cookies_tree_model.h"
9 #include "chrome/browser/profiles/profile.h" 9 #include "chrome/browser/profiles/profile.h"
10 #include "chrome/browser/tab_contents/tab_contents.h" 10 #include "chrome/browser/tab_contents/tab_contents.h"
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 blocked_cookies_tree_ = new views::TreeView(); 214 blocked_cookies_tree_ = new views::TreeView();
215 blocked_cookies_tree_->SetModel(blocked_cookies_tree_model_.get()); 215 blocked_cookies_tree_->SetModel(blocked_cookies_tree_model_.get());
216 blocked_cookies_tree_->SetController(this); 216 blocked_cookies_tree_->SetController(this);
217 blocked_cookies_tree_->SetRootShown(false); 217 blocked_cookies_tree_->SetRootShown(false);
218 blocked_cookies_tree_->SetEditable(false); 218 blocked_cookies_tree_->SetEditable(false);
219 blocked_cookies_tree_->set_lines_at_root(true); 219 blocked_cookies_tree_->set_lines_at_root(true);
220 blocked_cookies_tree_->set_auto_expand_children(true); 220 blocked_cookies_tree_->set_auto_expand_children(true);
221 221
222 using views::GridLayout; 222 using views::GridLayout;
223 223
224 GridLayout* layout = CreatePanelGridLayout(this); 224 GridLayout* layout = GridLayout::CreatePanel(this);
225 SetLayoutManager(layout); 225 SetLayoutManager(layout);
226 226
227 const int single_column_layout_id = 0; 227 const int single_column_layout_id = 0;
228 views::ColumnSet* column_set = layout->AddColumnSet(single_column_layout_id); 228 views::ColumnSet* column_set = layout->AddColumnSet(single_column_layout_id);
229 column_set->AddColumn(GridLayout::LEADING, GridLayout::FILL, 1, 229 column_set->AddColumn(GridLayout::LEADING, GridLayout::FILL, 1,
230 GridLayout::USE_PREF, 0, 0); 230 GridLayout::USE_PREF, 0, 0);
231 231
232 const int three_columns_layout_id = 1; 232 const int three_columns_layout_id = 1;
233 column_set = layout->AddColumnSet(three_columns_layout_id); 233 column_set = layout->AddColumnSet(three_columns_layout_id);
234 column_set->AddColumn(GridLayout::LEADING, GridLayout::CENTER, 0, 234 column_set->AddColumn(GridLayout::LEADING, GridLayout::CENTER, 0,
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
387 // NotificationObserver implementation. 387 // NotificationObserver implementation.
388 388
389 void CollectedCookiesWin::Observe(NotificationType type, 389 void CollectedCookiesWin::Observe(NotificationType type,
390 const NotificationSource& source, 390 const NotificationSource& source,
391 const NotificationDetails& details) { 391 const NotificationDetails& details) {
392 DCHECK(type == NotificationType::COLLECTED_COOKIES_SHOWN); 392 DCHECK(type == NotificationType::COLLECTED_COOKIES_SHOWN);
393 DCHECK_EQ(Source<TabSpecificContentSettings>(source).ptr(), 393 DCHECK_EQ(Source<TabSpecificContentSettings>(source).ptr(),
394 tab_contents_->GetTabSpecificContentSettings()); 394 tab_contents_->GetTabSpecificContentSettings());
395 window_->CloseConstrainedWindow(); 395 window_->CloseConstrainedWindow();
396 } 396 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/clear_server_data.cc ('k') | chrome/browser/ui/views/create_application_shortcut_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698