diff options
author | brg@chromium.com <brg@chromium.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-04 19:54:49 +0000 |
---|---|---|
committer | brg@chromium.com <brg@chromium.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-04 19:54:49 +0000 |
commit | fbe8c251fa3252c95bc62ba61854a530aad1889f (patch) | |
tree | 99796a806a831a18227d423e4f4f6d847465156a /chrome/browser/views/importer_view.h | |
parent | cd378ab1cd7da8fa26d99826e63f5a0981eb457d (diff) | |
download | chromium_src-fbe8c251fa3252c95bc62ba61854a530aad1889f.zip chromium_src-fbe8c251fa3252c95bc62ba61854a530aad1889f.tar.gz chromium_src-fbe8c251fa3252c95bc62ba61854a530aad1889f.tar.bz2 |
Toolbar Import - Issue 8801, migrated from public tree to svn enlistment.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@4633 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/importer_view.h')
-rw-r--r-- | chrome/browser/views/importer_view.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/chrome/browser/views/importer_view.h b/chrome/browser/views/importer_view.h index 1f3002d..fa97e99 100644 --- a/chrome/browser/views/importer_view.h +++ b/chrome/browser/views/importer_view.h @@ -26,6 +26,7 @@ class Profile; class ImporterView : public views::View, public views::DialogDelegate, public views::ComboBox::Model, + public views::ComboBox::Listener, public ImportObserver { public: explicit ImporterView(Profile* profile); @@ -46,6 +47,11 @@ class ImporterView : public views::View, virtual int GetItemCount(views::ComboBox* source); virtual std::wstring GetItemAt(views::ComboBox* source, int index); + // Overridden from ChromeViews::ComboBox::Listener + virtual void ItemChanged(views::ComboBox* combo_box, + int prev_index, + int new_index); + // Overridden from ImportObserver: virtual void ImportCanceled(); virtual void ImportComplete(); @@ -57,6 +63,15 @@ class ImporterView : public views::View, // Creates and initializes a new check-box. views::CheckBox* InitCheckbox(const std::wstring& text, bool checked); + // Create a bitmap from the checkboxes of the view. + uint16 GetCheckedItems(); + + // Enables/Disables all the checked items for the given state + void SetCheckedItemsState(uint16 items); + + // Sets all checked items in the given state + void SetCheckedItems(uint16 items); + views::Label* import_from_label_; views::ComboBox* profile_combobox_; views::Label* import_items_label_; @@ -67,6 +82,10 @@ class ImporterView : public views::View, scoped_refptr<ImporterHost> importer_host_; + // Stores the state of the checked items associated with the position of the + // selected item in the combo-box. + std::vector<uint16> checkbox_items_; + Profile* profile_; DISALLOW_EVIL_CONSTRUCTORS(ImporterView); |