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/views/hung_renderer_view.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/views/hung_renderer_view.cc')
-rw-r--r-- | chrome/browser/views/hung_renderer_view.cc | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/chrome/browser/views/hung_renderer_view.cc b/chrome/browser/views/hung_renderer_view.cc index bf0555a4..9d239e4 100644 --- a/chrome/browser/views/hung_renderer_view.cc +++ b/chrome/browser/views/hung_renderer_view.cc @@ -113,7 +113,7 @@ void HungPagesTableModel::GetGroupRangeForItem(int item, class HungRendererWarningView : public views::View, public views::DialogDelegate, - public views::NativeButton::Listener { + public views::ButtonListener { public: HungRendererWarningView(); ~HungRendererWarningView(); @@ -131,8 +131,8 @@ class HungRendererWarningView : public views::View, virtual bool Accept(bool window_closing); virtual views::View* GetContentsView(); - // views::NativeButton::Listener overrides: - virtual void ButtonPressed(views::NativeButton* sender); + // views::ButtonListener overrides: + virtual void ButtonPressed(views::Button* sender); protected: // views::View overrides: @@ -303,9 +303,9 @@ views::View* HungRendererWarningView::GetContentsView() { } /////////////////////////////////////////////////////////////////////////////// -// HungRendererWarningView, views::NativeButton::Listener implementation: +// HungRendererWarningView, views::ButtonListener implementation: -void HungRendererWarningView::ButtonPressed(views::NativeButton* sender) { +void HungRendererWarningView::ButtonPressed(views::Button* sender) { if (sender == kill_button_) { // Kill the process. HANDLE process = contents_->process()->process().handle(); @@ -375,8 +375,7 @@ void HungRendererWarningView::Init() { void HungRendererWarningView::CreateKillButtonView() { kill_button_ = new views::NativeButton( - l10n_util::GetString(IDS_BROWSER_HANGMONITOR_RENDERER_END)); - kill_button_->SetListener(this); + this, l10n_util::GetString(IDS_BROWSER_HANGMONITOR_RENDERER_END)); kill_button_container_ = new ButtonContainer; |