diff options
author | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-16 23:51:38 +0000 |
---|---|---|
committer | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-16 23:51:38 +0000 |
commit | c2dacc9ec41232903ba700c6aef5ef98bfcb8af8 (patch) | |
tree | 4aa4d7100862c64bdd92d70e6323001beb19edb7 /chrome/browser/views/importer_view.cc | |
parent | d66e710ec668e34271def44d7f0416260657171c (diff) | |
download | chromium_src-c2dacc9ec41232903ba700c6aef5ef98bfcb8af8.zip chromium_src-c2dacc9ec41232903ba700c6aef5ef98bfcb8af8.tar.gz chromium_src-c2dacc9ec41232903ba700c6aef5ef98bfcb8af8.tar.bz2 |
Rename ChromeViews namespace to views
http://crbug.com/2188
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3495 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/importer_view.cc')
-rw-r--r-- | chrome/browser/views/importer_view.cc | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/chrome/browser/views/importer_view.cc b/chrome/browser/views/importer_view.cc index 5349b90..eedce0b 100644 --- a/chrome/browser/views/importer_view.cc +++ b/chrome/browser/views/importer_view.cc @@ -15,8 +15,8 @@ #include "generated_resources.h" -using ChromeViews::ColumnSet; -using ChromeViews::GridLayout; +using views::ColumnSet; +using views::GridLayout; ImporterView::ImporterView(Profile* profile) : import_from_label_(NULL), @@ -38,12 +38,12 @@ ImporterView::~ImporterView() { void ImporterView::SetupControl() { // Adds all controls. import_from_label_ = - new ChromeViews::Label(l10n_util::GetString(IDS_IMPORT_FROM_LABEL)); + new views::Label(l10n_util::GetString(IDS_IMPORT_FROM_LABEL)); - profile_combobox_ = new ChromeViews::ComboBox(this); + profile_combobox_ = new views::ComboBox(this); import_items_label_ = - new ChromeViews::Label(l10n_util::GetString(IDS_IMPORT_ITEMS_LABEL)); + new views::Label(l10n_util::GetString(IDS_IMPORT_ITEMS_LABEL)); history_checkbox_ = InitCheckbox(l10n_util::GetString(IDS_IMPORT_HISTORY_CHKBOX), true); @@ -89,7 +89,7 @@ void ImporterView::SetupControl() { } gfx::Size ImporterView::GetPreferredSize() { - return gfx::Size(ChromeViews::Window::GetLocalizedContentsSize( + return gfx::Size(views::Window::GetLocalizedContentsSize( IDS_IMPORT_DIALOG_WIDTH_CHARS, IDS_IMPORT_DIALOG_HEIGHT_LINES)); } @@ -142,18 +142,17 @@ bool ImporterView::Accept() { return false; } -ChromeViews::View* ImporterView::GetContentsView() { +views::View* ImporterView::GetContentsView() { return this; } -int ImporterView::GetItemCount(ChromeViews::ComboBox* source) { +int ImporterView::GetItemCount(views::ComboBox* source) { DCHECK(source == profile_combobox_); DCHECK(importer_host_.get()); return importer_host_->GetAvailableProfileCount(); } -std::wstring ImporterView::GetItemAt(ChromeViews::ComboBox* source, - int index) { +std::wstring ImporterView::GetItemAt(views::ComboBox* source, int index) { DCHECK(source == profile_combobox_); DCHECK(importer_host_.get()); return importer_host_->GetSourceProfileNameAt(index); @@ -168,9 +167,9 @@ void ImporterView::ImportComplete() { window()->Close(); } -ChromeViews::CheckBox* ImporterView::InitCheckbox( - const std::wstring& text, bool checked) { - ChromeViews::CheckBox* checkbox = new ChromeViews::CheckBox(text); +views::CheckBox* ImporterView::InitCheckbox(const std::wstring& text, + bool checked) { + views::CheckBox* checkbox = new views::CheckBox(text); checkbox->SetIsSelected(checked); return checkbox; } |