diff options
author | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-23 21:55:52 +0000 |
---|---|---|
committer | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-23 21:55:52 +0000 |
commit | a8111ce7343d3d6458eff4a5f370cf611f6753b4 (patch) | |
tree | 30dfb0171c2e450f0271d3c787ac0cfbc06e663b /chrome/browser/task_manager.cc | |
parent | e48211e18675bec9056fb0762ec1c6644b0ff32e (diff) | |
download | chromium_src-a8111ce7343d3d6458eff4a5f370cf611f6753b4.zip chromium_src-a8111ce7343d3d6458eff4a5f370cf611f6753b4.tar.gz chromium_src-a8111ce7343d3d6458eff4a5f370cf611f6753b4.tar.bz2 |
The death knell for the old native buttons, checkboxes and radio buttons.
Replace with renamed NativeButton2, Checkbox2, RadioButton2.
Review URL: http://codereview.chromium.org/50083
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12317 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/task_manager.cc')
-rw-r--r-- | chrome/browser/task_manager.cc | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/chrome/browser/task_manager.cc b/chrome/browser/task_manager.cc index 95da5ee..ab7c562 100644 --- a/chrome/browser/task_manager.cc +++ b/chrome/browser/task_manager.cc @@ -674,7 +674,7 @@ bool TaskManagerTableModel::GetProcessMetricsForRows( //////////////////////////////////////////////////////////////////////////////// class TaskManagerContents : public views::View, - public views::NativeButton::Listener, + public views::ButtonListener, public views::TableViewObserver, public views::LinkController, public views::ContextMenuController, @@ -692,8 +692,8 @@ class TaskManagerContents : public views::View, void GetSelection(std::vector<int>* selection); void GetFocused(std::vector<int>* focused); - // NativeButton::Listener implementation. - virtual void ButtonPressed(views::NativeButton* sender); + // ButtonListener implementation. + virtual void ButtonPressed(views::Button* sender); // views::TableViewObserver implementation. virtual void OnSelectionChanged(); @@ -778,8 +778,7 @@ void TaskManagerContents::Init(TaskManagerTableModel* table_model) { tab_table_->SetObserver(this); SetContextMenuController(this); kill_button_.reset(new views::NativeButton( - l10n_util::GetString(IDS_TASK_MANAGER_KILL))); - kill_button_->SetListener(this); + this, l10n_util::GetString(IDS_TASK_MANAGER_KILL))); about_memory_link_.reset(new views::Link( l10n_util::GetString(IDS_TASK_MANAGER_ABOUT_MEMORY_LINK))); about_memory_link_->SetController(this); @@ -893,9 +892,9 @@ void TaskManagerContents::GetFocused(std::vector<int>* focused) { } } -// NativeButton::Listener implementation. -void TaskManagerContents::ButtonPressed(views::NativeButton* sender) { - if (sender == kill_button_) +// ButtonListener implementation. +void TaskManagerContents::ButtonPressed(views::Button* sender) { + if (sender == kill_button_.get()) task_manager_->KillSelectedProcesses(); } |