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

Side by Side Diff: chrome/browser/ui/views/autofill_profiles_view_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/autofill_profiles_view_win.h" 5 #include "chrome/browser/ui/views/autofill_profiles_view_win.h"
6 6
7 #include <vsstyle.h> 7 #include <vsstyle.h>
8 #include <vssym32.h> 8 #include <vssym32.h>
9 9
10 #include "app/l10n_util.h" 10 #include "app/l10n_util.h"
(...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after
461 461
462 add_address_button_ = new views::NativeButton(this, 462 add_address_button_ = new views::NativeButton(this,
463 UTF16ToWide(l10n_util::GetStringUTF16(IDS_AUTOFILL_ADD_ADDRESS_BUTTON))); 463 UTF16ToWide(l10n_util::GetStringUTF16(IDS_AUTOFILL_ADD_ADDRESS_BUTTON)));
464 add_credit_card_button_ = new views::NativeButton(this, UTF16ToWide( 464 add_credit_card_button_ = new views::NativeButton(this, UTF16ToWide(
465 l10n_util::GetStringUTF16(IDS_AUTOFILL_ADD_CREDITCARD_BUTTON))); 465 l10n_util::GetStringUTF16(IDS_AUTOFILL_ADD_CREDITCARD_BUTTON)));
466 edit_button_ = new views::NativeButton(this, 466 edit_button_ = new views::NativeButton(this,
467 UTF16ToWide(l10n_util::GetStringUTF16(IDS_AUTOFILL_EDIT_BUTTON))); 467 UTF16ToWide(l10n_util::GetStringUTF16(IDS_AUTOFILL_EDIT_BUTTON)));
468 remove_button_ = new views::NativeButton(this, 468 remove_button_ = new views::NativeButton(this,
469 UTF16ToWide(l10n_util::GetStringUTF16(IDS_AUTOFILL_DELETE_BUTTON))); 469 UTF16ToWide(l10n_util::GetStringUTF16(IDS_AUTOFILL_DELETE_BUTTON)));
470 470
471 views::GridLayout* layout = CreatePanelGridLayout(this); 471 views::GridLayout* layout = views::GridLayout::CreatePanel(this);
472 SetLayoutManager(layout); 472 SetLayoutManager(layout);
473 473
474 const int table_with_buttons_column_view_set_id = 0; 474 const int table_with_buttons_column_view_set_id = 0;
475 views::ColumnSet* column_set = 475 views::ColumnSet* column_set =
476 layout->AddColumnSet(table_with_buttons_column_view_set_id); 476 layout->AddColumnSet(table_with_buttons_column_view_set_id);
477 column_set->AddColumn(views::GridLayout::FILL, views::GridLayout::FILL, 1, 477 column_set->AddColumn(views::GridLayout::FILL, views::GridLayout::FILL, 1,
478 views::GridLayout::USE_PREF, 0, 0); 478 views::GridLayout::USE_PREF, 0, 0);
479 column_set->AddPaddingColumn(0, kRelatedControlHorizontalSpacing); 479 column_set->AddPaddingColumn(0, kRelatedControlHorizontalSpacing);
480 column_set->AddColumn(views::GridLayout::FILL, views::GridLayout::CENTER, 0, 480 column_set->AddColumn(views::GridLayout::FILL, views::GridLayout::CENTER, 0,
481 views::GridLayout::USE_PREF, 0, 0); 481 views::GridLayout::USE_PREF, 0, 0);
(...skipping 832 matching lines...) Expand 10 before | Expand all | Expand 10 after
1314 AutoFillDialogObserver* observer, 1314 AutoFillDialogObserver* observer,
1315 Profile* profile) { 1315 Profile* profile) {
1316 DCHECK(profile); 1316 DCHECK(profile);
1317 1317
1318 PersonalDataManager* personal_data_manager = 1318 PersonalDataManager* personal_data_manager =
1319 profile->GetPersonalDataManager(); 1319 profile->GetPersonalDataManager();
1320 DCHECK(personal_data_manager); 1320 DCHECK(personal_data_manager);
1321 AutoFillProfilesView::Show(parent, observer, personal_data_manager, profile, 1321 AutoFillProfilesView::Show(parent, observer, personal_data_manager, profile,
1322 profile->GetPrefs(), NULL, NULL); 1322 profile->GetPrefs(), NULL, NULL);
1323 } 1323 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/about_ipc_dialog.cc ('k') | chrome/browser/ui/views/bookmark_editor_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698