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

Side by Side Diff: chrome/browser/ui/views/options/cookies_view.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/options/cookies_view.h" 5 #include "chrome/browser/ui/views/options/cookies_view.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "app/l10n_util.h" 9 #include "app/l10n_util.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 remove_button_ = new views::NativeButton( 313 remove_button_ = new views::NativeButton(
314 this, 314 this,
315 UTF16ToWide(l10n_util::GetStringUTF16(IDS_COOKIES_REMOVE_LABEL))); 315 UTF16ToWide(l10n_util::GetStringUTF16(IDS_COOKIES_REMOVE_LABEL)));
316 remove_all_button_ = new views::NativeButton( 316 remove_all_button_ = new views::NativeButton(
317 this, 317 this,
318 UTF16ToWide(l10n_util::GetStringUTF16(IDS_COOKIES_REMOVE_ALL_LABEL))); 318 UTF16ToWide(l10n_util::GetStringUTF16(IDS_COOKIES_REMOVE_ALL_LABEL)));
319 319
320 using views::GridLayout; 320 using views::GridLayout;
321 using views::ColumnSet; 321 using views::ColumnSet;
322 322
323 GridLayout* layout = CreatePanelGridLayout(this); 323 GridLayout* layout = GridLayout::CreatePanel(this);
324 SetLayoutManager(layout); 324 SetLayoutManager(layout);
325 325
326 const int five_column_layout_id = 0; 326 const int five_column_layout_id = 0;
327 ColumnSet* column_set = layout->AddColumnSet(five_column_layout_id); 327 ColumnSet* column_set = layout->AddColumnSet(five_column_layout_id);
328 column_set->AddColumn(GridLayout::FILL, GridLayout::CENTER, 0, 328 column_set->AddColumn(GridLayout::FILL, GridLayout::CENTER, 0,
329 GridLayout::USE_PREF, 0, 0); 329 GridLayout::USE_PREF, 0, 0);
330 column_set->AddPaddingColumn(0, kRelatedControlHorizontalSpacing); 330 column_set->AddPaddingColumn(0, kRelatedControlHorizontalSpacing);
331 column_set->AddColumn(GridLayout::FILL, GridLayout::FILL, 1, 331 column_set->AddColumn(GridLayout::FILL, GridLayout::FILL, 1,
332 GridLayout::USE_PREF, 0, 0); 332 GridLayout::USE_PREF, 0, 0);
333 column_set->AddPaddingColumn(0, kRelatedControlHorizontalSpacing); 333 column_set->AddPaddingColumn(0, kRelatedControlHorizontalSpacing);
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
392 GetTotalNodeCount() > 1); 392 GetTotalNodeCount() > 1);
393 } 393 }
394 394
395 void CookiesView::UpdateVisibleDetailedInfo(views::View* view) { 395 void CookiesView::UpdateVisibleDetailedInfo(views::View* view) {
396 cookie_info_view_->SetVisible(view == cookie_info_view_); 396 cookie_info_view_->SetVisible(view == cookie_info_view_);
397 database_info_view_->SetVisible(view == database_info_view_); 397 database_info_view_->SetVisible(view == database_info_view_);
398 local_storage_info_view_->SetVisible(view == local_storage_info_view_); 398 local_storage_info_view_->SetVisible(view == local_storage_info_view_);
399 appcache_info_view_->SetVisible(view == appcache_info_view_); 399 appcache_info_view_->SetVisible(view == appcache_info_view_);
400 indexed_db_info_view_->SetVisible(view == indexed_db_info_view_); 400 indexed_db_info_view_->SetVisible(view == indexed_db_info_view_);
401 } 401 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/options/advanced_page_view.cc ('k') | chrome/browser/ui/views/options/exception_editor_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698