diff options
author | saintlou@chromium.org <saintlou@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-20 15:38:02 +0000 |
---|---|---|
committer | saintlou@chromium.org <saintlou@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-20 15:38:02 +0000 |
commit | ab79692f684d05b53fa99d68f370e24c9aa5acf1 (patch) | |
tree | 23a17855994bb25b38129af3ffcabd4c937cdcf7 /views/controls/listbox/listbox.h | |
parent | 1ca750f727a7e31f741e228a5533d08be32e835e (diff) | |
download | chromium_src-ab79692f684d05b53fa99d68f370e24c9aa5acf1.zip chromium_src-ab79692f684d05b53fa99d68f370e24c9aa5acf1.tar.gz chromium_src-ab79692f684d05b53fa99d68f370e24c9aa5acf1.tar.bz2 |
Removing unused class. Deprecated when we moved to web ui prefs
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/6877065
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82293 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/controls/listbox/listbox.h')
-rw-r--r-- | views/controls/listbox/listbox.h | 70 |
1 files changed, 0 insertions, 70 deletions
diff --git a/views/controls/listbox/listbox.h b/views/controls/listbox/listbox.h deleted file mode 100644 index b029bde..0000000 --- a/views/controls/listbox/listbox.h +++ /dev/null @@ -1,70 +0,0 @@ -// Copyright (c) 2010 The Chromium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -#ifndef VIEWS_CONTROLS_LISTBOX_LISTBOX_H_ -#define VIEWS_CONTROLS_LISTBOX_LISTBOX_H_ -#pragma once - -#include "build/build_config.h" - -#include <string> -#include <vector> - -#include "base/string16.h" -#include "views/view.h" - -namespace views { - -class NativeListboxWrapper; - -// A Listbox is a view that displays multiple rows of fixed strings. -// Exactly one of these strings is shown as selected at all times. -class Listbox : public View { - public: - // An interface implemented by an object to let it know that a listbox - // selection has changed. - class Listener { - public: - // This is called if the user changes the current selection of the - // listbox. - virtual void ListboxSelectionChanged(Listbox* sender) = 0; - }; - - // Creates a new listbox, given the list of strings. |listener| can be NULL. - // Listbox does not take ownership of |listener|. - Listbox(const std::vector<string16>& strings, Listbox::Listener* listener); - virtual ~Listbox(); - - // Returns the number of rows in the table. - int GetRowCount() const; - - // Returns the 0-based index of the currently selected row, or -1 if nothing - // is selected. Note that as soon as a row has been selected once, there will - // always be a selected row. - int SelectedRow() const; - - // Selects the specified row. Note that this does NOT call the listener's - // |ListboxSelectionChanged()| method. - void SelectRow(int row); - - protected: - virtual NativeListboxWrapper* CreateWrapper(); - virtual void ViewHierarchyChanged(bool is_add, View* parent, View* child); - - private: - // Data stored in the listbox. - std::vector<string16> strings_; - - // Listens to selection changes. - Listbox::Listener* listener_; - - // The object that actually implements the table. - NativeListboxWrapper* native_wrapper_; - - DISALLOW_COPY_AND_ASSIGN(Listbox); -}; - -} // namespace views - -#endif // VIEWS_CONTROLS_LISTBOX_LISTBOX_H_ |