diff options
author | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-02 04:47:36 +0000 |
---|---|---|
committer | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-02 04:47:36 +0000 |
commit | a0d0d38b5d45d7be151bad91a2231d3679432d13 (patch) | |
tree | 65866dc75a0ca59d3bd51804db05560e41b9ebf2 /chrome/browser/views/clear_browsing_data.h | |
parent | 73c8cb87ca07481b24f7823c1f2f99f0b530ef11 (diff) | |
download | chromium_src-a0d0d38b5d45d7be151bad91a2231d3679432d13.zip chromium_src-a0d0d38b5d45d7be151bad91a2231d3679432d13.tar.gz chromium_src-a0d0d38b5d45d7be151bad91a2231d3679432d13.tar.bz2 |
Make Combobox portable
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/113991
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17382 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/clear_browsing_data.h')
-rw-r--r-- | chrome/browser/views/clear_browsing_data.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/chrome/browser/views/clear_browsing_data.h b/chrome/browser/views/clear_browsing_data.h index f51979e..f188478 100644 --- a/chrome/browser/views/clear_browsing_data.h +++ b/chrome/browser/views/clear_browsing_data.h @@ -7,7 +7,7 @@ #include "chrome/browser/browsing_data_remover.h" #include "views/controls/button/button.h" -#include "views/controls/combo_box.h" +#include "views/controls/combobox/combobox.h" #include "views/controls/label.h" #include "views/view.h" #include "views/window/dialog_delegate.h" @@ -31,9 +31,9 @@ class MessageLoop; //////////////////////////////////////////////////////////////////////////////// class ClearBrowsingDataView : public views::View, public views::DialogDelegate, - public views::ComboBox::Model, public views::ButtonListener, - public views::ComboBox::Listener, + public views::Combobox::Model, + public views::Combobox::Listener, public BrowsingDataRemover::Observer { public: explicit ClearBrowsingDataView(Profile* profile); @@ -62,17 +62,17 @@ class ClearBrowsingDataView : public views::View, virtual bool Accept(); virtual views::View* GetContentsView(); - // Overridden from views::ComboBox::Model: - virtual int GetItemCount(views::ComboBox* source); - virtual std::wstring GetItemAt(views::ComboBox* source, int index); + // Overridden from views::Combobox::Model: + virtual int GetItemCount(views::Combobox* source); + virtual std::wstring GetItemAt(views::Combobox* source, int index); + + // Overridden from views::Combobox::Listener: + virtual void ItemChanged(views::Combobox* sender, int prev_index, + int new_index); // Overridden from views::ButtonListener: virtual void ButtonPressed(views::Button* sender); - // Overridden from views::ComboBox::Listener: - virtual void ItemChanged(views::ComboBox* sender, int prev_index, - int new_index); - private: // Adds a new check-box as a child to the view. views::Checkbox* AddCheckbox(const std::wstring& text, bool checked); @@ -100,7 +100,7 @@ class ClearBrowsingDataView : public views::View, views::Checkbox* del_passwords_checkbox_; views::Checkbox* del_form_data_checkbox_; views::Label* time_period_label_; - views::ComboBox* time_period_combobox_; + views::Combobox* time_period_combobox_; // Used to signal enabled/disabled state for controls in the UI. bool delete_in_progress_; |